summaryrefslogtreecommitdiff
path: root/sysutils/socket/Makefile
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1999-09-17 18:23:54 +0000
committertron <tron@pkgsrc.org>1999-09-17 18:23:54 +0000
commit7aab458a3486852fc4c0e07cbba0b6eee6ebeb29 (patch)
tree777e90110a3645b634a977805a1eae55305b5e4d /sysutils/socket/Makefile
parentcc9697f565753b3c979bd9a6d1c4cc43fb5167fb (diff)
downloadpkgsrc-7aab458a3486852fc4c0e07cbba0b6eee6ebeb29.tar.gz
Add IPv6 support supplied by Feico Dillema in PR pkg/8413.
Diffstat (limited to 'sysutils/socket/Makefile')
-rw-r--r--sysutils/socket/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/sysutils/socket/Makefile b/sysutils/socket/Makefile
index d5c1d4909c8..df242dadbfe 100644
--- a/sysutils/socket/Makefile
+++ b/sysutils/socket/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 1998/06/22 13:09:51 agc Exp $
+# $NetBSD: Makefile,v 1.6 1999/09/17 18:23:54 tron Exp $
# FreeBSD Id: Makefile,v 1.7 1997/08/16 10:14:56 wosch Exp
#
@@ -10,4 +10,16 @@ MAINTAINER= packages@netbsd.org
MAKE_ENV+= INSTALLBASE=${PREFIX}
+BUILD_DEFS+= USE_INET6
+
+# to get USE_INET6
+.include "../../mk/bsd.prefs.mk"
+
+# IPv6 support
+.if defined(USE_INET6) && ${USE_INET6} == YES
+MAKE_ENV+= SWITCHES="-DUSE_INET6 -DHAVE_SYS_PARAM_H -Wall"
+.else
+MAKE_ENV+= SWITCHES="-DHAVE_SYS_PARAM_H -Wall"
+.endif
+
.include "../../mk/bsd.pkg.mk"