summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-07-02 08:02:33 +0000
committerjlam <jlam@pkgsrc.org>2001-07-02 08:02:33 +0000
commit8d8c3630b3328e42368bc308d7442aedae942c76 (patch)
treeeebe7253c1ff451f8d52cacd70bf787c01c9b8e9 /mk/bsd.prefs.mk
parent06a4225afc13172d6c58e26741dd6e90a1d79f11 (diff)
downloadpkgsrc-8d8c3630b3328e42368bc308d7442aedae942c76.tar.gz
Make check for Xpm in XFree86 look like the checks for Mesa and freetype2.
Diffstat (limited to 'mk/bsd.prefs.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 8b186e24e2f..d13a2ba77e0 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.45 2001/06/28 13:16:56 drochner Exp $
+# $NetBSD: bsd.prefs.mk,v 1.46 2001/07/02 08:02:34 jlam Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -184,6 +184,23 @@ HAVE_BUILTIN_FREETYPE2= YES
.undef __BUILTIN_FREETYPE2
.endif # CHECK_FREETYPE2
+# Check if we got Xpm distributed with XFree86 4.x or if we need to
+# depend on the Xpm package.
+.if (defined(CHECK_XPM) || defined(USE_XPM))
+X11BASE?= /usr/X11R6
+.if exists(${X11BASE}/include/X11/xpm.h)
+__BUILTIN_XPM!= ${EGREP} -c NormalLibXpm ${X11BASE}/lib/X11/config/X11.tmpl || ${TRUE}
+.else
+__BUILTIN_XPM= 0
+.endif
+.if ${__BUILTIN_XPM} == "0"
+HAVE_BUILTIN_XPM= NO
+.else
+HAVE_BUILTIN_XPM= YES
+.endif
+.undef __BUILTIN_XPM
+.endif # CHECK_XPM
+
.if defined(USE_CURSES) && !defined(NEED_NCURSES)
NEED_NCURSES= NO
.if ${OPSYS} == "NetBSD"