1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/textproc/docbook-xsl/Makefile
Dag-Erling Smørgrav 86e5aef105 Use xmlcatmgr to register the catalogs correctly.
Submitted by:	Rui Lopes <rui@ruilopes.com>
PR:		ports/54042
2003-07-08 09:46:29 +00:00

57 lines
1.5 KiB
Makefile

# New ports collection makefile for: docbook-xml
# Date created: 17 January 2002
# Whom: des
#
# $FreeBSD$
#
PORTNAME= docbook-xsl
PORTVERSION= 1.61.3
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= docbook
MAINTAINER= des@freebsd.org
COMMENT= XSL DocBook stylesheets
RUN_DEPENDS= ${XMLDIR}/docbook/4.2/catalog.xml:${PORTSDIR}/textproc/docbook-xml \
${XMLDIR}/sdocbook/catalog:${PORTSDIR}/textproc/sdocbook-xml
XMLDIR= ${LOCALBASE}/share/xml
INSTDIR= share/xsl/docbook
PINSTDIR= ${PREFIX}/${INSTDIR}
COPYDIRS= common fo extensions html htmlhelp images \
javahelp lib manpages params template xhtml
PKGINSTALL= ${WRKSRC}/pkg-install
PKGDEINSTALL= ${WRKSRC}/pkg-deinstall
NO_BUILD= yes
XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
CATALOG_PORTS= ${XMLDIR}/catalog.ports
post-extract:
${FIND} ${WRKSRC} -name '.#*' -delete
do-install:
.ifndef NOPORTDOCS
${MKDIR} ${DOCSDIR}
(cd ${WRKSRC}/doc && ${TAR} -cf - . |\
${TAR} -xf - -C${DOCSDIR})
.endif
${MKDIR} ${PINSTDIR}
(cd ${WRKSRC} && ${TAR} -cf - VERSION ${COPYDIRS} |\
${TAR} -xf - -C${PINSTDIR})
post-install:
@${SED} -e 's,@INSTDIR@,${INSTDIR},g ; \
s,@XMLCATMGR@,${XMLCATMGR},g ; \
s,@CATALOG_PORTS_XML@,${CATALOG_PORTS},g' \
< ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
@${SED} -e 's,@XMLCATMGR@,${XMLCATMGR},g ; \
s,@CATALOG_PORTS_XML@,${CATALOG_PORTS},g' \
< ${FILESDIR}/pkg-deinstall.in > ${PKGDEINSTALL}
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>