2003-01-04 00:20:01 +01:00
|
|
|
# New ports collection makefile for: tei-p4
|
|
|
|
# Date created: 29 April 2002
|
|
|
|
# Whom: Henrik Motakef
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= tei
|
|
|
|
PORTVERSION= p4
|
2003-10-26 14:50:57 +01:00
|
|
|
PORTREVISION= 2
|
2003-01-04 00:20:01 +01:00
|
|
|
CATEGORIES= textproc
|
|
|
|
MASTER_SITES= http://www.tei-c.org/P4X/DTD/
|
|
|
|
DISTNAME= dtd
|
|
|
|
|
2003-10-26 14:50:57 +01:00
|
|
|
MAINTAINER= ports@henrik-motakef.de
|
2003-02-20 21:13:24 +01:00
|
|
|
COMMENT= DTD of the Text Encoding Initiative
|
2003-01-04 00:20:01 +01:00
|
|
|
|
Switch to using xmlcatmgr from mkcatalog.
# Maintainers, please let me know if I break something in your port.
Submitted by: hrs
PR: ports/53819, ports/53820, ports/53821, ports/53822,
ports/53823, ports/53824, ports/53825, ports/53826,
ports/53827, ports/53828, ports/53829, ports/53830,
ports/53831, ports/53832, ports/53833, ports/53834,
ports/53835, ports/53836, ports/53837
2003-07-01 08:21:09 +02:00
|
|
|
RUN_DEPENDS= ${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
|
2003-01-04 00:20:01 +01:00
|
|
|
|
2004-02-23 01:02:05 +01:00
|
|
|
LATEST_LINK= tei-p4
|
2003-01-04 00:20:01 +01:00
|
|
|
USE_ZIP= yes
|
|
|
|
NO_BUILD= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
Switch to using xmlcatmgr from mkcatalog.
# Maintainers, please let me know if I break something in your port.
Submitted by: hrs
PR: ports/53819, ports/53820, ports/53821, ports/53822,
ports/53823, ports/53824, ports/53825, ports/53826,
ports/53827, ports/53828, ports/53829, ports/53830,
ports/53831, ports/53832, ports/53833, ports/53834,
ports/53835, ports/53836, ports/53837
2003-07-01 08:21:09 +02:00
|
|
|
PLIST_SUB= XMLCATMGR=${XMLCATMGR} \
|
|
|
|
DTDDIR=${DTDDIR} \
|
2003-10-26 14:50:57 +01:00
|
|
|
CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML} \
|
|
|
|
CATALOG_PORTS_XML=${CATALOG_PORTS_XML}
|
2003-01-04 00:20:01 +01:00
|
|
|
|
|
|
|
DTD= dtd.zip
|
|
|
|
SGMLDIR= ${PREFIX}/share/sgml
|
|
|
|
INSTDIR= ${SGMLDIR}/${PORTNAME}/${PORTVERSION}
|
Switch to using xmlcatmgr from mkcatalog.
# Maintainers, please let me know if I break something in your port.
Submitted by: hrs
PR: ports/53819, ports/53820, ports/53821, ports/53822,
ports/53823, ports/53824, ports/53825, ports/53826,
ports/53827, ports/53828, ports/53829, ports/53830,
ports/53831, ports/53832, ports/53833, ports/53834,
ports/53835, ports/53836, ports/53837
2003-07-01 08:21:09 +02:00
|
|
|
DTDDIR= ${PORTNAME}/${PORTVERSION}
|
2003-10-26 14:50:57 +01:00
|
|
|
DTD_URL= http://www.tei-c.org/Guidelines/DTD
|
Switch to using xmlcatmgr from mkcatalog.
# Maintainers, please let me know if I break something in your port.
Submitted by: hrs
PR: ports/53819, ports/53820, ports/53821, ports/53822,
ports/53823, ports/53824, ports/53825, ports/53826,
ports/53827, ports/53828, ports/53829, ports/53830,
ports/53831, ports/53832, ports/53833, ports/53834,
ports/53835, ports/53836, ports/53837
2003-07-01 08:21:09 +02:00
|
|
|
XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
|
|
|
|
CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
|
2003-10-26 14:50:57 +01:00
|
|
|
CATALOG_PORTS_XML= ${PREFIX}/share/xml/catalog.ports
|
2003-01-04 00:20:01 +01:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@[ -d ${INSTDIR} ] || ${MKDIR} ${INSTDIR}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.dtd ${INSTDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.ent ${INSTDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.dec ${INSTDIR}
|
2003-10-26 14:50:57 +01:00
|
|
|
${SED} -e "s!${DTD_URL}!file://${INSTDIR}!" ${WRKSRC}/teicatalog.xml > ${INSTDIR}/catalog.xml
|
Switch to using xmlcatmgr from mkcatalog.
# Maintainers, please let me know if I break something in your port.
Submitted by: hrs
PR: ports/53819, ports/53820, ports/53821, ports/53822,
ports/53823, ports/53824, ports/53825, ports/53826,
ports/53827, ports/53828, ports/53829, ports/53830,
ports/53831, ports/53832, ports/53833, ports/53834,
ports/53835, ports/53836, ports/53837
2003-07-01 08:21:09 +02:00
|
|
|
${SED} -e "s!&DTDpath;!!" ${WRKSRC}/catalog.tei > ${INSTDIR}/catalog
|
2003-10-26 14:50:57 +01:00
|
|
|
${CHMOD} ${SHAREMODE} ${INSTDIR}/catalog.xml
|
|
|
|
${CHMOD} ${SHAREMODE} ${INSTDIR}/catalog
|
2003-01-04 00:20:01 +01:00
|
|
|
|
|
|
|
post-install:
|
2003-10-26 14:50:57 +01:00
|
|
|
${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} add CATALOG ${INSTDIR}/catalog
|
|
|
|
${XMLCATMGR} -c ${CATALOG_PORTS_XML} add nextCatalog ${INSTDIR}/catalog.xml
|
2003-01-04 00:20:01 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|