summaryrefslogtreecommitdiff
path: root/x11/kdebase3
diff options
context:
space:
mode:
authormarkd <markd>2007-10-31 11:56:44 +0000
committermarkd <markd>2007-10-31 11:56:44 +0000
commit6ef1f04a4742415987768553c0cb81c0b0163d90 (patch)
tree57f0128aeca9e67774d7526713c66ba111a575e5 /x11/kdebase3
parent16cfb03d0e47fec9cd5a4bdacd3d4d3da7922fb9 (diff)
downloadpkgsrc-6ef1f04a4742415987768553c0cb81c0b0163d90.tar.gz
Add hack to build without ipv6. From PR pkg/37154 by Yakovetsky Vladimir
Diffstat (limited to 'x11/kdebase3')
-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"