mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
# Created by: kuriyama
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= docbook-xml
|
|
PORTVERSION= 4.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://www.docbook.org/xml/${PORTVERSION}/ \
|
|
http://www.oasis-open.org/committees/docbook/xml/${PORTVERSION}/
|
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
|
COMMENT= XML version of the DocBook DTD
|
|
|
|
RUN_DEPENDS= ${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
|
|
|
|
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
|
|
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}
|
|
|
|
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
|
|
|
|
NO_STAGE= yes
|
|
pre-su-install:
|
|
@[ -d ${DOCBOOKDIR}/ent ] || ${MKDIR} ${DOCBOOKDIR}/ent
|
|
|
|
do-install:
|
|
for file in `${UNZIP_CMD} -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
|
|
|
|
.include <bsd.port.mk>
|