2006-11-03 20:14:25 +01:00
|
|
|
# $NetBSD: Makefile,v 1.32 2006/11/03 19:17:39 joerg Exp $
|
2001-11-04 23:46:58 +01:00
|
|
|
#
|
|
|
|
|
2005-09-30 17:24:20 +02:00
|
|
|
DISTNAME= docbook-xml-4.4
|
2006-04-01 16:43:42 +02:00
|
|
|
PKGREVISION= 4
|
2001-11-04 23:46:58 +01:00
|
|
|
CATEGORIES= textproc
|
2005-09-30 17:24:20 +02:00
|
|
|
MASTER_SITES= http://www.oasis-open.org/docbook/xml/4.4/
|
2006-07-27 20:48:02 +02:00
|
|
|
SITES.docbook-xml-4.3.zip= http://www.oasis-open.org/docbook/xml/4.3/
|
|
|
|
SITES.docbook-xml-4.2.zip= http://www.oasis-open.org/docbook/xml/4.2/
|
2005-09-30 17:24:20 +02:00
|
|
|
DISTFILES= docbook-xml-4.2.zip docbook-xml-4.3.zip docbook-xml-4.4.zip
|
2001-11-04 23:46:58 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2005-09-30 17:24:20 +02:00
|
|
|
HOMEPAGE= http://www.oasis-open.org/docbook/
|
2001-11-04 23:46:58 +01:00
|
|
|
COMMENT= XML DTD designed for computer documentation
|
|
|
|
|
2004-06-05 01:46:08 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2006-11-03 20:14:25 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2004-06-05 01:46:08 +02:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2004-02-25 12:48:15 +01:00
|
|
|
USE_LANGUAGES= # empty
|
2006-06-04 16:04:33 +02:00
|
|
|
USE_TOOLS+= unzip
|
2003-01-18 10:39:27 +01:00
|
|
|
NO_BUILD= YES
|
2005-09-30 17:24:20 +02:00
|
|
|
EXTRACT_ONLY= # empty
|
2001-11-04 23:46:58 +01:00
|
|
|
|
2006-10-06 17:12:58 +02:00
|
|
|
INSTDIR= ${PREFIX}/share/xml
|
2001-11-04 23:46:58 +01:00
|
|
|
DTDDIR= ${INSTDIR}/docbook
|
|
|
|
|
2005-09-30 17:24:20 +02:00
|
|
|
VER= 4.2 4.3 4.4
|
|
|
|
|
|
|
|
XML_CATALOGS=
|
2006-04-18 16:11:29 +02:00
|
|
|
XML_ENTRIES=
|
2005-09-30 17:24:20 +02:00
|
|
|
.for ver in ${VER}
|
|
|
|
XML_CATALOGS+= ${DTDDIR}/${ver}/catalog
|
2006-04-18 16:11:29 +02:00
|
|
|
XML_ENTRIES+= rewriteSystem http://www.oasis-open.org/docbook/xml/${ver} \
|
|
|
|
${DTDDIR}/${ver}
|
2005-09-30 17:24:20 +02:00
|
|
|
.endfor
|
|
|
|
|
2006-04-18 16:11:29 +02:00
|
|
|
# 4.2 is backwards-compatible with 4.1.2, so we just make 4.1.2 be an alias
|
|
|
|
# for 4.2.
|
|
|
|
XML_CATALOGS+= ${DTDDIR}/4.2/catalog-4.1.2
|
2006-04-01 16:43:42 +02:00
|
|
|
XML_ENTRIES+= rewriteSystem http://www.oasis-open.org/docbook/xml/4.1.2 \
|
|
|
|
${DTDDIR}/4.2
|
2006-04-18 16:11:29 +02:00
|
|
|
|
|
|
|
# share/xml/docbook is shared with docbook-simple.
|
|
|
|
PRINT_PLIST_AWK+= /^@dirrm share\/xml\/docbook$$/ \
|
|
|
|
{ print "@unexec $${RMDIR} %D/share/xml/docbook" \
|
|
|
|
" >/dev/null 2>&1"; next }
|
2006-04-01 16:43:42 +02:00
|
|
|
|
2005-09-30 17:24:20 +02:00
|
|
|
pre-install:
|
|
|
|
.for ver in ${VER}
|
2006-11-03 20:14:25 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${DTDDIR}/${ver}
|
2005-09-30 17:24:20 +02:00
|
|
|
.endfor
|
2003-01-29 22:17:26 +01:00
|
|
|
|
2001-11-04 23:46:58 +01:00
|
|
|
do-install:
|
2005-09-30 17:24:20 +02:00
|
|
|
.for ver in ${VER}
|
2006-11-03 20:14:25 +01:00
|
|
|
cd ${DESTDIR}${DTDDIR}/${ver} && ${UNZIP_CMD} ${DISTDIR}/docbook-xml-${ver}.zip
|
|
|
|
cd ${DESTDIR}${DTDDIR}/${ver} && ${MV} catalog.xml catalog
|
2005-09-30 17:24:20 +02:00
|
|
|
.endfor
|
2006-11-03 20:14:25 +01:00
|
|
|
${SED} -e 's|V4.2|V4.1.2|g' <${DESTDIR}${DTDDIR}/4.2/catalog \
|
|
|
|
>${DESTDIR}${DTDDIR}/4.2/catalog-4.1.2
|
2001-11-04 23:46:58 +01:00
|
|
|
|
2003-01-29 22:17:26 +01:00
|
|
|
.include "../../textproc/xmlcatmgr/catalogs.mk"
|
2001-11-04 23:46:58 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|