diff options
author | tron <tron> | 2002-09-01 15:13:41 +0000 |
---|---|---|
committer | tron <tron> | 2002-09-01 15:13:41 +0000 |
commit | 13be96e5742dafc36a7cd459998b7a6305a79a7c (patch) | |
tree | e4f6fd2a7cf6661873f728d21cd12e9c371b77cc /graphics/xpm/Makefile | |
parent | d565c22e8f0160aa8b738406331db8e62d587b71 (diff) | |
download | pkgsrc-13be96e5742dafc36a7cd459998b7a6305a79a7c.tar.gz |
The "Xpm" library is distributed with Solaris 9. Handle this case like
XFree86 4.x and don't install the package.
Diffstat (limited to 'graphics/xpm/Makefile')
-rw-r--r-- | graphics/xpm/Makefile | 8 |
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." |