From 827575a263ef785560f247c4818749d88357ed60 Mon Sep 17 00:00:00 2001 From: jlam Date: Sun, 22 Apr 2001 04:52:31 +0000 Subject: 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. --- mk/bsd.prefs.mk | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'mk') 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" -- cgit v1.2.3