de3f531874
- Move includes.nav*.sgml to share/sgml/navibar.ent and <lang>/share/sgml/navibar.l10n.ent. - Move includes.sgml and includes.xsl to share/sgml/common.ent, share/sgml/header.ent, <lang>/share/sgml/l10n.ent, and <lang>?share/sgml/header.l10n.ent. - Move most of XSLT libraries to share/sgml/*.xsl and <lang>/share/sgml/*.xsl. - Move news.xml and other *.xml files for the similar purpose to share/sgml/*.xml and <lang>/share/sgml/*.xml. - Switch to use a custom DTD for HTML document. Now we use "-//FreeBSD//DTD HTML 4.01 Transitional-Based Extension", which is HTML 4.01 + some entities previously pulled via "<!ENTITY % includes SYSTEM "includes.sgml"> %includes;" line. The location of entity file will be resolved by using catalog file. - Add DOCTYPE declearation to XML documents. This makes the followings possible: * Use of &foo; entities for SGML in an XML file instead of defining {$foo} as the same content. * &symbolic; entities for Latin characters. - Duplicated information between SGML and XML, or English and translated doc, has been removed as much as possible.
60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
# $FreeBSD: www/es/ports/Makefile,v 1.14 2006/07/16 11:22:04 simon 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
|
|
|
|
FETCH_OPT?= -am
|
|
|
|
.if defined(PINDEX_OVERRIDE)
|
|
${INDEX}: ${PINDEX_OVERRIDE}
|
|
${CP} ${PINDEX_OVERRIDE} ${INDEX}
|
|
.elif defined(NOPORTSNET)
|
|
${INDEX}: $${PORTSBASE}/${PINDEX}
|
|
cp ${PORTSBASE}/${PINDEX} ${INDEX}
|
|
.else
|
|
${INDEX}:
|
|
${FETCH} ${FETCH_OPT} -o ${INDEX}.bz2 ${INDEXURI}.bz2
|
|
${BUNZIP2} ${INDEX}.bz2
|
|
.endif
|
|
|
|
# build the list of available packages only on the
|
|
# main FreeBSD machines
|
|
hostname!= hostname
|
|
|
|
packages.exists:
|
|
.if ${hostname} == "hub.freebsd.org" || ${hostname} == "freefall.freebsd.org"
|
|
.if exists(${.CURDIR}/../../en/ports/packages.exists)
|
|
cp ${.CURDIR}/../../en/ports/${.TARGET} .
|
|
.else
|
|
sh ${.CURDIR}/packages > ${.TARGET}
|
|
.endif
|
|
.else
|
|
touch ${.TARGET}
|
|
.endif
|
|
|
|
Makefile.gen: index.sgml .NOTMAIN
|
|
( ${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
|
|
.if defined(NO_TIDY)
|
|
${ECHO_CMD} NO_TIDY=${NO_TIDY} >> Makefile.gen
|
|
.endif
|
|
|
|
index.sgml: ${INDEX} packages.exists portindex ports.inc .NOTMAIN
|
|
rm -f *.sgml
|
|
${PORTINDEX} ${INDEX} ${.CURDIR}
|
|
|
|
install: all
|
|
|
|
all install clean:
|
|
(cd ${.CURDIR} && ${MAKE} ${MAKEFLAGS} -f ${.CURDIR}/Makefile.inc0 ${.TARGET})
|
|
|
|
.include "${WEB_PREFIX}/share/mk/web.site.mk"
|