pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Allow USE_X11=weak that allows X11 paths without ha...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bf95043306fb
branches:  trunk
changeset: 410361:bf95043306fb
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Tue Jan 21 10:56:54 2020 +0000

description:
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.

diffstat:

 mk/bsd.pkg.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 82b1b183b0bf -r bf95043306fb mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Tue Jan 21 10:50:48 2020 +0000
+++ b/mk/bsd.pkg.mk     Tue Jan 21 10:56:54 2020 +0000
@@ -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} 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*}



Home | Main Index | Thread Index | Old Index