diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2004-08-21 10:49:06 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2004-08-21 10:49:06 +0000 |
commit | 574adfd310edc0cd51f91b918212270728ea2351 (patch) | |
tree | 55b61d368630a5b029509a1401d4dc21cc8a9727 /sysutils/thefish/Makefile | |
parent | da80a04ac68f26a421c358cf5ca6d4bb791d7914 (diff) | |
download | ports-574adfd310edc0cd51f91b918212270728ea2351.tar.gz ports-574adfd310edc0cd51f91b918212270728ea2351.zip |
Notes
Diffstat (limited to 'sysutils/thefish/Makefile')
-rw-r--r-- | sysutils/thefish/Makefile | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/sysutils/thefish/Makefile b/sysutils/thefish/Makefile index 4595f7c2f83e..c31b0525b8c1 100644 --- a/sysutils/thefish/Makefile +++ b/sysutils/thefish/Makefile @@ -6,8 +6,7 @@ # PORTNAME= thefish -PORTVERSION= 0.6 -PORTREVISION= 1 +PORTVERSION= 0.6.1 CATEGORIES= sysutils MASTER_SITES= http://www.energyhq.es.eu.org/files/ @@ -15,17 +14,34 @@ MAINTAINER= flynn@energyhq.es.eu.org COMMENT= Qt/Gtk+/ncurses rc.conf editor/management tool MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \ - LOCALBASE="${LOCALBASE}" + LOCALBASE="${LOCALBASE}" \ + X11BASE="${X11BASE}" -.if defined(WITHOUT_X11) || defined(NO_GUI) +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 + +PORT_DBDIR?= /var/db/ports +LATEST_LINK= ${PORTNAME} +OPTIONSFILE?= ${PORT_DBDIR}/${LATEST_LINK}/options + +.if exists(${OPTIONSFILE}) +.include "${OPTIONSFILE}" +.endif + +# Honour legacy WITHOUT_X11 and NO_GUI and support new options +.if defined(WITHOUT_X11) || defined(NO_GUI) || defined(WITH_CONSOLE) NO_GUI= yes MAKE_ENV+= NO_GUI=yes -.else -.if !defined(WITH_QT) -USE_GNOME= gtk20 -USE_X_PREFIX= yes .endif + +.if defined(WITH_GTK) +USE_GNOME= gtk20 +MAKE_ENV+= WITH_GTK=yes .endif + .if defined(WITH_QT) USE_QT_VER= 3 MAKE_ENV+= WITH_QT=yes @@ -35,15 +51,6 @@ CXXFLAGS+= -Wall -DWITH_QT -I${X11BASE}/include MAN1= thefish.1 PLIST_FILES= bin/thefish -pre-everything:: -.if !defined(WITHOUT_X11) && !defined(NO_GUI) - @${ECHO_CMD} "- To build The Fish without the Qt or GTK+ UI, define NO_GUI or WITHOUT_X11" -.endif -.if !defined(WITH_QT) && !defined(NO_GUI) && !defined(WITHOUT_X11) - @${ECHO_CMD} "- You can replace the GTK+ interface with a Qt version by defining WITH_QT" - @${ECHO_CMD} -.endif - do-install: @${INSTALL_PROGRAM} ${WRKSRC}/thefish ${PREFIX}/bin @${INSTALL_MAN} ${WRKSRC}/thefish.1 ${PREFIX}/man/man1 |