summaryrefslogtreecommitdiff
path: root/fonts
diff options
context:
space:
mode:
Diffstat (limited to 'fonts')
-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