2010-11-20 14:56:47 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2010/11/20 19:56:48 espie Exp $
|
2005-07-16 09:26:57 -04:00
|
|
|
|
2007-09-15 16:59:36 -04:00
|
|
|
COMMENT= docbook XSL modular stylesheet
|
2005-07-16 09:26:57 -04:00
|
|
|
|
|
|
|
DISTNAME= docbook-xsl-1.68.1
|
2010-11-20 14:56:47 -05:00
|
|
|
REVISION = 2
|
2005-07-16 09:26:57 -04:00
|
|
|
CATEGORIES= textproc
|
|
|
|
|
|
|
|
HOMEPAGE= http://docbook.sourceforge.net/projects/xsl/
|
|
|
|
|
|
|
|
# MIT/X Consortium License
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=docbook/}
|
|
|
|
|
2010-11-20 14:56:47 -05:00
|
|
|
BUILD_DEPENDS= textproc/libxml>=2.6.16p6
|
|
|
|
RUN_DEPENDS= textproc/libxml>=2.6.16p6
|
2005-07-16 09:26:57 -04:00
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
PKG_ARCH= *
|
|
|
|
|
|
|
|
DIR= share/xsl/docbook
|
|
|
|
INSTDIR= ${PREFIX}/${DIR}
|
|
|
|
CATALOG_DIR= ${LOCALBASE}/${DIR}
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/xsl/docbook
|
|
|
|
COPYDIRS= common fo extensions html htmlhelp images \
|
|
|
|
javahelp lib manpages params template xhtml
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ./INSTALL
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${INSTDIR} ${DOCSDIR}
|
|
|
|
(cd ${WRKSRC}/doc && ${TAR} -cf - . | ${TAR} -xf - -C${DOCSDIR})
|
|
|
|
(cd ${WRKSRC} && \
|
|
|
|
${TAR} -cf - VERSION ${COPYDIRS} | ${TAR} -xf - -C${INSTDIR})
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/catalog.xml ${INSTDIR}/catalog.xml
|
2005-09-04 19:38:17 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/libxml2
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/docbook-xsl.spec ${PREFIX}/share/libxml2
|
2005-07-16 09:26:57 -04:00
|
|
|
|
|
|
|
post-install:
|
2007-08-08 09:47:38 -04:00
|
|
|
@perl -pi -e 's#rewritePrefix=\".*?\"#rewritePrefix="${CATALOG_DIR}/"#g' ${INSTDIR}/catalog.xml
|
2005-07-16 09:26:57 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|