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.
This commit is contained in:
asami 1995-05-13 05:37:45 +00:00
parent 862b8c222d
commit dbfbb0c8e3

View File

@ -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`"