freebsd-ports/textproc/docbook-xml/Makefile

48 lines
1.4 KiB
Makefile
Raw Normal View History

1999-03-28 16:18:35 +02:00
# New ports collection makefile for: DocBook XML DTD
# Date created: 28 March 1999
# Whom: kuriyama
#
1999-08-31 04:11:56 +02:00
# $FreeBSD$
1999-03-28 16:18:35 +02:00
#
2002-10-09 04:47:03 +02:00
PORTNAME= docbook-xml
PORTVERSION= 4.2
PORTREVISION= 1
1999-03-28 16:18:35 +02:00
CATEGORIES= textproc
MASTER_SITES= http://www.docbook.org/xml/${PORTVERSION}/ \
http://www.oasis-open.org/committees/docbook/xml/${PORTVERSION}/
1999-03-28 16:18:35 +02:00
MAINTAINER= kuriyama@FreeBSD.org
2003-02-22 08:48:51 +01:00
COMMENT= XML version of the DocBook DTD
1999-03-28 16:18:35 +02:00
RUN_DEPENDS= ${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
2004-04-19 11:13:37 +02:00
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
1999-12-04 03:08:55 +01:00
USE_ZIP= YES
NO_BUILD= YES
NO_WRKSUBDIR= YES
PLIST_SUB= DTD_VERSION=${PORTVERSION} \
XMLCATMGR=${XMLCATMGR}\
DOCBOOKDIR=${DOCBOOKDIR}\
CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML} \
CATALOG_PORTS_XML=${CATALOG_PORTS_XML}
1999-03-28 16:18:35 +02:00
2002-10-09 04:47:03 +02:00
DOCBOOKDIR= ${PREFIX}/share/xml/${PORTNAME:S/-xml//}/${PORTVERSION}
XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports
CATALOG_PORTS_XML= ${PREFIX}/share/xml/catalog.ports
1999-03-28 16:18:35 +02:00
pre-su-install:
@[ -d ${DOCBOOKDIR}/ent ] || ${MKDIR} ${DOCBOOKDIR}/ent
1999-03-28 16:18:35 +02:00
do-install:
for file in `unzip -l ${DISTDIR}/${DISTFILES}|${AWK} '/:[0-9].*[^\/]$$/{print $$4}'`; do \
${INSTALL_DATA} ${WRKSRC}/$$file ${DOCBOOKDIR}/$$file; \
done
post-install:
@-${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} add CATALOG ${DOCBOOKDIR}/docbook.cat
@-${XMLCATMGR} -c ${CATALOG_PORTS_XML} add nextCatalog ${DOCBOOKDIR}/catalog.xml
1999-03-28 16:18:35 +02:00
.include <bsd.port.mk>