aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorreg <reg@FreeBSD.org>2000-10-05 14:47:41 +0800
committerreg <reg@FreeBSD.org>2000-10-05 14:47:41 +0800
commit4495def283d3b8c777e1eb5b958cedb25b1aa16b (patch)
treed7741a9f974e1e8c5428027e641c709984c997cf /net
parent72ce7050d03c812e37966786e11996a90713afea (diff)
downloadfreebsd-ports-gnome-4495def283d3b8c777e1eb5b958cedb25b1aa16b.tar.gz
freebsd-ports-gnome-4495def283d3b8c777e1eb5b958cedb25b1aa16b.tar.zst
freebsd-ports-gnome-4495def283d3b8c777e1eb5b958cedb25b1aa16b.zip
Implment WANT_GTK.
Diffstat (limited to 'net')
-rw-r--r--net/mtr/Makefile15
1 files changed, 5 insertions, 10 deletions
diff --git a/net/mtr/Makefile b/net/mtr/Makefile
index ba81a5c08292..8b22b733ddb3 100644
--- a/net/mtr/Makefile
+++ b/net/mtr/Makefile
@@ -15,6 +15,7 @@ MAINTAINER= billf@FreeBSD.org
HAS_CONFIGURE= yes
USE_GMAKE= yes
+WANT_GTK= yes
MAN8= mtr.8
@@ -30,17 +31,11 @@ CONFIGURE_ARGS+=--enable-ipv6
CONFIGURE_ARGS+=--disable-ipv6
.endif
-pre-patch:
-.if !defined(WITH_GTK)
- @${ECHO} ""
- @${ECHO} "If you want to compile with GTK support,"
- @${ECHO} "hit Ctrl-C right now and use \"make WITH_GTK=yes\" "
- @${ECHO} ""
-CONFIGURE_ARGS+=--with-gtk-prefix=/nopath
-.else
+.if defined(HAVE_GTK)
USE_XLIB= yes
-LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
-CONFIGURE_ENV= GTK_CONFIG="${X11BASE}/bin/gtk12-config"
+USE_GTK= yes
+.else
+CONFIGURE_ARGS+=--with-gtk-prefix=/nopath
.endif
do-install: