summaryrefslogtreecommitdiff
path: root/fonts/Xft2
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2003-03-13 20:40:01 +0000
committertron <tron@pkgsrc.org>2003-03-13 20:40:01 +0000
commitcae2631eb69e2101cbe66e5e0dd2adfedb9831ef (patch)
treee0bc42f3217ce8f4c00c849cfcf813a06be79756 /fonts/Xft2
parent44d260cd1aa4df6b20d60fdd90c31ac68f798d9a (diff)
downloadpkgsrc-cae2631eb69e2101cbe66e5e0dd2adfedb9831ef.tar.gz
Use XFree86 4.3.0's "Xft2" if available.
Diffstat (limited to 'fonts/Xft2')
-rw-r--r--fonts/Xft2/buildlink2.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/fonts/Xft2/buildlink2.mk b/fonts/Xft2/buildlink2.mk
index ea6eac4f3ab..f119283637b 100644
--- a/fonts/Xft2/buildlink2.mk
+++ b/fonts/Xft2/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.4 2003/01/14 09:20:20 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.5 2003/03/13 20:40:01 tron Exp $
#
# This Makefile fragment is included by packages that use Xft2.
#
@@ -8,12 +8,18 @@
.if !defined(XFT2_BUILDLINK2_MK)
XFT2_BUILDLINK2_MK= # defined
+.include "../../mk/bsd.prefs.mk"
+
+.if exists(${X11BASE}/bin/xft-config)
+BUILDLINK_PREFIX.Xft2= ${X11BASE}
+.else
BUILDLINK_PACKAGES+= Xft2
BUILDLINK_DEPENDS.Xft2?= Xft2>=2.1nb1
BUILDLINK_PKGSRCDIR.Xft2?= ../../fonts/Xft2
EVAL_PREFIX+= BUILDLINK_PREFIX.Xft2=Xft2
BUILDLINK_PREFIX.Xft2_DEFAULT= ${LOCALBASE}
+.endif
BUILDLINK_FILES.Xft2+= include/X11/Xft/*
BUILDLINK_FILES.Xft2+= lib/libXft.*
BUILDLINK_FILES.Xft2+= lib/pkgconfig/xft.pc