From 7b333d65b9b3e141898ecc45772b868745ef9f72 Mon Sep 17 00:00:00 2001 From: cheusov Date: Mon, 14 Nov 2011 14:07:35 +0000 Subject: Add inet6 option as requiested in PR 37117. Tested on current. Approved by wiz@. --- x11/libXfont/Makefile | 4 +++- x11/libXfont/options.mk | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 x11/libXfont/options.mk 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 -- cgit v1.2.3