# Created by: Nicola Vitale <nivit@email.it>
# $FreeBSD: tags/RELEASE_10_2_0/editors/morla/Makefile 364112 2014-08-05 14:56:15Z amdmi3 $

PORTNAME=	morla
PORTVERSION=	0.16.1
PORTREVISION=	6
CATEGORIES=	editors textproc
MASTER_SITES=	http://www.morlardf.net/src/ \
		http://nivi.interfree.it/distfiles/${PORTNAME}/${PORTVERSION}/

MAINTAINER=	nivit@FreeBSD.org
COMMENT=	RDF editor

LIB_DEPENDS=	libnxml.so:${PORTSDIR}/textproc/libnxml \
		librdf.so:${PORTSDIR}/textproc/redland \
		libraptor2.so:${PORTSDIR}/textproc/raptor2 \
		libcurl.so:${PORTSDIR}/ftp/curl
BUILD_DEPENDS=	dot:${PORTSDIR}/graphics/graphviz
RUN_DEPENDS=	dot:${PORTSDIR}/graphics/graphviz

OPTIONS_DEFINE=	XULRUNNER
XULRUNNER_DESC=	Xulrunner as JavaScript engine

GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
CONFIGURE_ARGS=	--with-gconf=auto
USES=		gettext pkgconfig libtool
USE_GNOME=	gconf2 libgtkhtml libxslt
USE_LDCONFIG=	${PREFIX}/lib/${PORTNAME}

DESKTOP_ENTRIES="morla" \
		"Edit RDF documents" \
		"${DATADIR}/icons/128_color.png" \
		"morla" \
		"WebDevelopment;" \
		true

XULRUNNER_USES=	gecko
XULRUNNER_CONFIGURE_ON=	--with-javascript=xulrunner
XULRUNNER_CONFIGURE_OFF=	--with-javascript=none

post-patch:
	@${REINPLACE_CMD} -e 's|-D.*_DISABLE_DEPRECATED||g' \
		${WRKSRC}/configure

.include <bsd.port.mk>
