2002-09-21 12:46:45 +02:00
|
|
|
# $NetBSD: Makefile,v 1.17 2002/09/21 10:48:55 jlam Exp $
|
1999-03-14 16:44:55 +01:00
|
|
|
# FreeBSD Id: Makefile,v 1.4 1998/06/27 05:19:35 asami Exp
|
1999-03-14 16:41:43 +01:00
|
|
|
#
|
|
|
|
|
2002-08-22 13:20:26 +02:00
|
|
|
DISTNAME= docbook-4.2
|
1999-03-14 16:41:43 +01:00
|
|
|
CATEGORIES= textproc
|
2000-06-27 02:51:40 +02:00
|
|
|
MASTER_SITES= \
|
2002-08-22 13:20:26 +02:00
|
|
|
http://www.oasis-open.org/docbook/sgml/4.2/ \
|
2000-06-27 02:51:40 +02:00
|
|
|
http://www.oasis-open.org/docbook/sgml/4.1/ \
|
|
|
|
http://www.oasis-open.org/docbook/sgml/4.0/ \
|
2000-06-07 22:32:00 +02:00
|
|
|
http://www.oasis-open.org/docbook/sgml/3.1/ \
|
2000-05-12 20:18:18 +02:00
|
|
|
http://www.oasis-open.org/docbook/sgml/3.0/ \
|
|
|
|
http://www.oasis-open.org/docbook/sgml/2.4.1/
|
2002-08-22 13:20:26 +02:00
|
|
|
DISTFILES= docbk241.zip docbk30.zip docbk31.zip docbk40.zip docbk41.zip \
|
|
|
|
docbook-4.2.zip
|
1999-03-14 16:41:43 +01:00
|
|
|
|
1999-03-14 16:44:55 +01:00
|
|
|
MAINTAINER= rh@NetBSD.ORG
|
|
|
|
HOMEPAGE= http://www.ora.com/davenport/
|
2001-02-17 18:31:58 +01:00
|
|
|
COMMENT= SGML DTD designed for computer documentation
|
1999-03-14 16:41:43 +01:00
|
|
|
|
2001-09-28 01:17:41 +02:00
|
|
|
BUILD_DEPENDS= unzip-[0-9]*:../../archivers/unzip
|
1999-03-14 16:44:55 +01:00
|
|
|
DEPENDS+= iso8879-1986:../../textproc/iso8879
|
1999-03-14 16:41:43 +01:00
|
|
|
|
|
|
|
NO_MTREE= yes
|
2002-09-21 12:46:45 +02:00
|
|
|
USE_BUILDLINK2= yes
|
1999-03-14 16:41:43 +01:00
|
|
|
EXTRACT_ONLY= # empty
|
|
|
|
NO_BUILD= yes
|
2001-09-09 22:36:07 +02:00
|
|
|
WRKSRC= ${WRKDIR}
|
1999-03-14 16:41:43 +01:00
|
|
|
|
|
|
|
INSTDIR= ${PREFIX}/share/sgml/docbook
|
|
|
|
ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog
|
|
|
|
|
|
|
|
pre-install:
|
2001-02-25 05:17:35 +01:00
|
|
|
${INSTALL_DATA_DIR} ${INSTDIR}/2.4.1
|
2002-09-21 12:46:45 +02:00
|
|
|
@[ -d ${INSTDIR}/3.0 ] || ${INSTALL_DATA_DIR} ${INSTDIR}/3.0
|
|
|
|
@[ -d ${INSTDIR}/3.1 ] || ${INSTALL_DATA_DIR} ${INSTDIR}/3.1
|
|
|
|
@[ -d ${INSTDIR}/4.0 ] || ${INSTALL_DATA_DIR} ${INSTDIR}/4.0
|
|
|
|
@[ -d ${INSTDIR}/4.1 ] || ${INSTALL_DATA_DIR} ${INSTDIR}/4.1
|
|
|
|
@[ -d ${INSTDIR}/4.2 ] || ${INSTALL_DATA_DIR} ${INSTDIR}/4.2
|
1999-03-14 16:41:43 +01:00
|
|
|
|
|
|
|
do-install:
|
2000-06-27 02:51:40 +02:00
|
|
|
#
|
|
|
|
# 2.4.1:
|
2000-09-03 15:34:42 +02:00
|
|
|
#
|
1999-06-27 16:17:59 +02:00
|
|
|
@(cd ${INSTDIR}/2.4.1; unzip ${DISTDIR}/docbk241.zip)
|
2000-02-05 07:57:11 +01:00
|
|
|
@${RM} -r ${INSTDIR}/2.4.1/iso-*
|
1999-03-14 16:41:43 +01:00
|
|
|
@${INSTALL_DATA} ${FILESDIR}/catalog241 ${INSTDIR}/2.4.1/catalog
|
1999-03-14 16:44:55 +01:00
|
|
|
@${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/2.4.1/catalog
|
2000-06-27 02:51:40 +02:00
|
|
|
@${CHMOD} ${SHAREMODE} ${INSTDIR}/2.4.1/*
|
|
|
|
#
|
|
|
|
# 3.0:
|
2000-09-03 15:34:42 +02:00
|
|
|
#
|
1999-06-27 16:17:59 +02:00
|
|
|
@(cd ${INSTDIR}/3.0; unzip ${DISTDIR}/docbk30.zip)
|
1999-03-14 16:41:43 +01:00
|
|
|
@${INSTALL_DATA} ${FILESDIR}/catalog30 ${INSTDIR}/3.0/catalog
|
1999-03-14 16:44:55 +01:00
|
|
|
@${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/3.0/catalog
|
2000-06-27 02:51:40 +02:00
|
|
|
@${CHMOD} ${SHAREMODE} ${INSTDIR}/3.0/*
|
|
|
|
#
|
|
|
|
# 3.1:
|
2000-09-03 15:34:42 +02:00
|
|
|
#
|
1999-06-27 16:17:59 +02:00
|
|
|
@(cd ${INSTDIR}/3.1; unzip ${DISTDIR}/docbk31.zip)
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/catalog31 ${INSTDIR}/3.1/catalog
|
|
|
|
@${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/3.1/catalog
|
2000-06-27 02:51:40 +02:00
|
|
|
@${CHMOD} ${SHAREMODE} ${INSTDIR}/3.1/*
|
|
|
|
#
|
|
|
|
# 4.0:
|
2000-09-03 15:34:42 +02:00
|
|
|
#
|
2000-06-07 22:32:00 +02:00
|
|
|
@(cd ${INSTDIR}/4.0; unzip ${DISTDIR}/docbk40.zip)
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/catalog40 ${INSTDIR}/4.0/catalog
|
|
|
|
@${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/4.0/catalog
|
|
|
|
@${CHMOD} ${SHAREMODE} ${INSTDIR}/4.0/*
|
2000-06-27 02:51:40 +02:00
|
|
|
#
|
|
|
|
# 4.1:
|
2000-09-03 15:34:42 +02:00
|
|
|
#
|
2000-06-27 02:51:40 +02:00
|
|
|
@(cd ${INSTDIR}/4.1; unzip ${DISTDIR}/docbk41.zip)
|
|
|
|
@${EGREP} '^PUBLIC.*(DocBook|Table)' ${INSTDIR}/4.1/docbook.cat >${INSTDIR}/4.1/catalog
|
|
|
|
@${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/4.1/catalog
|
|
|
|
@${CHMOD} ${SHAREMODE} ${INSTDIR}/4.1/*
|
|
|
|
#
|
2002-08-22 13:20:26 +02:00
|
|
|
# 4.2:
|
|
|
|
#
|
|
|
|
@(cd ${INSTDIR}/4.2; unzip ${DISTDIR}/docbook-4.2.zip)
|
|
|
|
@${EGREP} '^PUBLIC.*(DocBook|Table)' ${INSTDIR}/4.2/docbook.cat >${INSTDIR}/4.2/catalog
|
|
|
|
@${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/4.2/catalog
|
|
|
|
@${CHMOD} ${SHAREMODE} ${INSTDIR}/4.2/*
|
|
|
|
#
|
2000-06-27 02:51:40 +02:00
|
|
|
# General cleanup
|
|
|
|
#
|
1999-04-23 14:33:19 +02:00
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
|
1999-03-14 16:41:43 +01:00
|
|
|
|
1999-03-14 16:44:55 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|