mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Submitted by: fenner
(1) Print out reason when port is ignored because of NO_CDROM, RESTRICTED, IS_INTERACTIVE, (not) IS_INTERACTIVE, BROKEN, REQUIRES_MOTIF or NO_PACKAGE. Submitted by: obrien (2) Add new special file in pkg/: DISPLAY. (Cf. man pkg_create) (3) Minor bugfix in clean-depends target, which sometimes executed "make clean" in the current directory. (Which is probably ok, but is wrong nonetheless.)
This commit is contained in:
parent
1364c9e2fc
commit
2b2b1ca931
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=20239
@ -6,7 +6,7 @@
|
||||
# bsd.port.mk - 940820 Jordan K. Hubbard.
|
||||
# This file is in the public domain.
|
||||
#
|
||||
# $Id: bsd.port.mk,v 1.233 1996/12/04 05:53:17 asami Exp $
|
||||
# $Id: bsd.port.mk,v 1.234 1996/12/08 05:40:38 obrien Exp $
|
||||
#
|
||||
# Please view me with 4 column tabs!
|
||||
|
||||
@ -398,6 +398,9 @@ PKG_ARGS+= -k ${PKGDIR}/DEINSTALL
|
||||
.if exists(${PKGDIR}/REQ)
|
||||
PKG_ARGS+= -r ${PKGDIR}/REQ
|
||||
.endif
|
||||
.if exists(${PKGDIR}/DISPLAY)
|
||||
PKG_ARGS+= -D ${PKGDIR}/DISPLAY
|
||||
.endif
|
||||
.if !defined(NO_MTREE) && defined(MTREE_LOCAL)
|
||||
PKG_ARGS+= -m ${MTREE_LOCAL}
|
||||
.endif
|
||||
@ -581,20 +584,12 @@ IGNORE= "is not an interactive port"
|
||||
.elif (defined(REQUIRES_MOTIF) && !defined(HAVE_MOTIF))
|
||||
IGNORE= "requires Motif"
|
||||
.elif (defined(NO_CDROM) && defined(FOR_CDROM))
|
||||
.if ${NO_CDROM} == yes
|
||||
IGNORE= "may not be placed on a CDROM"
|
||||
.else
|
||||
IGNORE= "may not be placed on a CDROM: ${NO_CDROM}"
|
||||
.endif
|
||||
.elif (defined(RESTRICTED) && defined(NO_RESTRICTED))
|
||||
IGNORE= "is restricted: ${RESTRICTED}"
|
||||
.elif defined(BROKEN)
|
||||
.if ${BROKEN} == yes
|
||||
IGNORE= "is marked as broken"
|
||||
.else
|
||||
IGNORE= "is marked as broken: ${BROKEN}"
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if defined(IGNORE)
|
||||
.if defined(IGNORE_SILENT)
|
||||
@ -693,7 +688,11 @@ install: build
|
||||
# Disable package
|
||||
.if defined(NO_PACKAGE) && !target(package)
|
||||
package:
|
||||
.if defined(IGNORE_SILENT)
|
||||
@${DO_NADA}
|
||||
.else
|
||||
@${ECHO_MSG} "===> ${PKGNAME} may not be packaged: ${NO_PACKAGE}."
|
||||
.endif
|
||||
.endif
|
||||
|
||||
# Disable describe
|
||||
@ -1370,14 +1369,19 @@ misc-depends:
|
||||
|
||||
.if !target(clean-depends)
|
||||
clean-depends:
|
||||
@for i in ${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS}; do \
|
||||
.if defined(FETCH_DEPENDS) || defined(BUILD_DEPENDS) || defined(LIB_DEPENDS) \
|
||||
|| defined(RUN_DEPENDS)
|
||||
@for i in ${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS} ${RUN_DEPENDS}; do \
|
||||
dir=`${ECHO} $$i | ${SED} -e 's/.*://'`; \
|
||||
if [ -d $$dir ] ; then (cd $$dir; ${MAKE} clean); fi \
|
||||
done
|
||||
.endif
|
||||
.if defined(DEPENDS)
|
||||
@for dir in ${DEPENDS}; do \
|
||||
if [ -d $$dir ] ; then (cd $$dir; ${MAKE} clean); fi \
|
||||
done
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if !target(depends-list)
|
||||
depends-list:
|
||||
|
Loading…
Reference in New Issue
Block a user