summaryrefslogtreecommitdiff
path: root/graphics/xpm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/xpm/Makefile')
-rw-r--r--graphics/xpm/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/graphics/xpm/Makefile b/graphics/xpm/Makefile
index d150f932df3..0ec7157defa 100644
--- a/graphics/xpm/Makefile
+++ b/graphics/xpm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2002/08/25 18:39:24 jlam Exp $
+# $NetBSD: Makefile,v 1.25 2002/09/01 15:13:42 tron Exp $
DISTNAME= xpm-3.4k
CATEGORIES= graphics x11
@@ -14,13 +14,17 @@ USE_IMAKE= # defined
.include "../../mk/bsd.prefs.mk"
-# Check if we got Xpm distributed with XFree86 4.x.
+# Check if we got Xpm distributed with XFree86 4.x or Solaris 9.
+.if (${OPSYS} != SunOS)
.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
.endif
+.else
+_IS_BUILTIN_XPM!= (/usr/sbin/pkgchk -l SUNWxwinc | ${EGREP} -c xpm.h) || ${TRUE}
+.endif
.if ${_IS_BUILTIN_XPM} != "0"
IGNORE= "The Xpm library is included in your X11 distribution."