diff options
author | jlam <jlam@pkgsrc.org> | 2002-10-22 22:54:07 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-10-22 22:54:07 +0000 |
commit | 0ebae1a37ff929bce6df5dcffc76b719824a6c15 (patch) | |
tree | b2e0bbe58ddf4c76b07e55a3c77e6979267751ba /mk/bsd.pkg.mk | |
parent | ad1b0af1a45a3c7f7001973c562d5ec376b907f1 (diff) | |
download | pkgsrc-0ebae1a37ff929bce6df5dcffc76b719824a6c15.tar.gz |
Have USE_IMAKE imply USE_X11BASE imply USE_X11. Now we can just check if
USE_X11 is defined instead of USE_X11 || USE_X11BASE || USE_IMAKE.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r-- | mk/bsd.pkg.mk | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index ed1732de5ee..ef54e65ff69 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1074 2002/10/21 21:58:59 seb Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1075 2002/10/22 22:54:07 jlam Exp $ # # This file is in the public domain. # @@ -146,7 +146,14 @@ BUILDLINK_DIR?= ${LOCALBASE} BUILDLINK_X11PKG_DIR?= ${X11BASE} BUILDLINK_X11_DIR?= ${X11BASE} -.if defined(USE_IMAKE) || defined(USE_X11BASE) +.if defined(USE_IMAKE) +USE_X11BASE?= implied +.endif +.if defined(USE_X11BASE) +USE_X11?= implied +.endif + +.if defined(USE_X11BASE) . if exists(${LOCALBASE}/lib/X11/config/xpkgwedge.def) || \ exists(${X11BASE}/lib/X11/config/xpkgwedge.def) BUILD_DEPENDS+= xpkgwedge>=1.5:../../pkgtools/xpkgwedge @@ -359,7 +366,7 @@ M4?= /usr/bin/m4 .endif .if !defined(X11_BUILDLINK_MK) -. if defined(USE_X11BASE) || defined(USE_X11) +. if defined(USE_X11) X11_LDFLAGS= # empty . if ${_USE_RPATH} == "yes" X11_LDFLAGS+= -Wl,-R${X11BASE}/lib @@ -433,7 +440,7 @@ BUILD_DEPENDS+= bzip2>=0.9.0b:../../archivers/bzip2 # Figure out where the local mtree file is .if !defined(MTREE_FILE) -. if defined(USE_IMAKE) || defined(USE_X11BASE) +. if defined(USE_X11BASE) MTREE_FILE= ${_PKGSRCDIR}/mk/${OPSYS}.x11.dist . else MTREE_FILE= ${_PKGSRCDIR}/mk/${OPSYS}.pkg.dist @@ -1075,8 +1082,7 @@ IGNORE+= "${PKGNAME} is restricted:" \ IGNORE+= "${PKGNAME} may not be built, because it utilizes strong cryptography" . endif . endif -. if ((defined(USE_IMAKE) || defined(USE_X11BASE) || defined(USE_X11)) && \ - !exists(${X11BASE})) +. if defined(USE_X11) && !exists(${X11BASE}) IGNORE+= "${PKGNAME} uses X11, but ${X11BASE} not found" . endif . if defined(BROKEN) |