2006-08-19 23:22:38 +02:00
|
|
|
# $FreeBSD: www/es/ports/Makefile,v 1.14 2006/07/16 11:22:04 simon 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
|
|
|
|
|
2006-07-16 13:22:05 +02:00
|
|
|
.if defined(PINDEX_OVERRIDE)
|
|
|
|
${INDEX}: ${PINDEX_OVERRIDE}
|
|
|
|
${CP} ${PINDEX_OVERRIDE} ${INDEX}
|
|
|
|
.elif defined(NOPORTSNET)
|
1999-04-24 18:37:00 +02:00
|
|
|
${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
|
2006-08-19 23:22:38 +02:00
|
|
|
( ${ECHO_CMD} TIDY=${PERL};\
|
|
|
|
${ECHO_CMD} TIDYOPTS="-i'' -npe 's,\"-//FreeBSD//DTD HTML 4.01 Transitional-Based Extension//EN\",\"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\",'";\
|
|
|
|
${ECHO_CMD} DOCS= *.sgml;\
|
|
|
|
) > Makefile.gen
|
2006-07-16 13:22:05 +02:00
|
|
|
.if defined(NO_TIDY)
|
|
|
|
${ECHO_CMD} NO_TIDY=${NO_TIDY} >> Makefile.gen
|
|
|
|
.endif
|
1999-02-08 20:26:12 +01:00
|
|
|
|
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"
|