summaryrefslogtreecommitdiff
path: root/pkgtools/x11-links
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2004-01-25 07:43:54 +0000
committerxtraeme <xtraeme>2004-01-25 07:43:54 +0000
commitdc2dd9d46b7e2b40814d24cacf50915175cd1df8 (patch)
treeffb268e503c199d5745042824c1ea11ce08daffb /pkgtools/x11-links
parentd10f885ba077c897a9b52c612cc1798944fddc3e (diff)
downloadpkgsrc-dc2dd9d46b7e2b40814d24cacf50915175cd1df8.tar.gz
Add dependency on XFree86-libs if ${X11BASE}/include/X11/X.h doesn't
exists and we are using XFree86 packages from pkgsrc.
Diffstat (limited to 'pkgtools/x11-links')
-rw-r--r--pkgtools/x11-links/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgtools/x11-links/Makefile b/pkgtools/x11-links/Makefile
index daf6f97e620..252377e9b7f 100644
--- a/pkgtools/x11-links/Makefile
+++ b/pkgtools/x11-links/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.47 2004/01/20 12:23:58 agc Exp $
+# $NetBSD: Makefile,v 1.48 2004/01/25 07:43:54 xtraeme Exp $
#
# NOTE: If you update this package, then you'll likely need to also update
# the x11-links dependency in mk/buildlink[23]/bsd.buildlink[23].mk
@@ -29,7 +29,10 @@ PLIST_SRC.files= ${PLIST_SRC}.files
.include "../../mk/bsd.prefs.mk"
-.if !exists(${X11BASE}/include/X11/X.h)
+.if !exists(${X11BASE}/include/X11/X.h) && \
+ !empty(USE_PKGSRC_XFREE86:M[Yy][Ee][Ss])
+DEPENDS+= XFree86-libs>=4.3.0:../../x11/XFree86-libs
+.elif !exists(${X11BASE}/include/X11/X.h)
PKG_FAIL_REASON= "${PKGNAME} requires X headers to be installed"
.endif