2002-02-24 14:02:55 +01:00
|
|
|
# New ports collection makefile for: docbook-xml
|
|
|
|
# Date created: 17 January 2002
|
|
|
|
# Whom: des
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= docbook-xsl
|
2006-06-23 11:10:47 +02:00
|
|
|
PORTVERSION= 1.70.1
|
2002-02-24 14:02:55 +01:00
|
|
|
CATEGORIES= textproc
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2003-11-12 15:25:32 +01:00
|
|
|
MASTER_SITE_SUBDIR= docbook
|
2005-09-26 09:23:06 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
2002-02-24 14:02:55 +01:00
|
|
|
|
2004-03-03 17:38:02 +01:00
|
|
|
MAINTAINER= des@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= XSL DocBook stylesheets
|
2002-02-24 14:02:55 +01:00
|
|
|
|
2003-07-08 11:46:29 +02:00
|
|
|
RUN_DEPENDS= ${XMLDIR}/docbook/4.2/catalog.xml:${PORTSDIR}/textproc/docbook-xml \
|
2004-02-13 11:33:12 +01:00
|
|
|
${XMLDIR}/sdocbook/4.1.2.5/catalog:${PORTSDIR}/textproc/sdocbook-xml
|
2002-02-24 14:02:55 +01:00
|
|
|
|
2005-09-26 09:23:06 +02:00
|
|
|
.ifndef NOPORTDOCS
|
|
|
|
DISTFILES+= ${PORTNAME}-doc-${PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
.endif
|
|
|
|
|
2005-02-13 16:24:52 +01:00
|
|
|
USE_BZIP2= yes
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2002-02-24 14:02:55 +01:00
|
|
|
XMLDIR= ${LOCALBASE}/share/xml
|
2003-07-08 11:46:29 +02:00
|
|
|
INSTDIR= share/xsl/docbook
|
|
|
|
PINSTDIR= ${PREFIX}/${INSTDIR}
|
2002-10-30 16:13:06 +01:00
|
|
|
COPYDIRS= common fo extensions html htmlhelp images \
|
2006-02-22 18:53:46 +01:00
|
|
|
javahelp lib manpages params profiling template xhtml
|
2003-12-16 00:06:12 +01:00
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
|
2002-02-24 14:02:55 +01:00
|
|
|
|
2003-07-08 11:46:29 +02:00
|
|
|
XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
|
|
|
|
CATALOG_PORTS= ${XMLDIR}/catalog.ports
|
2002-02-24 14:02:55 +01:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${FIND} ${WRKSRC} -name '.#*' -delete
|
|
|
|
|
2003-12-16 00:06:12 +01:00
|
|
|
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}
|
2002-02-24 14:02:55 +01:00
|
|
|
do-install:
|
|
|
|
.ifndef NOPORTDOCS
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
(cd ${WRKSRC}/doc && ${TAR} -cf - . |\
|
|
|
|
${TAR} -xf - -C${DOCSDIR})
|
|
|
|
.endif
|
2003-07-08 11:46:29 +02:00
|
|
|
${MKDIR} ${PINSTDIR}
|
2002-10-08 10:44:38 +02:00
|
|
|
(cd ${WRKSRC} && ${TAR} -cf - VERSION ${COPYDIRS} |\
|
2003-07-08 11:46:29 +02:00
|
|
|
${TAR} -xf - -C${PINSTDIR})
|
|
|
|
|
|
|
|
post-install:
|
2006-07-06 19:28:16 +02:00
|
|
|
${RMDIR} ${PREFIX}/share/xsl/docbook/extensions/build
|
|
|
|
${RMDIR} ${PREFIX}/share/xsl/docbook/extensions/build2
|
2003-12-17 00:44:53 +01:00
|
|
|
@${SETENV} PKG_PREFIX=${PREFIX} \
|
2003-12-16 00:06:12 +01:00
|
|
|
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2002-02-24 14:02:55 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|