summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2007-10-31 11:56:44 +0000
committermarkd <markd@pkgsrc.org>2007-10-31 11:56:44 +0000
commita7b20f5b0e099057e4ee7a05c785d3c27ac62b35 (patch)
tree57f0128aeca9e67774d7526713c66ba111a575e5 /x11
parente8e20335626868be8eadcbdcdd786a2d16c88e16 (diff)
downloadpkgsrc-a7b20f5b0e099057e4ee7a05c785d3c27ac62b35.tar.gz
Add hack to build without ipv6. From PR pkg/37154 by Yakovetsky Vladimir
Diffstat (limited to 'x11')
-rw-r--r--x11/kdebase3/hacks.mk15
-rw-r--r--x11/kdebase3/options.mk4
2 files changed, 17 insertions, 2 deletions
diff --git a/x11/kdebase3/hacks.mk b/x11/kdebase3/hacks.mk
new file mode 100644
index 00000000000..66904c9dacf
--- /dev/null
+++ b/x11/kdebase3/hacks.mk
@@ -0,0 +1,15 @@
+# $NetBSD: hacks.mk,v 1.1 2007/10/31 11:56:44 markd Exp $
+
+.if !defined(KDEBASE3_HACKS_MK)
+KDEBASE3_HACKS_MK= # defined
+
+### issue is specific to xproto IPv6 support
+.if empty(PKG_OPTIONS:Minet6)
+PKG_HACKS+= X11_X_h
+post-wrapper:
+ ${SED} 's,^#define FamilyInternet6.*,/* undef FamilyInternet6 */,' \
+ ${BUILDLINK_DIR}/include/X11/X.h >${BUILDLINK_DIR}/include/X11/X.h.new
+ ${MV} ${BUILDLINK_DIR}/include/X11/X.h.new ${BUILDLINK_DIR}/include/X11/X.h
+.endif
+
+.endif
diff --git a/x11/kdebase3/options.mk b/x11/kdebase3/options.mk
index d7a960da6d0..003ed8d42cb 100644
--- a/x11/kdebase3/options.mk
+++ b/x11/kdebase3/options.mk
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.1 2007/01/26 02:49:25 markd Exp $
+# $NetBSD: options.mk,v 1.2 2007/10/31 11:56:44 markd Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.kdebase
-PKG_SUPPORTED_OPTIONS= sasl samba debug pam
+PKG_SUPPORTED_OPTIONS= inet6 sasl samba debug pam
PKG_SUGGESTED_OPTIONS= sasl
.include "../../mk/bsd.options.mk"