diff options
author | Rene Ladan <rene@FreeBSD.org> | 2012-12-18 13:43:12 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2012-12-18 13:43:12 +0000 |
commit | c190160c905fdbdadbe0ab9df213f13d55d8b24f (patch) | |
tree | c4ed61bb5ddbf75ef39cfc15413e80aa9d32368c | |
parent | 327df5c175ff2af9e65a28df99793080b16fee4a (diff) |
- Convert to optionsNG
Use OPTIONS_SINGLE to let the user choose between the GTK2 (default) or
QT3 interface if X11 support (default) is enabled.
- Remove explicit inclusion of ${PORT_DBDIR}/${LATEST_LINK}/options which
crept in with the update to 0.6.1
- Drop support for the (non-existent) NO_GUI knob.
Notes
Notes:
svn path=/head/; revision=309183
-rw-r--r-- | sysutils/thefish/Makefile | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/sysutils/thefish/Makefile b/sysutils/thefish/Makefile index c7ea3c776a34..8a7b4c3ed403 100644 --- a/sysutils/thefish/Makefile +++ b/sysutils/thefish/Makefile @@ -15,30 +15,25 @@ MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" WANT_GNOME= yes -OPTIONS= CONSOLE "Disable X11 support" off \ - GTK "Use GTK+ for the X11 interface" on \ - QT "Use Qt for the X11 interface" off +OPTIONS_DEFINE= X11 +OPTIONS_SINGLE= X11 +OPTIONS_SINGLE_X11= GTK2 QT3 +OPTIONS_DEFAULT= X11 GTK2 -PORT_DBDIR?= /var/db/ports -LATEST_LINK= ${PORTNAME} -OPTIONSFILE?= ${PORT_DBDIR}/${LATEST_LINK}/options +QT3_DESC= Use Qt3 for the X11 interface -.if exists(${OPTIONSFILE}) -.include "${OPTIONSFILE}" -.endif +.include <bsd.port.options.mk> -# Honour legacy WITHOUT_X11 and NO_GUI and support new options -.if defined(WITHOUT_X11) || defined(NO_GUI) || defined(WITH_CONSOLE) -NO_GUI= yes +.if ! ${PORT_OPTIONS:MX11} MAKE_ENV+= NO_GUI=yes .endif -.if defined(WITH_GTK) || !defined(WITHOUT_GTK) +.if ${PORT_OPTIONS:MX11} && ${PORT_OPTIONS:MGTK2} USE_GNOME= gtk20 MAKE_ENV+= WITH_GTK=yes .endif -.if defined(WITH_QT) +.if ${PORT_OPTIONS:MX11} && ${PORT_OPTIONS:MQT3} USE_QT_VER= 3 MAKE_ENV+= WITH_QT=yes CXXFLAGS+= -Wall -DWITH_QT -I${LOCALBASE}/include @@ -51,10 +46,8 @@ do-install: @${INSTALL_PROGRAM} ${WRKSRC}/thefish ${PREFIX}/bin @${INSTALL_MAN} ${WRKSRC}/thefish.1 ${PREFIX}/man/man1 -.include <bsd.port.pre.mk> - .if ${OSVERSION} >= 900000 BROKEN= does not build .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |