aboutsummaryrefslogtreecommitdiff
path: root/net/mtr
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-07-04 09:55:12 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-07-04 09:55:12 +0000
commitd5008916577f23bc13855b3eb7cf439084c6a456 (patch)
treeef263b9384d209c3f296c5abf88a02dc0f83d766 /net/mtr
parenta4559b500319c3f128519cfc560ee2c27e72fa78 (diff)
downloadports-d5008916577f23bc13855b3eb7cf439084c6a456.tar.gz
ports-d5008916577f23bc13855b3eb7cf439084c6a456.zip
Notes
Diffstat (limited to 'net/mtr')
-rw-r--r--net/mtr/Makefile17
1 files changed, 7 insertions, 10 deletions
diff --git a/net/mtr/Makefile b/net/mtr/Makefile
index 9b2d65d8f850..95fea3a993ab 100644
--- a/net/mtr/Makefile
+++ b/net/mtr/Makefile
@@ -16,7 +16,9 @@ MASTER_SITES= ftp://ftp.bitwizard.nl/mtr/ \
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Traceroute and ping in a single graphical network diagnostic tool
-OPTIONS= IPV6 "Build IPv6 support" on
+OPTIONS_DEFINE= IPV6 X11
+OPTIONS_DEFAULT=IPV6 X11
+X11_DESC= Build X11-enabled mtr
GNU_CONFIGURE= yes
USE_GMAKE= yes
@@ -26,29 +28,24 @@ PLIST_FILES= sbin/mtr
.include <bsd.port.options.mk>
-.if !defined(WITHOUT_IPV6)
+.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+=--enable-ipv6
CATEGORIES+= ipv6
.else
CONFIGURE_ARGS+=--disable-ipv6
.endif
-.if !defined(WITHOUT_X11)
+.if ${PORT_OPTIONS:MX11}
CONFIGURE_ARGS+=--with-gtk
-OPTIONS+= X11 "Build X11-enabled mtr" on
USE_GNOME= gtk20
.else
CONFIGURE_ARGS+=--without-gtk
-OPTIONS+= X11 "Build X11-enabled mtr" off
PKGNAMESUFFIX= -nox11
.endif
post-patch:
- @${REINPLACE_CMD} -e \
- 's|getopt.*$$(OBJEXT)||g; s|getopt.*[ch]||g; /getopt.*Po/d' \
- ${WRKSRC}/Makefile.in
- @${REINPLACE_CMD} -e \
- 's|"getopt\.h"|<getopt.h>|g' ${WRKSRC}/mtr.c
+ @${REINPLACE_CMD} -e 's|getopt.*$$(OBJEXT)||g; s|getopt.*[ch]||g; /getopt.*Po/d' ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e 's|"getopt\.h"|<getopt.h>|g' ${WRKSRC}/mtr.c
post-install:
@${ECHO_MSG} ""