diff options
author | jlam <jlam@pkgsrc.org> | 2003-01-14 09:26:34 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-01-14 09:26:34 +0000 |
commit | b484200efb9b89f97901ef898ca17a5557d49540 (patch) | |
tree | 83679ca1ae9b9a8d0d59f6730395f520b7a00e91 /x11/Xrender/Makefile | |
parent | 615db012ed1c6b5c3bcbba0822b8bedf6a0d6a76 (diff) | |
download | pkgsrc-b484200efb9b89f97901ef898ca17a5557d49540.tar.gz |
Avoid building this package when X11PREFIX == X11BASE and there's already
a builtin libXrender.
Diffstat (limited to 'x11/Xrender/Makefile')
-rw-r--r-- | x11/Xrender/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/x11/Xrender/Makefile b/x11/Xrender/Makefile index 6a5360f1e2e..c2feb36fc47 100644 --- a/x11/Xrender/Makefile +++ b/x11/Xrender/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2003/01/14 09:16:36 jlam Exp $ +# $NetBSD: Makefile,v 1.2 2003/01/14 09:26:34 jlam Exp $ DISTNAME= fcpackage.2_1 PKGNAME= Xrender-${XRENDER_VERSION} @@ -17,4 +17,18 @@ USE_IMAKE= YES WRKSRC= ${WRKDIR}/${DISTNAME}/Xrender EXTRACT_ELEMENTS= ${DISTNAME}/Xrender +.include "../../mk/bsd.prefs.mk" + +_RENDER_H= ${X11BASE}/include/X11/extensions/render.h +_X11_TMPL= ${X11BASE}/lib/X11/config/X11.tmpl +.if exists(${_RENDER_H}) && exists(${_X11_TMPL}) +_IS_BUILTIN_XRENDER!= ${GREP} -c BuildRenderLibrary ${_X11_TMPL} || ${TRUE} +.else +_IS_BUILTIN_XRENDER= 0 +.endif + +.if (${X11PREFIX} == ${X11BASE}) && (${_IS_BUILTIN_XRENDER} != "0") +PKG_SKIP_REASON= "${PKGNAME} is part of your X11 distribution" +.endif + .include "../../mk/bsd.pkg.mk" |