summaryrefslogtreecommitdiff
path: root/x11/tk/options.mk
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2012-12-12 15:30:52 +0000
committerwiz <wiz@pkgsrc.org>2012-12-12 15:30:52 +0000
commitc23c84d3626441e369cc2ca80cd18117806b5553 (patch)
tree48be7fd36c258c5c066248a7a09fb485409aef24 /x11/tk/options.mk
parent82390f4a77325efdee755851a7d40c82b038b48e (diff)
downloadpkgsrc-c23c84d3626441e369cc2ca80cd18117806b5553.tar.gz
Add default-on options enabling xft2 support for nicer interfaces.
From Anthony Mallet in PR 47246. Bump PKGREVISION.
Diffstat (limited to 'x11/tk/options.mk')
-rw-r--r--x11/tk/options.mk14
1 files changed, 11 insertions, 3 deletions
diff --git a/x11/tk/options.mk b/x11/tk/options.mk
index cf0cc61361e..17b364938c7 100644
--- a/x11/tk/options.mk
+++ b/x11/tk/options.mk
@@ -1,8 +1,8 @@
-# $NetBSD: options.mk,v 1.1 2012/08/22 22:05:05 marino Exp $
+# $NetBSD: options.mk,v 1.2 2012/12/12 15:30:52 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.tk
-PKG_SUPPORTED_OPTIONS= threads debug
-PKG_SUGGESTED_OPTIONS= threads
+PKG_SUPPORTED_OPTIONS= threads debug xft2
+PKG_SUGGESTED_OPTIONS= threads xft2
.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.options.mk"
@@ -17,3 +17,11 @@ CONFIGURE_ARGS+= --enable-threads
.else
CONFIGURE_ARGS+= --disable-threads
.endif
+
+.if !empty(PKG_OPTIONS:Mxft2)
+CONFIGURE_ARGS+= --enable-xft
+USE_TOOLS+= pkg-config
+. include "../../x11/libXft/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-xft
+.endif