summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1995-05-13 05:37:45 +0000
committerasami <asami@FreeBSD.org>1995-05-13 05:37:45 +0000
commit335c8ec2f6c0dc8335c22c8ae7c6e909abd364f7 (patch)
tree18c3bab5af6937b3faf1cd02e4ae88107e19ca77 /share
parent3d871dc5c6c65139f787e8af07f755b1dac0c2d5 (diff)
downloadFreeBSD-src-335c8ec2f6c0dc8335c22c8ae7c6e909abd364f7.zip
FreeBSD-src-335c8ec2f6c0dc8335c22c8ae7c6e909abd364f7.tar.gz
Add FORCE_PACKAGE, if this is defined, NO_PACKAGE will be turned off.
Ports for which we can't build packages should define NO_PACKAGE but still prepare pkg/* files. The user who really wants a package and clear of the legal problems can say FORCE_PACKAGE from the command line to build a package anyway.
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.port.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index 03c8331..f42ea4f 100644
--- a/share/mk/bsd.port.mk
+++ b/share/mk/bsd.port.mk
@@ -3,7 +3,7 @@
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
#
-# $Id: bsd.port.mk,v 1.159 1995/05/12 07:43:48 asami Exp $
+# $Id: bsd.port.mk,v 1.160 1995/05/12 08:44:12 asami Exp $
#
# Please view me with 4 column tabs!
@@ -244,6 +244,12 @@ MTREE_LOCAL= /etc/mtree/BSD.local.dist
MTREE_CMD?= mtree
MTREE_ARGS?= -U -f ${MTREE_LOCAL} -d -e -p
+# The user can override the NO_PACKAGE by specifying this from
+# the make command line
+.if defined(FORCE_PACKAGE)
+.undef NO_PACKAGE
+.endif
+
PKG_CMD?= pkg_create
.if !defined(PKG_ARGS)
PKG_ARGS= -v -c ${PKGDIR}/COMMENT -d ${PKGDIR}/DESCR -f ${PKGDIR}/PLIST -p ${PREFIX} -P "`${MAKE} package-depends|sort|uniq`"
OpenPOWER on IntegriCloud