From owner-svn-ports-all@FreeBSD.ORG Thu Dec 20 23:13:44 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CA869C23; Thu, 20 Dec 2012 23:13:44 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 945E58FC0C; Thu, 20 Dec 2012 23:13:44 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qBKNDi9w041798; Thu, 20 Dec 2012 23:13:44 GMT (envelope-from marius@svn.freebsd.org) Received: (from marius@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qBKNDirO041797; Thu, 20 Dec 2012 23:13:44 GMT (envelope-from marius@svn.freebsd.org) Message-Id: <201212202313.qBKNDirO041797@svn.freebsd.org> From: Marius Strobl Date: Thu, 20 Dec 2012 23:13:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r309330 - head/graphics/electrix X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2012 23:13:44 -0000 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 +.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