From 2b2b1ca931925f0f6445e13974f3a37cde79c927 Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Mon, 9 Dec 1996 07:08:16 +0000 Subject: [PATCH] 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.) --- share/mk/bsd.port.mk | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk index 575c30e90d7..f2a3c7b6227 100644 --- a/share/mk/bsd.port.mk +++ b/share/mk/bsd.port.mk @@ -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: -- 2.45.2