Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Dec 2012 23:13:44 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r309330 - head/graphics/electrix
Message-ID:  <201212202313.qBKNDirO041797@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius (src committer)
Date: Thu Dec 20 23:13:44 2012
New Revision: 309330
URL: http://svnweb.freebsd.org/changeset/ports/309330

Log:
  Make D-Bus and NLS support options (defaults unchanged). For completeness
  sake, also make PDF support optional (still allowing to build a PS-only
  reader).
  
  Approved by:	olivierd, bapt

Modified:
  head/graphics/electrix/Makefile

Modified: head/graphics/electrix/Makefile
==============================================================================
--- head/graphics/electrix/Makefile	Thu Dec 20 22:56:10 2012	(r309329)
+++ head/graphics/electrix/Makefile	Thu Dec 20 23:13:44 2012	(r309330)
@@ -13,24 +13,41 @@ COMMENT=	An application to view PDF file
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	dbus-glib-1:${PORTSDIR}/devel/dbus-glib \
-		poppler-glib:${PORTSDIR}/graphics/poppler-glib
-
 USE_BZIP2=	yes
 USE_GNOME=	gtk20 desktopfileutils intltool intlhack
 USE_PYTHON=	yes
-USE_GETTEXT=	yes
 USE_PKGCONFIG=	build
 
-
 CONFIGURE_ARGS=	--prefix=${PREFIX}
 
-OPTIONS_DEFINE=	PS
+OPTIONS_DEFINE=	DBUS NLS PDF PS
+OPTIONS_DEFAULT=	DBUS PDF
 
-PS_DESC=	PostScript support
+PDF_DESC=	Portable Document Format Support
+PS_DESC=	PostScript Support
 
 .include <bsd.port.options.mk>
 
+.if ${PORT_OPTIONS:MDBUS}
+LIB_DEPENDS+=	dbus-glib-1:${PORTSDIR}/devel/dbus-glib
+.else
+CONFIGURE_ARGS+=	--disable-dbus
+.endif
+
+.if ${PORT_OPTIONS:MNLS}
+PLIST_SUB=	NLS=""
+USE_GETTEXT=	yes
+.else
+CONFIGURE_ARGS+=	--disable-nls
+PLIST_SUB=	NLS="@comment "
+.endif
+
+.if ${PORT_OPTIONS:MPDF}
+LIB_DEPENDS=	poppler-glib:${PORTSDIR}/graphics/poppler-glib
+.else
+CONFIGURE_ARGS+=	--disable-pdf
+.endif
+
 .if ${PORT_OPTIONS:MPS}
 LIB_DEPENDS+=	spectre:${PORTSDIR}/print/libspectre
 .else



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212202313.qBKNDirO041797>