diff options
-rw-r--r-- | mk/bsd.pkg.mk | 16 |
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/ \ |