2003-06-17 12:20:04 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.18 2003/06/17 16:20:04 marcm Exp $
|
2000-10-08 19:51:45 -04:00
|
|
|
|
2001-03-31 05:20:44 -05:00
|
|
|
COMMENT= "technical documentation XML/SGML definitions"
|
|
|
|
|
2003-05-27 20:10:56 -04:00
|
|
|
DISTNAME= docbook-4.2
|
2003-06-17 12:20:04 -04:00
|
|
|
PKGNAME= ${DISTNAME}p1
|
2001-03-31 05:20:44 -05:00
|
|
|
DIST_SUBDIR= docbook
|
1998-05-17 00:55:04 -04:00
|
|
|
CATEGORIES= textproc
|
2000-10-08 19:51:45 -04:00
|
|
|
|
2001-03-31 05:20:44 -05:00
|
|
|
ROOT_SITE= http://www.oasis-open.org/docbook/
|
|
|
|
MIRROR_SITE= http://www.docbook.org/
|
2000-11-10 08:47:34 -05:00
|
|
|
HOMEPAGE= http://www.oasis-open.org/docbook/
|
2000-10-24 09:32:20 -04:00
|
|
|
|
2001-03-31 05:20:44 -05:00
|
|
|
MASTER_SITES0= ${ROOT_SITE}/sgml/2.4.1/
|
|
|
|
MASTER_SITES1= ${ROOT_SITE}/sgml/3.0/
|
|
|
|
MASTER_SITES2= ${ROOT_SITE}/sgml/3.1/ ${MIRROR_SITE}/sgml/3.1/
|
|
|
|
MASTER_SITES3= ${ROOT_SITE}/sgml/4.0/ ${MIRROR_SITE}/sgml/4.0/
|
|
|
|
MASTER_SITES4= ${ROOT_SITE}/sgml/4.1/ ${MIRROR_SITE}/sgml/4.1/
|
|
|
|
MASTER_SITES5= ${ROOT_SITE}/xml/4.1/ ${MIRROR_SITE}/xml/4.1/
|
|
|
|
MASTER_SITES6= ${ROOT_SITE}/xml/4.1.2/ ${MIRROR_SITE}/xml/4.1.2/
|
2003-05-27 20:10:56 -04:00
|
|
|
MASTER_SITES7= ${ROOT_SITE}/xml/4.2/ ${MIRROR_SITE}/xml/4.2/
|
|
|
|
MASTER_SITES8= http://www.docbook.org/tdg/
|
2000-10-24 09:32:20 -04:00
|
|
|
|
2003-05-27 20:10:56 -04:00
|
|
|
DISTFILES= docbk241.zip:0 docbk30.zip:1 docbk31.zip:2 docbk40.zip:3 docbk41.zip:4 docbkx41.zip:5 docbkx412.zip:6 docbook-xml-4.2.zip:7 examples.zip:8
|
1998-05-17 00:55:04 -04:00
|
|
|
|
2000-10-08 19:51:45 -04:00
|
|
|
MAINTAINER= Anil Madhavapeddy <avsm@openbsd.org>
|
1998-05-17 00:55:04 -04:00
|
|
|
|
2000-10-08 19:51:45 -04:00
|
|
|
# permission granted in dtd copyright notice
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2000-03-23 01:10:42 -05:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2000-10-08 19:51:45 -04:00
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
2000-03-23 01:10:42 -05:00
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2000-03-05 13:30:21 -05:00
|
|
|
NO_BUILD= Yes
|
2002-10-28 17:43:46 -05:00
|
|
|
NO_REGRESS= Yes
|
2000-10-08 19:51:45 -04:00
|
|
|
SEPARATE_BUILD= concurrent
|
1998-05-17 00:55:04 -04:00
|
|
|
|
2001-03-31 05:20:44 -05:00
|
|
|
SGML_VERSIONS= 2.4.1 3.0 3.1 4.0 4.1
|
2003-05-27 20:10:56 -04:00
|
|
|
XML_VERSIONS= 4.1 4.1.2 4.2
|
2001-03-31 05:20:44 -05:00
|
|
|
|
|
|
|
SGML_INSTDIR= ${PREFIX}/share/sgml/docbook
|
|
|
|
XML_INSTDIR= ${PREFIX}/share/xml/docbook
|
|
|
|
|
2003-06-17 12:20:04 -04:00
|
|
|
BUILD_DEPENDS= :libxml->=2.5.7:textproc/libxml
|
2001-11-13 17:13:22 -05:00
|
|
|
RUN_DEPENDS= ::textproc/iso8879 \
|
2003-06-17 12:20:04 -04:00
|
|
|
:docbook-dsssl-*:textproc/docbook-dsssl \
|
|
|
|
:libxml->=2.5.7:textproc/libxml
|
1998-05-17 00:55:04 -04:00
|
|
|
|
2001-03-31 05:20:44 -05:00
|
|
|
.for i in ${SGML_VERSIONS} ${XML_VERSIONS:C/(.+)/x\1/g}
|
|
|
|
EXTRACT_CASES+= *docbk${i:S/.//g}.zip) unzip -qa ${FULLDISTDIR}/$$archive -d ${WRKDIR}/$i;;
|
2000-10-08 19:51:45 -04:00
|
|
|
.endfor
|
1998-05-17 00:55:04 -04:00
|
|
|
|
2003-05-27 20:10:56 -04:00
|
|
|
# new naming system for recent docbook versions
|
|
|
|
EXTRACT_CASES+= *docbook-xml-4.2.zip) unzip -qa ${FULLDISTDIR}/$$archive -d ${WRKDIR}/x4.2;;
|
|
|
|
|
1998-05-17 00:55:04 -04:00
|
|
|
do-install:
|
2001-03-31 05:20:44 -05:00
|
|
|
${INSTALL_DATA_DIR} ${SGML_INSTDIR} ${XML_INSTDIR}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/sgml_catalog ${PREFIX}/share/sgml/catalog
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/sgml_db_catalog ${SGML_INSTDIR}/catalog
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/xml_catalog ${PREFIX}/share/xml/catalog
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/xml_db_catalog ${XML_INSTDIR}/catalog
|
|
|
|
.for i in ${SGML_VERSIONS}
|
|
|
|
${INSTALL_DATA_DIR} ${SGML_INSTDIR}/$i
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/$i/* ${SGML_INSTDIR}/$i
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/sgml_db${i:S/.//g}_catalog ${SGML_INSTDIR}/$i/catalog
|
|
|
|
.endfor
|
|
|
|
.for i in ${XML_VERSIONS}
|
|
|
|
${INSTALL_DATA_DIR} ${XML_INSTDIR}/$i ${XML_INSTDIR}/$i/ent
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/x$i/*.* ${XML_INSTDIR}/$i
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/x$i/ent/* ${XML_INSTDIR}/$i/ent
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/xml_db${i:S/.//g}_catalog ${XML_INSTDIR}/$i/catalog
|
2000-10-08 19:51:45 -04:00
|
|
|
.endfor
|
2003-06-17 12:20:04 -04:00
|
|
|
sh ${FILESDIR}/makemastercatalog
|
1998-05-17 00:55:04 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|