summaryrefslogtreecommitdiff
path: root/x11/libXfont
diff options
context:
space:
mode:
Diffstat (limited to 'x11/libXfont')
-rw-r--r--x11/libXfont/Makefile4
-rw-r--r--x11/libXfont/options.mk12
2 files changed, 15 insertions, 1 deletions
diff --git a/x11/libXfont/Makefile b/x11/libXfont/Makefile
index 6fd09db80b6..232aa46cdd3 100644
--- a/x11/libXfont/Makefile
+++ b/x11/libXfont/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2011/11/14 13:34:10 cheusov Exp $
+# $NetBSD: Makefile,v 1.21 2011/11/14 14:07:35 cheusov Exp $
#
DISTNAME= libXfont-1.4.4
@@ -21,6 +21,8 @@ PKGCONFIG_OVERRIDE+= xfont.pc.in
CONFIGURE_ARGS+= --disable-devel-docs
+.include "options.mk"
+
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../x11/fontcacheproto/buildlink3.mk"
diff --git a/x11/libXfont/options.mk b/x11/libXfont/options.mk
new file mode 100644
index 00000000000..7ff5d204456
--- /dev/null
+++ b/x11/libXfont/options.mk
@@ -0,0 +1,12 @@
+# $NetBSD: options.mk,v 1.1 2011/11/14 14:07:35 cheusov Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.libXfont
+PKG_SUPPORTED_OPTIONS+= inet6
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.else
+CONFIGURE_ARGS+= --disable-ipv6
+.endif