summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2001-04-22 04:52:31 +0000
committerjlam <jlam>2001-04-22 04:52:31 +0000
commit827575a263ef785560f247c4818749d88357ed60 (patch)
tree5c3c2496f243989372b27f8b2cfeafb4d8bc170c /mk
parent13185d0ea1eaff8814156ca2dbf22dede591a773 (diff)
downloadpkgsrc-827575a263ef785560f247c4818749d88357ed60.tar.gz
Handle freetype2 package like the MesaLib package as it is bundled with
XFree86-4.0.x. Missed committing this file along with the related changes to graphics/freetype/Makefile and mk/bsd.pkg.mk.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.prefs.mk19
1 files changed, 18 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index 4cdba50acc6..4319a074a6b 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.32 2001/04/08 14:14:11 hubertf Exp $
+# $NetBSD: bsd.prefs.mk,v 1.33 2001/04/22 04:52:31 jlam Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -128,6 +128,23 @@ HAVE_BUILTIN_MESA= YES
.undef __BUILTIN_MESA
.endif # CHECK_MESA
+# Check if we got FreeType2 distributed with XFree86 4.x or if we need to
+# depend on the freetype2 package.
+.if (defined(CHECK_FREETYPE2) || defined(USE_FREETYPE2))
+X11BASE?= /usr/X11R6
+.if exists(${X11BASE}/include/freetype2/freetype/freetype.h)
+__BUILTIN_FREETYPE2= egrep -c BuildFreetype2Library ${X11BASE}/lib/X11/config/X11.tmpl || true
+.else
+__BUILTIN_FREETYPE2= 0
+.endif
+.if ${__BUILTIN_FREETYPE2} == "0"
+HAVE_BUILTIN_FREETYPE2= NO
+.else
+HAVE_BUILTIN_FREETYPE2= YES
+.endif
+.undef __BUILTIN_FREETYPE2
+.endif # CHECK_FREETYPE2
+
.if defined(USE_CURSES) && !defined(NEED_NCURSES)
NEED_NCURSES= NO
.if ${OPSYS} == "NetBSD"