summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-01-24 09:23:22 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-01-24 09:23:22 +0000
commitc0f8903bb6c660b2bdd6b42dd9ecb3114c1a5e19 (patch)
tree0d9760b1bd2394ed8e5e85e3efe5efb524fca597 /mk/bsd.pkg.mk
parent39318a819f2110e734da5a0dd3f2d9d538e57adc (diff)
downloadpkgsrc-c0f8903bb6c660b2bdd6b42dd9ecb3114c1a5e19.tar.gz
Added a new variable for XFree86 packages:
USE_PKGSRC_XFREE86 By default it is disabled, if you want to use XFree86 packages from pkgsrc, please add "USE_PKGSRC_XFREE86=YES" in /etc/mk.conf.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r--mk/bsd.pkg.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 8c69c7706d4..d462a47d3ef 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1354 2004/01/23 17:55:17 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1355 2004/01/24 09:23:23 xtraeme Exp $
#
# This file is in the public domain.
#
@@ -1383,7 +1383,15 @@ PKG_FAIL_REASON+= "${PKGNAME} is restricted:" \
PKG_FAIL_REASON+= "${PKGNAME} may not be built, because it utilizes strong cryptography"
. endif
. endif
-. if defined(USE_X11) && !exists(${X11BASE})
+. if defined(USE_X11) && !empty(USE_PKGSRC_XFREE86:M[Yy][Ee][Ss])
+DEPENDS+= XFree86-libs>=4.3.0:../../x11/XFree86-libs
+. endif
+. if defined(USE_X11) && !exists(${X11BASE}) && !empty(USE_PKGSRC_XFREE86:M[Yy][Ee][Ss])
+ @${MKDIR} ${X11BASE}
+ @${CHOWN} ${ROOT_USER}:${ROOT_GROUP} ${X11BASE}
+ @${CHMOD} ${PKGDIRMODE} ${X11BASE}
+DEPENDS+= XFree86-libs>=4.3.0:../../x11/XFree86-libs
+. elif defined(USE_X11) && !exists(${X11BASE})
PKG_FAIL_REASON+= "${PKGNAME} uses X11, but ${X11BASE} not found"
. endif
. if defined(BROKEN)