diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2012-07-04 09:55:12 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2012-07-04 09:55:12 +0000 |
commit | d5008916577f23bc13855b3eb7cf439084c6a456 (patch) | |
tree | ef263b9384d209c3f296c5abf88a02dc0f83d766 /net/mtr | |
parent | a4559b500319c3f128519cfc560ee2c27e72fa78 (diff) |
- Convert to new options framework
- Cosmetic change
PR: ports/168795 [1], ports/168808 [2]
Submitted by: Sayetsky Anton <vsjcfm@gmail.com> [1],
Bryan Drewery <bryan@shatow.net> [2]
Notes
Notes:
svn path=/head/; revision=300475
Diffstat (limited to 'net/mtr')
-rw-r--r-- | net/mtr/Makefile | 17 |
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} "" |