freebsd-ports/textproc/docbook-310/Makefile
Gabor Kovesdan 1e8802bf63 - Properly install the catalog file
- Bump PORTREVISION
2008-08-14 18:29:04 +00:00

58 lines
1.4 KiB
Makefile

# New ports collection makefile for: docbook-310
# Date created: 7 April 1999
# Whom: nik
#
# Based heavily on work by jfieber
#
# $FreeBSD$
#
PORTNAME= docbook
PORTVERSION= 3.1
PORTREVISION= 4
CATEGORIES= textproc
MASTER_SITES= http://www.docbook.org/sgml/3.1/
DISTNAME= docbk31
MAINTAINER= gabor@FreeBSD.org
COMMENT= V3.1 of the DocBook DTD, designed for technical documentation
RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879 \
${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
USE_ZIP= yes
NO_MTREE= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
DTDDIR= share/sgml/docbook/3.1/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
LATEST_LINK= docbook-310
do-install:
@${MKDIR} ${PREFIX}/${DTDDIR}
files=$$(${FIND} ${WRKSRC} -type f | ${GREP} -v "${WRKSRC}/\."); \
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>