freebsd-ports/textproc/sdocbook-xml/Makefile
Jun Kuriyama 7464f336e3 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 06:21:09 +00:00

56 lines
1.6 KiB
Makefile

# New ports collection makefile for: "Simplified" DocBook XML DTD
# Date created: 25 December 2000
# Whom: KIRIYAMA Kazuhiko <kiri@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= sdocbook-xml
PORTVERSION= 4.1.2.5
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://www.oasis-open.org/docbook/xml/simple/4.1.2.5/
DISTNAME= simple${PORTVERSION:S/.//g}
MAINTAINER= des@FreeBSD.org
COMMENT= "Simplified" DocBook XML DTD
RUN_DEPENDS= ${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
USE_ZIP= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}
PLIST_SUB= XMLCATMGR=${XMLCATMGR}\
CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML}\
CATALOG_PORTS_XML=${CATALOG_PORTS_XML}\
XMLDIR=${SDOCBOOKDIR}
SDOCBOOKDIR= ${PREFIX}/share/xml/sdocbook
XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
CATALOG_PORTS_XML= ${PREFIX}/share/xml/catalog.ports
FILES= sdbcent.mod sdbhier.mod sdbpool.mod sdocbook-custom.dtd \
sdocbook.css sdocbook.dtd sdocbookref-custom.dtd \
sdocbookref.dtd sinclist.mod
do-extract:
${MKDIR} ${WRKDIR}; \
(cd ${WRKDIR} && unzip -oq ${DISTDIR}/${DISTFILES})
post-patch:
${SED} -e 's#@@DTDDIR@@#${SDOCBOOKDIR}#' < ${FILESDIR}/catalog.xml > ${WRKSRC}/catalog.xml
do-install:
${MKDIR} ${SDOCBOOKDIR}
.for i in ${FILES}
$(INSTALL_DATA) $(WRKDIR)/${i} $(SDOCBOOKDIR)
.endfor
${INSTALL_DATA} ${FILESDIR}/catalog ${SDOCBOOKDIR}
${INSTALL_DATA} ${WRKDIR}/catalog.xml ${SDOCBOOKDIR}
post-install:
${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} add CATALOG ${SDOCBOOKDIR}/catalog
${XMLCATMGR} -c ${CATALOG_PORTS_XML} add nextCatalog ${SDOCBOOKDIR}/catalog.xml
.include <bsd.port.mk>