Lines 6-13
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= thefish |
8 |
PORTNAME= thefish |
9 |
PORTVERSION= 0.6 |
9 |
PORTVERSION= 0.6.1 |
10 |
PORTREVISION= 1 |
|
|
11 |
CATEGORIES= sysutils |
10 |
CATEGORIES= sysutils |
12 |
MASTER_SITES= http://www.energyhq.es.eu.org/files/ |
11 |
MASTER_SITES= http://www.energyhq.es.eu.org/files/ |
13 |
|
12 |
|
Lines 15-31
Link Here
|
15 |
COMMENT= Qt/Gtk+/ncurses rc.conf editor/management tool |
14 |
COMMENT= Qt/Gtk+/ncurses rc.conf editor/management tool |
16 |
|
15 |
|
17 |
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \ |
16 |
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \ |
18 |
LOCALBASE="${LOCALBASE}" |
17 |
LOCALBASE="${LOCALBASE}" \ |
|
|
18 |
X11BASE="${X11BASE}" |
19 |
|
19 |
|
20 |
.if defined(WITHOUT_X11) || defined(NO_GUI) |
20 |
WANT_GNOME= yes |
|
|
21 |
|
22 |
OPTIONS= CONSOLE "Disable X11 support" off \ |
23 |
GTK "Use GTK+ for the X11 interface" on \ |
24 |
QT "Use Qt for the X11 interface" off |
25 |
|
26 |
PORT_DBDIR?= /var/db/ports |
27 |
LATEST_LINK= ${PORTNAME} |
28 |
OPTIONSFILE?= ${PORT_DBDIR}/${LATEST_LINK}/options |
29 |
|
30 |
.if exists(${OPTIONSFILE}) |
31 |
.include "${OPTIONSFILE}" |
32 |
.endif |
33 |
|
34 |
# Honour legacy WITHOUT_X11 and NO_GUI and support new options |
35 |
.if defined(WITHOUT_X11) || defined(NO_GUI) || defined(WITH_CONSOLE) |
21 |
NO_GUI= yes |
36 |
NO_GUI= yes |
22 |
MAKE_ENV+= NO_GUI=yes |
37 |
MAKE_ENV+= NO_GUI=yes |
23 |
.else |
|
|
24 |
.if !defined(WITH_QT) |
25 |
USE_GNOME= gtk20 |
26 |
USE_X_PREFIX= yes |
27 |
.endif |
38 |
.endif |
|
|
39 |
|
40 |
.if defined(WITH_GTK) |
41 |
USE_GNOME= gtk20 |
42 |
MAKE_ENV+= WITH_GTK=yes |
28 |
.endif |
43 |
.endif |
|
|
44 |
|
29 |
.if defined(WITH_QT) |
45 |
.if defined(WITH_QT) |
30 |
USE_QT_VER= 3 |
46 |
USE_QT_VER= 3 |
31 |
MAKE_ENV+= WITH_QT=yes |
47 |
MAKE_ENV+= WITH_QT=yes |
Lines 34-48
Link Here
|
34 |
|
50 |
|
35 |
MAN1= thefish.1 |
51 |
MAN1= thefish.1 |
36 |
PLIST_FILES= bin/thefish |
52 |
PLIST_FILES= bin/thefish |
37 |
|
|
|
38 |
pre-everything:: |
39 |
.if !defined(WITHOUT_X11) && !defined(NO_GUI) |
40 |
@${ECHO_CMD} "- To build The Fish without the Qt or GTK+ UI, define NO_GUI or WITHOUT_X11" |
41 |
.endif |
42 |
.if !defined(WITH_QT) && !defined(NO_GUI) && !defined(WITHOUT_X11) |
43 |
@${ECHO_CMD} "- You can replace the GTK+ interface with a Qt version by defining WITH_QT" |
44 |
@${ECHO_CMD} |
45 |
.endif |
46 |
|
53 |
|
47 |
do-install: |
54 |
do-install: |
48 |
@${INSTALL_PROGRAM} ${WRKSRC}/thefish ${PREFIX}/bin |
55 |
@${INSTALL_PROGRAM} ${WRKSRC}/thefish ${PREFIX}/bin |