2005-12-04 12:50:51 +01:00
|
|
|
# $FreeBSD: www/es/ports/Makefile,v 1.12 2004/11/13 12:23:19 ceri Exp $
|
1999-02-08 20:26:12 +01:00
|
|
|
|
|
|
|
.if exists(../Makefile.conf)
|
|
|
|
.include "../Makefile.conf"
|
|
|
|
.endif
|
2000-11-30 00:57:09 +01:00
|
|
|
.if exists(../Makefile.inc)
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
.endif
|
1999-11-15 21:37:56 +01:00
|
|
|
.if exists(Makefile.inc)
|
|
|
|
.include "Makefile.inc"
|
1999-02-08 20:26:12 +01:00
|
|
|
.endif
|
|
|
|
|
2004-11-13 13:23:19 +01:00
|
|
|
FETCH_OPT?= -am
|
|
|
|
|
1999-04-24 18:37:00 +02:00
|
|
|
.if defined(NOPORTSCVS)
|
|
|
|
${INDEX}: $${PORTSBASE}/${PINDEX}
|
|
|
|
cp ${PORTSBASE}/${PINDEX} ${INDEX}
|
|
|
|
.else
|
2001-12-06 13:28:23 +01:00
|
|
|
${INDEX}:
|
2005-12-04 12:50:51 +01:00
|
|
|
${FETCH} ${FETCH_OPT} -o ${INDEX}.bz2 ${INDEXURI}.bz2
|
|
|
|
${BUNZIP2} ${INDEX}.bz2
|
1999-04-24 18:37:00 +02:00
|
|
|
.endif
|
|
|
|
|
1999-02-08 20:26:12 +01:00
|
|
|
# build the list of available packages only on the
|
|
|
|
# main FreeBSD machines
|
|
|
|
hostname!= hostname
|
|
|
|
|
1999-04-24 18:37:00 +02:00
|
|
|
packages.exists:
|
1999-02-08 20:26:12 +01:00
|
|
|
.if ${hostname} == "hub.freebsd.org" || ${hostname} == "freefall.freebsd.org"
|
1999-05-27 11:04:12 +02:00
|
|
|
.if exists(${.CURDIR}/../../en/ports/packages.exists)
|
|
|
|
cp ${.CURDIR}/../../en/ports/${.TARGET} .
|
|
|
|
.else
|
1999-02-08 20:26:12 +01:00
|
|
|
sh ${.CURDIR}/packages > ${.TARGET}
|
1999-05-27 11:04:12 +02:00
|
|
|
.endif
|
1999-02-08 20:26:12 +01:00
|
|
|
.else
|
|
|
|
touch ${.TARGET}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
Makefile.gen: index.sgml .NOTMAIN
|
|
|
|
echo DOCS= *.sgml > Makefile.gen
|
|
|
|
|
2001-01-02 02:49:05 +01:00
|
|
|
index.sgml: ${INDEX} packages.exists portindex ports.inc .NOTMAIN
|
1999-02-08 20:26:12 +01:00
|
|
|
rm -f *.sgml
|
2001-01-02 02:49:05 +01:00
|
|
|
${PORTINDEX} ${INDEX} ${.CURDIR}
|
1999-02-08 20:26:12 +01:00
|
|
|
|
1999-11-15 21:37:56 +01:00
|
|
|
install: all
|
|
|
|
|
|
|
|
all install clean:
|
2001-12-12 12:57:44 +01:00
|
|
|
(cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} -f ${.CURDIR}/Makefile.inc0 ${.TARGET})
|
1999-11-15 21:37:56 +01:00
|
|
|
|
2000-11-30 00:57:09 +01:00
|
|
|
.include "${WEB_PREFIX}/share/mk/web.site.mk"
|