diff options
author | jlam <jlam> | 2007-09-07 22:12:10 +0000 |
---|---|---|
committer | jlam <jlam> | 2007-09-07 22:12:10 +0000 |
commit | 2f517bc25c1dfd477877da169af65a161a689211 (patch) | |
tree | e65f4ff0343b21db10e01b4ee2a8fa56a72846a8 /net/pchar | |
parent | 3045177d1ce3c7d590e5aaa6d5777696d6f55aa6 (diff) | |
download | pkgsrc-2f517bc25c1dfd477877da169af65a161a689211.tar.gz |
Convert packages that test and use USE_INET6 to use the options framework
and to support the "inet6" option instead.
Remaining usage of USE_INET6 was solely for the benefit of the scripts
that generate the README.html files. Replace:
BUILD_DEFS+= USE_INET6
with
BUILD_DEFS+= IPV6_READY
and teach the README-generation tools to look for that instead.
This nukes USE_INET6 from pkgsrc proper. We leave a tiny bit of code
to continue to support USE_INET6 for pkgsrc-wip until it has been nuked
from there as well.
Diffstat (limited to 'net/pchar')
-rw-r--r-- | net/pchar/Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/pchar/Makefile b/net/pchar/Makefile index 51df32a0621..1fcf9fd4c03 100644 --- a/net/pchar/Makefile +++ b/net/pchar/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.31 2007/01/07 09:14:05 rillig Exp $ +# $NetBSD: Makefile,v 1.32 2007/09/07 22:12:19 jlam Exp $ DISTNAME= pchar-1.5 CATEGORIES= net @@ -11,17 +11,17 @@ COMMENT= Tool for measuring Internet path characteristics GNU_CONFIGURE= yes USE_LANGUAGES= c c++ -BUILD_DEFS+= USE_INET6 +PKG_OPTIONS_VAR= PKG_OPTIONS.pchar +PKG_SUPPORTED_OPTIONS= inet6 -.include "../../mk/bsd.prefs.mk" +.include "../../mk/bsd.options.mk" -.if defined(USE_INET6) && ${USE_INET6} == YES +.if !empty(PKG_OPTIONS:Minet6) CONFIGURE_ARGS+= --with-ipv6 .endif .if ${OPSYS} == "NetBSD" -.include "../../net/net-snmp/buildlink3.mk" - +. include "../../net/net-snmp/buildlink3.mk" CONFIGURE_ARGS+= --with-snmp=${BUILDLINK_PREFIX.net-snmp} LIBS+= -lsnmp -lcrypto -ldes .endif |