pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Run without errors when LICENSE is undefined.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a13e35199b36
branches:  trunk
changeset: 442122:a13e35199b36
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Thu Nov 19 09:16:38 2020 +0000

description:
Run without errors when LICENSE is undefined.

diffstat:

 mk/djbware.mk |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r c687105e7bef -r a13e35199b36 mk/djbware.mk
--- a/mk/djbware.mk     Thu Nov 19 09:08:15 2020 +0000
+++ b/mk/djbware.mk     Thu Nov 19 09:16:38 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: djbware.mk,v 1.31 2020/11/19 08:11:18 schmonz Exp $
+# $NetBSD: djbware.mk,v 1.32 2020/11/19 09:16:38 schmonz Exp $
 #
 # Makefile fragment for packages with djb-style build machinery
 #
@@ -26,8 +26,8 @@
 DJB_CONFIG_HOME?=      conf-home
 DJB_CONFIG_CMDS?=      ${DO_NADA}
 
-.if ${LICENSE} == "djb-nonlicense"
-# So-licensed packages that install totally unmodified may want to opt out
+.if defined(LICENSE) && ${LICENSE} == "djb-nonlicense"
+# Nonlicensed packages that install totally unmodified may want to opt out
 RESTRICTED?=           modified source and binaries may not be distributed
 NO_BIN_ON_CDROM?=      ${RESTRICTED}
 NO_BIN_ON_FTP?=                ${RESTRICTED}



Home | Main Index | Thread Index | Old Index