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) | |
download | ports-c190160c905fdbdadbe0ab9df213f13d55d8b24f.tar.gz ports-c190160c905fdbdadbe0ab9df213f13d55d8b24f.zip |
Notes
-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> |