diff options
author | bapt <bapt@FreeBSD.org> | 2012-05-31 22:49:26 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-05-31 22:49:26 +0800 |
commit | 66780caf231381add129f8ab44ca54133051a1c5 (patch) | |
tree | 986ee858a70982e7ead92499315df9c0231da04d /x11-toolkits/gtkdatabox | |
parent | 4297676582426ca3d54e1c10bdf5464fe141fb96 (diff) | |
download | freebsd-ports-gnome-66780caf231381add129f8ab44ca54133051a1c5.tar.gz freebsd-ports-gnome-66780caf231381add129f8ab44ca54133051a1c5.tar.zst freebsd-ports-gnome-66780caf231381add129f8ab44ca54133051a1c5.zip |
Convert to new options framework
Diffstat (limited to 'x11-toolkits/gtkdatabox')
-rw-r--r-- | x11-toolkits/gtkdatabox/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/x11-toolkits/gtkdatabox/Makefile b/x11-toolkits/gtkdatabox/Makefile index 1c272b2cb458..0c27270ba029 100644 --- a/x11-toolkits/gtkdatabox/Makefile +++ b/x11-toolkits/gtkdatabox/Makefile @@ -22,16 +22,17 @@ USE_AUTOTOOLS= libtool CONFIGURE_ARGS+= --includedir="${PREFIX}/include/${PORTNAME}" \ --with-html-dir="${PREFIX}/share/doc" -OPTIONS= GLADE "Enable libglade2 support" off \ - GLADEUI "Enable glade3 support" off +OPTIONS_DEFINE= GLADE GLADEUI DOCS EXAMPLES +GLADE_DESC= Enable libglade2 support +GLADEUI_DESC= Enable glade3 support .include <bsd.port.pre.mk> -.if defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} USE_GNOME+= referencehack .endif -.if !defined(WITHOUT_GLADE) +.if ${PORT_OPTIONS:MGLADE} USE_GNOME+= libglade2 CONFIGURE_ARGS+= --enable-libglade PLIST_SUB+= GLADE="" @@ -40,7 +41,7 @@ CONFIGURE_ARGS+= --disable-libglade PLIST_SUB+= GLADE="@comment " .endif -.if !defined(WITHOUT_GLADEUI) +.if ${PORT_OPTIONS:MGLADEUI} LIB_DEPENDS+= gladeui-1.10:${PORTSDIR}/devel/glade3 CONFIGURE_ARGS+= --enable-glade PLIST_SUB+= GLADEUI="" @@ -58,7 +59,7 @@ post-patch: ${WRKSRC}/gtk/Makefile.in ${WRKSRC}/examples/Makefile.in post-install: -.if !defined(NOPORTEXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} ${MKDIR} ${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/*.c ${EXAMPLESDIR} .endif |