summaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1997-04-15 08:36:41 +0000
committerSatoshi Asami <asami@FreeBSD.org>1997-04-15 08:36:41 +0000
commita6df390f90e1b0018ac9305d32d866c529974867 (patch)
treec254a932e60ffa28f3735634e5e71fd9d085856b /Mk/bsd.port.mk
parentAdd "database" to the categories list. Personally, I don't think anyone (diff)
(1) Change comment for USE_X11 to be more explicit about what it
means. (2) Change MASTER_SITE_GNU etc. to use += instead of ?=, so users can specify a local mirror in /etc/make.conf and still get the full fallback in case something is missing. Submitted by: Narvi <narvi@haldjas.folklore.ee> (3) Skip port if USE_X11 or USE_IMAKE is defined and /usr/X11R6 doesn't exist. Submitted by: imp (4) Add "-" in front of rmdir of ${DISTDIR}/${DIST_SUBDIR} in distclean target; the directory might not be empty because the subdir is shared with some other ports' distfiles.
Notes
Notes: svn path=/head/; revision=6213
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk22
1 files changed, 12 insertions, 10 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 83cd8046706d..1dd1bd2e1179 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1,7 +1,7 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4
#
-# $Id: bsd.port.mk,v 1.253 1997/02/23 13:24:45 asami Exp $
+# $Id: bsd.port.mk,v 1.254 1997/03/06 08:28:15 asami Exp $
# $NetBSD: $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
@@ -114,7 +114,7 @@ OpenBSD_MAINTAINER= imp@OpenBSD.ORG
# RESTRICTED - Port is restricted. Set this string to the reason why.
# USE_GMAKE - Says that the port uses gmake.
# USE_IMAKE - Says that the port uses imake.
-# USE_X11 - Says that the port uses X11.
+# USE_X11 - Says that the port uses X11 (i.e., installs in ${X11BASE}).
# NO_INSTALL_MANPAGES - For imake ports that don't like the install.man
# target.
# HAS_CONFIGURE - Says that the port has its own configure script.
@@ -478,26 +478,26 @@ ALL_TARGET?= all
INSTALL_TARGET?= install
# Popular master sites
-MASTER_SITE_XCONTRIB?= \
- ftp://ftp.x.org/contrib/${MASTER_SITE_SUBDIR}/ \
- ftp://crl.dec.com/pub/X11/contrib/${MASTER_SITE_SUBDIR}/
+MASTER_SITE_XCONTRIB+= \
+ ftp://crl.dec.com/pub/X11/contrib/${MASTER_SITE_SUBDIR}/ \
+ ftp://ftp.eu.net/X11/contrib/${MASTER_SITE_SUBDIR}/
-MASTER_SITE_GNU?= \
+MASTER_SITE_GNU+= \
ftp://prep.ai.mit.edu/pub/gnu/${MASTER_SITE_SUBDIR}/ \
ftp://wuarchive.wustl.edu/systems/gnu/${MASTER_SITE_SUBDIR}/
-MASTER_SITE_PERL_CPAN?= \
+MASTER_SITE_PERL_CPAN+= \
ftp://ftp.digital.com/pub/plan/perl/CPAN/modules/by-module/${MASTER_SITE_SUBDIR}/ \
ftp://ftp.cdrom.com/pub/perl/CPAN/modules/by-module/${MASTER_SITE_SUBDIR}/
-MASTER_SITE_TEX_CTAN?= \
+MASTER_SITE_TEX_CTAN+= \
ftp://ftp.cdrom.com/pub/tex/ctan/${MASTER_SITE_SUBDIR}/ \
ftp://wuarchive.wustl.edu/packages/TeX/${MASTER_SITE_SUBDIR}/ \
ftp://ftp.funet.fi/pub/TeX/CTAN/${MASTER_SITE_SUBDIR}/ \
ftp://ftp.tex.ac.uk/public/ctan/tex-archive/${MASTER_SITE_SUBDIR}/ \
ftp://ftp.dante.de/tex-archive/${MASTER_SITE_SUBDIR}/
-MASTER_SITE_SUNSITE?= \
+MASTER_SITE_SUNSITE+= \
ftp://sunsite.unc.edu/pub/Linux/${MASTER_SITE_SUBDIR}/ \
ftp://ftp.infomagic.com/pub/mirrors/linux/sunsite/${MASTER_SITE_SUBDIR}/ \
ftp://ftp.funet.fi/pub/mirrors/sunsite.unc.edu/pub/Linux/${MASTER_SITE_SUBDIR}/
@@ -675,6 +675,8 @@ IGNORE= "does not require Motif"
IGNORE= "may not be placed on a CDROM: ${NO_CDROM}"
.elif (defined(RESTRICTED) && defined(NO_RESTRICTED))
IGNORE= "is restricted: ${RESTRICTED}"
+.elif ((defined(USE_IMAKE) || defined(USE_X11)) && !exists(${X11BASE}))
+IGNORE= "uses X11, but ${X11BASE} not found"
.elif defined(BROKEN)
IGNORE= "is marked as broken: ${BROKEN}"
.endif
@@ -1235,7 +1237,7 @@ distclean: pre-distclean clean
${RM} -f ${DISTFILES} ${PATCHFILES}; \
fi)
.if defined(DIST_SUBDIR)
- @${RMDIR} ${_DISTDIR}
+ -@${RMDIR} ${_DISTDIR}
.endif
.endif