summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2001-07-07 06:19:21 +0000
committertron <tron@pkgsrc.org>2001-07-07 06:19:21 +0000
commitcd2cc93a768fb9fcf5dc27d0eb6918eeacbe796e (patch)
tree42d7a4730b3cd630b2c1645118d391b3fb2a1cd8 /graphics
parent6e9619cc77d1fbcbb37e28ac15ab63c820a6c9f7 (diff)
downloadpkgsrc-cd2cc93a768fb9fcf5dc27d0eb6918eeacbe796e.tar.gz
Check if "${X11BASE}/lib/X11/config/X11.tmpl" before searching with
"grep" in it to avoid problems under Solaris.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/xpm/buildlink.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/graphics/xpm/buildlink.mk b/graphics/xpm/buildlink.mk
index dae100334d0..c955762ae64 100644
--- a/graphics/xpm/buildlink.mk
+++ b/graphics/xpm/buildlink.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink.mk,v 1.6 2001/07/06 21:11:33 tron Exp $
+# $NetBSD: buildlink.mk,v 1.7 2001/07/07 06:19:21 tron Exp $
#
# This Makefile fragment is included by packages that use xpm.
#
@@ -21,7 +21,8 @@ BUILDLINK_DEPENDS.xpm?= xpm-3.4k
# depend on the Xpm package.
#
.include "../../mk/bsd.prefs.mk"
-.if exists(${X11BASE}/include/X11/xpm.h)
+.if exists(${X11BASE}/include/X11/xpm.h) &&
+ exists(${X11BASE}/lib/X11/config/X11.tmpl)
_IS_BUILTIN_XPM!= ${EGREP} -c NormalLibXpm ${X11BASE}/lib/X11/config/X11.tmpl || ${TRUE}
.else
_IS_BUILTIN_XPM= 0