summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2000-08-23 22:22:53 +0000
committertron <tron@pkgsrc.org>2000-08-23 22:22:53 +0000
commit3587744105d1c40ee4f94fcd5c50335818522169 (patch)
treead93b20a686c9ff7d76ae5265461cff5a90fea43 /mk
parent70d66fb13d140049127a9831808571b7ebb2b3b8 (diff)
downloadpkgsrc-3587744105d1c40ee4f94fcd5c50335818522169.tar.gz
Add support for new variable "USE_XPM" for packages which use the Xpm
library. It will use the include Xpm library on systems with XFree86 4.0 or newer and the package on systems with XFree86 3.3.6 and older.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk16
1 files changed, 15 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index d91201633e6..17a803dc083 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.548 2000/08/21 09:41:07 tron Exp $
+# $NetBSD: bsd.pkg.mk,v 1.549 2000/08/23 22:22:53 tron Exp $
#
# This file is in the public domain.
#
@@ -733,6 +733,20 @@ DEPENDS+= ${LESSTIF_DEPENDS}
.endif
.endif
+# Check if we got Xpm distributed with XFree86 4.0 or newer or if we
+# need to use the package.
+.if defined(USE_XPM)
+.if exists(${X11BASE}/include/X11/xpm.h)
+__BUILTIN_XPM!= ${EGREP} -c NormalLibXpm ${X11BASE}/lib/X11/config/X11.tmpl || ${TRUE}
+.if (${__BUILTIN_XPM} == "0")
+DEPENDS+= xpm-3.4k:../../graphics/xpm
+.endif
+.undef __BUILTIN_XPM
+.else
+DEPENDS+= xpm-3.4k:../../graphics/xpm
+.endif
+.endif
+
# Popular master sites
MASTER_SITE_XCONTRIB+= \
ftp://crl.dec.com/pub/X11/contrib/ \