diff options
author | danilo <danilo@FreeBSD.org> | 2013-12-14 08:44:04 +0800 |
---|---|---|
committer | danilo <danilo@FreeBSD.org> | 2013-12-14 08:44:04 +0800 |
commit | 689ad37d3bcfc9dbc2bf4508acb8558432c3bd91 (patch) | |
tree | dba18723b9c7e6b1450cb0e030f78f1924120314 | |
parent | ded820f1c6bcfdb12af40429e8877a5326fcfa90 (diff) | |
download | freebsd-ports-gnome-689ad37d3bcfc9dbc2bf4508acb8558432c3bd91.tar.gz freebsd-ports-gnome-689ad37d3bcfc9dbc2bf4508acb8558432c3bd91.tar.zst freebsd-ports-gnome-689ad37d3bcfc9dbc2bf4508acb8558432c3bd91.zip |
- Convert "if defined(WITH_GTK2)" to options
- Add stage support
-rw-r--r-- | emulators/bfe/Makefile | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/emulators/bfe/Makefile b/emulators/bfe/Makefile index c426f7515d8c..01b082b17686 100644 --- a/emulators/bfe/Makefile +++ b/emulators/bfe/Makefile @@ -19,16 +19,15 @@ USES= pkgconfig HAS_CONFIGURE= yes CONFIGURE_SCRIPT= configure.sh -.if defined(WITH_GTK2) -USE_GNOME+= gtk20 -CONFIGURE_ARGS+= --gtk 2.0 -PKGNAMESUFFIX= -gtk2 -.else -USE_GNOME+= gtk12 -CONFIGURE_ARGS+= --gtk 1.2 -.endif - -NO_STAGE= yes +OPTIONS_SINGLE= GTK +OPTIONS_SINGLE_GTK= GTK1 GTK2 +OPTIONS_DEFAULT= GTK1 + +GTK1_USE= GNOME=gtk12 +GTK1_CONFIGURE_ON= --gtk 1.2 +GTK2_USE= GNOME=gtk20 +GTK2_CONFIGURE_ON= --gtk 2.0 + post-patch: @${REINPLACE_CMD} -e \ 's|%%CFLAGS%%|"${CFLAGS}"|g ; \ @@ -39,9 +38,9 @@ post-patch: ${WRKSRC}/${CONFIGURE_SCRIPT} do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/bfe2 ${PREFIX}/bin - @${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/README.bferc ${DATADIR}/bferc.sample - ${INSTALL_DATA} ${WRKSRC}/README.bferc ${DATADIR} + ${INSTALL_PROGRAM} ${WRKSRC}/bfe2 ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/README.bferc ${STAGEDIR}${DATADIR}/bferc.sample + ${INSTALL_DATA} ${WRKSRC}/README.bferc ${STAGEDIR}${DATADIR} .include <bsd.port.mk> |