diff options
author | madpilot <madpilot@FreeBSD.org> | 2012-06-08 04:37:14 +0800 |
---|---|---|
committer | madpilot <madpilot@FreeBSD.org> | 2012-06-08 04:37:14 +0800 |
commit | 10b52a170f1d404abc5699061d2a3cf931eeb1e5 (patch) | |
tree | ece1d37077d181f60fe919ca8dba5525499f27cf /finance | |
parent | 96182ae52c25f64e80a2448f34c1f9bacefc9341 (diff) | |
download | freebsd-ports-gnome-10b52a170f1d404abc5699061d2a3cf931eeb1e5.tar.gz freebsd-ports-gnome-10b52a170f1d404abc5699061d2a3cf931eeb1e5.tar.zst freebsd-ports-gnome-10b52a170f1d404abc5699061d2a3cf931eeb1e5.zip |
- Convert to new options framework.
PR: ports/168685
Submitted by: me
Approved by: Jeremy Messenger <mezz@FreeBSD.org>
Approved by: crees, tabthorpe (mentors, implicit)
Diffstat (limited to 'finance')
-rw-r--r-- | finance/gnucash/Makefile | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/finance/gnucash/Makefile b/finance/gnucash/Makefile index 8dc7a46d43fb..724c7a71d6cd 100644 --- a/finance/gnucash/Makefile +++ b/finance/gnucash/Makefile @@ -28,12 +28,13 @@ RUN_DEPENDS= guile>=1.8.6:${PORTSDIR}/lang/guile \ ${SITE_PERL}/Date/Manip.pm:${PORTSDIR}/devel/p5-Date-Manip \ ${SITE_PERL}/Finance/Quote.pm:${PORTSDIR}/finance/p5-Finance-Quote -OPTIONS= AQBANKING "AqBanking support (HBCI/OpenHBCI)" off \ - OFX "OFX support" off \ - DATABASE "Enable SQL database backends" off \ - LOCALE_TAX "Enable localized tax categories" off \ - WEBKIT "Use webkit instead of gtkhtml for the HTML engine" off \ - PYTHON "Install Python bindings" off +OPTIONS_DEFINE= AQBANKING OFX DATABASE LOCALE_TAX WEBKIT PYTHON + +AQBANKING_DESC= AqBanking support (HBCI/OpenHBCI) +OFX_DESC= OFX support +DATABASE_DESC= Enable SQL database backends +LOCALE_TAX_DESC= Enable localized tax categories +WEBKIT_DESC= Use webkit instead of gtkhtml for the HTML engine USE_BZIP2= yes USE_GETTEXT= yes @@ -69,7 +70,7 @@ GCONF_SCHEMAS= apps_gnucash_dialog_business_common.schemas \ .include <bsd.port.options.mk> -.if defined(WITH_AQBANKING) +.if ${PORT_OPTIONS:MAQBANKING} LIB_DEPENDS+= aqbanking.33:${PORTSDIR}/finance/aqbanking \ gwengui-gtk2.0:${PORTSDIR}/devel/gwenhywfar \ ktoblzcheck.6:${PORTSDIR}/finance/ktoblzcheck @@ -81,7 +82,7 @@ CONFIGURE_ARGS+=--disable-aqbanking PLIST_SUB+= AQBANKING="@comment " .endif -.if defined(WITH_OFX) +.if ${PORT_OPTIONS:MOFX} CONFIGURE_ARGS+=--enable-ofx LIB_DEPENDS+= ofx.5:${PORTSDIR}/finance/libofx PLIST_SUB+= OFX="" @@ -90,7 +91,7 @@ CONFIGURE_ARGS+=--disable-ofx PLIST_SUB+= OFX="@comment " .endif -.if defined(WITH_DATABASE) +.if ${PORT_OPTIONS:MDATABASE} CONFIGURE_ARGS+=--enable-dbi LIB_DEPENDS+= dbi.1:${PORTSDIR}/databases/libdbi PLIST_SUB+= DATABASE="" @@ -99,18 +100,18 @@ CONFIGURE_ARGS+=--disable-dbi PLIST_SUB+= DATABASE="@comment " .endif -.if defined(WITH_LOCALE_TAX) +.if ${PORT_OPTIONS:MLOCALE_TAX) CONFIGURE_ARGS+=--enable-locale-specific-tax .endif -.if defined(WITH_WEBKIT) +.if ${PORT_OPTIONS:MWEBKIT} CONFIGURE_ARGS+=--with-html-engine=webkit LIB_DEPENDS+= webkitgtk-1.0.0:${PORTSDIR}/www/webkit-gtk2 .else USE_GNOME+= gtkhtml3 .endif -.if defined(WITH_PYTHON) +.if${PORT_OPTIONS:MPYTHON} CONFIGURE_ARGS+=--enable-python-bindings USE_PYTHON= yes PLIST_SUB+= PYTHON="" @@ -119,8 +120,8 @@ PLIST_SUB+= PYTHON="@comment " .endif pre-configure: -.if !defined(PACKAGE_BUILDING) && defined(WITH_AQBANKING) && !exists(${LOCALBASE}/lib/libgwengui-gtk2.so.0) -BROKEN= Please rebuild devel/gwenhywfar with the WITH_GTK2 option set +.if !defined(PACKAGE_BUILDING) && ${PORT_OPTIONS:MAQBANKING} && !exists(${LOCALBASE}/lib/libgwengui-gtk2.so.0) +BROKEN= Please rebuild devel/gwenhywfar with the GTK2 option set .endif post-install: |