summaryrefslogtreecommitdiff
path: root/x11/libICE
diff options
context:
space:
mode:
authorabs <abs>2007-11-07 11:51:52 +0000
committerabs <abs>2007-11-07 11:51:52 +0000
commit46a4041bd869151de6e2a802270b79be8a6fac7a (patch)
tree11744c775dbbb516a36a7b3397588ef51823b46b /x11/libICE
parent2c942b78be95928f3a3c3c0a899410361413fef3 (diff)
downloadpkgsrc-46a4041bd869151de6e2a802270b79be8a6fac7a.tar.gz
Add explicit option check for -inet6
Diffstat (limited to 'x11/libICE')
-rw-r--r--x11/libICE/Makefile4
-rw-r--r--x11/libICE/options.mk12
2 files changed, 15 insertions, 1 deletions
diff --git a/x11/libICE/Makefile b/x11/libICE/Makefile
index 9363e1da4ae..3db709ddeab 100644
--- a/x11/libICE/Makefile
+++ b/x11/libICE/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2007/01/22 14:47:30 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2007/11/07 11:51:52 abs Exp $
#
DISTNAME= libICE-1.0.3
@@ -19,6 +19,8 @@ USE_TOOLS+= pkg-config
PKGCONFIG_OVERRIDE+= ice.pc.in
+.include "options.mk"
+
.include "../../x11/xproto/buildlink3.mk"
.include "../../x11/xtrans/buildlink3.mk"
diff --git a/x11/libICE/options.mk b/x11/libICE/options.mk
new file mode 100644
index 00000000000..3a188a04e0f
--- /dev/null
+++ b/x11/libICE/options.mk
@@ -0,0 +1,12 @@
+# $NetBSD: options.mk,v 1.1 2007/11/07 11:51:52 abs Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.libICE
+PKG_SUPPORTED_OPTIONS+= inet6
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.else
+CONFIGURE_ARGS+= --disable-ipv6
+.endif