1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/textproc/docbook-xsl/Makefile
2008-07-15 08:07:57 +00:00

68 lines
1.8 KiB
Makefile

# New ports collection makefile for: docbook-xml
# Date created: 17 January 2002
# Whom: des
#
# $FreeBSD$
#
PORTNAME= docbook-xsl
PORTVERSION= 1.74.0
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= docbook
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= skv@FreeBSD.org
COMMENT= XSL DocBook stylesheets
RUN_DEPENDS= ${XMLDIR}/docbook/4.2/catalog.xml:${PORTSDIR}/textproc/docbook-xml \
${XMLDIR}/sdocbook/1.1/catalog:${PORTSDIR}/textproc/sdocbook-xml
.ifndef NOPORTDOCS
DISTFILES+= ${PORTNAME}-doc-${PORTVERSION}${EXTRACT_SUFX}
.endif
USE_BZIP2= yes
NO_BUILD= yes
XMLDIR= ${LOCALBASE}/share/xml
INSTDIR= share/xsl/docbook
PINSTDIR= ${PREFIX}/${INSTDIR}
COPYDIRS= common extensions fo highlighting html htmlhelp images \
javahelp lib manpages params profiling slides \
template tools xhtml
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
CATALOG_PORTS= ${XMLDIR}/catalog.ports
post-extract:
${FIND} ${WRKSRC} -name '.#*' -or -name '.gitignore' -delete
${FIND} ${WRKSRC}/extensions -type d -mindepth 1 -maxdepth 1 -print0 |\
${XARGS} -0 ${RM} -rf
post-configure:
@${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}
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:
@${SETENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>