diff --git a/en/ports/Makefile b/en/ports/Makefile index 3657b9c4a0..4930b80311 100644 --- a/en/ports/Makefile +++ b/en/ports/Makefile @@ -1,67 +1,80 @@ -# $FreeBSD: www/en/ports/Makefile,v 1.30 2000/11/07 04:05:21 kuriyama Exp $ +# $FreeBSD: www/en/ports/Makefile,v 1.31 2001/01/01 12:33:23 kuriyama Exp $ .if exists(../Makefile.conf) .include "../Makefile.conf" .endif .if exists(../Makefile.inc) .include "../Makefile.inc" .endif .if exists(Makefile.inc) .include "Makefile.inc" .endif CVS_READONLY?= YES CVS_OPT+= -Q .if !empty(CVS_READONLY) CVS_OPT+= -R .endif # # This hack is allows to build www/ tree for case when ports/ located # in other repository, for example Repository of Translation Project # .if defined(PORTSCVSROOT) && !empty(PORTSCVSROOT) CVS_OPT+= -d ${PORTSCVSROOT} .endif .if defined(NOPORTSCVS) ${INDEX}: $${PORTSBASE}/${PINDEX} cp ${PORTSBASE}/${PINDEX} ${INDEX} .else ${INDEX}: ${cvsindex} cvs ${CVS_OPT} co -p ${PINDEX} > ${INDEX} .endif # build the list of available packages only on the # main FreeBSD machines hostname!= hostname + +# +# don't build the packages links if NO_PACKAGES_LINK +# is set and not empty. +# +# XXX: you can set NO_PACKAGES_LINK to your hostname to +# test the packages link generation +# +.if defined(NO_PACKAGES_LINK) && !empty(NO_PACKAGES_LINK) +hostname= ${NO_PACKAGES_LINK} +.endif + + .if defined(NOPORTSCVS) packages.exists: .else packages.exists: ${cvsindex} .endif .if ${hostname} == "hub.freebsd.org" || ${hostname} == "freefall.freebsd.org" @if sh ${.CURDIR}/packages > ${.TARGET}.temp; then \ mv ${.TARGET}.temp ${.TARGET}; \ else \ rm ${.TARGET}.temp; touch ${.TARGET}; \ fi; .else touch ${.TARGET} .endif Makefile.gen: index.sgml .NOTMAIN echo DOCS= *.sgml > Makefile.gen index.sgml: ${INDEX} categories packages.exists portindex ports.inc .NOTMAIN rm -f *.sgml ${PORTINDEX} ${INDEX} ${.CURDIR} install: all all install clean: (cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} -f Makefile.inc0 ${.TARGET}) .include "${WEB_PREFIX}/share/mk/web.site.mk"