1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/textproc/docbook-400/Makefile
Jason Helfman aac1386994 - fix pkgname collisions
Submitted by:	jgh@
Approved by:	gabor@ (maintainer)
2014-01-05 17:21:23 +00:00

52 lines
1.3 KiB
Makefile

# Created by: asmodai
# $FreeBSD$
PORTNAME= docbook
PORTVERSION= 4.0
PORTREVISION= 3
CATEGORIES= textproc
MASTER_SITES= http://www.oasis-open.org/docbook/sgml/4.0/
DISTNAME= docbk40
MAINTAINER= gabor@FreeBSD.org
COMMENT= V4.0 of the DocBook DTD, designed for technical documentation
RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879 \
${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
USE_ZIP= yes
NO_MTREE= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
DTDDIR= share/sgml/docbook/4.0/dtd
PLIST_SUB+= SGMLCAT_ADD="${SGMLCAT_ADD}" \
SGMLCAT_RM="${SGMLCAT_RM}"
XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
SGMLCAT= ${PREFIX}/share/sgml/catalog.ports
XMLCAT= ${PREFIX}/share/xml/catalog.ports
ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog
SGMLCAT_ADD= ${XMLCATMGR} -sc ${SGMLCAT} add CATALOG \
${PREFIX}/${DTDDIR}/catalog
SGMLCAT_RM= ${XMLCATMGR} -sc ${SGMLCAT} remove \
${PREFIX}/${DTDDIR}/catalog
PKGNAMESUFFIX= ${PKGORIGIN:T:S/docbook-//}
NO_STAGE= yes
do-install:
@${MKDIR} ${PREFIX}/${DTDDIR}
files=$$(${FIND} ${WRKSRC} -type f \! -name '.*'); \
for i in $${files}; do \
${INSTALL_DATA} $${i} ${PREFIX}/${DTDDIR}; \
done
${INSTALL_DATA} ${FILESDIR}/catalog ${PREFIX}/${DTDDIR}
@${ECHO} "CATALOG \"${ISOCAT}\"" >> ${PREFIX}/${DTDDIR}/catalog
post-install:
-${SGMLCAT_ADD}
.include <bsd.port.mk>