diff options
author | asami <asami@FreeBSD.org> | 1996-12-09 07:08:16 +0000 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1996-12-09 07:08:16 +0000 |
commit | ee7362d0112b39878f5656abe88c5fbb24901314 (patch) | |
tree | 87524ce8a996ffe0b7897465d2f400a67961f447 /share | |
parent | 1238b8c5eca816a27b6fc687237a6cc0f2bc9ade (diff) | |
download | FreeBSD-src-ee7362d0112b39878f5656abe88c5fbb24901314.zip FreeBSD-src-ee7362d0112b39878f5656abe88c5fbb24901314.tar.gz |
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.)
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.port.mk | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk index 575c30e..f2a3c7b 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: |