diff options
author | kamil <kamil@pkgsrc.org> | 2020-01-21 10:56:54 +0000 |
---|---|---|
committer | kamil <kamil@pkgsrc.org> | 2020-01-21 10:56:54 +0000 |
commit | f33edf25a960686a0460d6b4c4f9ff5df63498da (patch) | |
tree | 672384d24fad3308c9f87252c66384680e22b48b | |
parent | e8b5221d2a1b2a7f6c71ed5b7c5525089d369dfa (diff) | |
download | pkgsrc-f33edf25a960686a0460d6b4c4f9ff5df63498da.tar.gz |
Allow USE_X11=weak that allows X11 paths without having them reachable
Useful in certain packages (python) where X11 paths are needed in wrappers,
but optional in build and runtime.
-rw-r--r-- | mk/bsd.pkg.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 01e07818fab..fc027d14278 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.2033 2019/11/04 17:47:30 rillig Exp $ +# $NetBSD: bsd.pkg.mk,v 1.2034 2020/01/21 10:56:54 kamil Exp $ # # This file is in the public domain. # @@ -477,7 +477,7 @@ PKG_SKIP_REASON+= "${PKGNAME} may not be placed in source form on a CDROM:" \ PKG_SKIP_REASON+= "${PKGNAME} is restricted:" \ " "${RESTRICTED:Q} . endif -. if defined(USE_X11) && (${X11_TYPE} == "native") && !exists(${X11BASE}) +. if defined(USE_X11) && (${USE_X11} != "weak") && (${X11_TYPE} == "native") && !exists(${X11BASE}) PKG_FAIL_REASON+= "${PKGNAME} uses X11, but ${X11BASE} not found" . endif . if ${BROKEN:U:M*} |