2009-04-12 09:19:22 +02:00
|
|
|
# $NetBSD: Makefile,v 1.41 2009/04/12 07:19:22 minskim Exp $
|
1999-03-14 16:41:43 +01:00
|
|
|
|
2005-02-18 17:09:15 +01:00
|
|
|
DISTNAME= docbook-4.4
|
2009-04-12 09:19:22 +02:00
|
|
|
PKGREVISION= 3
|
1999-03-14 16:41:43 +01:00
|
|
|
CATEGORIES= textproc
|
2005-02-18 17:09:15 +01:00
|
|
|
MASTER_SITES= http://www.oasis-open.org/docbook/sgml/4.4/
|
2006-07-04 11:58:18 +02:00
|
|
|
SITES.docbook-4.3.zip= http://www.oasis-open.org/docbook/sgml/4.3/
|
|
|
|
SITES.docbook-4.2.zip= http://www.oasis-open.org/docbook/sgml/4.2/
|
|
|
|
SITES.docbk41.zip= http://www.oasis-open.org/docbook/sgml/4.1/
|
|
|
|
SITES.docbk40.zip= http://www.oasis-open.org/docbook/sgml/4.0/
|
|
|
|
SITES.docbk31.zip= http://www.oasis-open.org/docbook/sgml/3.1/
|
|
|
|
SITES.docbk30.zip= http://www.oasis-open.org/docbook/sgml/3.0/
|
|
|
|
SITES.docbk241.zip= 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 \
|
2005-02-18 17:09:15 +01:00
|
|
|
docbook-4.2.zip docbook-4.3.zip docbook-4.4.zip
|
1999-03-14 16:41:43 +01:00
|
|
|
|
2004-06-05 01:58:12 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2008-08-08 16:57:39 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2004-06-05 01:58:12 +02:00
|
|
|
|
2004-02-25 12:50:35 +01:00
|
|
|
MAINTAINER= rh@NetBSD.org
|
2006-10-14 09:59:09 +02:00
|
|
|
HOMEPAGE= http://www.oasis-open.org/docbook/
|
2001-02-17 18:31:58 +01:00
|
|
|
COMMENT= SGML DTD designed for computer documentation
|
1999-03-14 16:41:43 +01:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
BUILD_DEPENDS+= unzip-[0-9]*:../../archivers/unzip
|
2003-01-11 23:11:50 +01:00
|
|
|
DEPENDS+= iso8879>=1986:../../textproc/iso8879
|
1999-03-14 16:41:43 +01:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2006-07-04 11:58:18 +02:00
|
|
|
USE_LANGUAGES= # none
|
|
|
|
USE_TOOLS+= unzip
|
|
|
|
EXTRACT_ONLY= # nothing
|
1999-03-14 16:41:43 +01:00
|
|
|
|
2008-08-08 16:57:39 +02:00
|
|
|
INSTDIR= ${DESTDIR}${PREFIX}/share/sgml/docbook
|
2009-04-12 09:19:22 +02:00
|
|
|
ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog
|
1999-03-14 16:41:43 +01:00
|
|
|
|
2003-01-29 22:15:07 +01:00
|
|
|
SGML_CATALOGS=
|
2005-02-18 17:09:15 +01:00
|
|
|
.for ver in 2.4.1 3.0 3.1 4.0 4.1 4.2 4.3 4.4
|
2009-04-12 09:19:22 +02:00
|
|
|
SGML_CATALOGS+= ${PREFIX}/share/sgml/docbook/${ver}/catalog
|
2003-01-29 22:15:07 +01:00
|
|
|
.endfor
|
|
|
|
|
2004-02-09 16:46:51 +01:00
|
|
|
do-build:
|
2005-02-18 17:09:15 +01:00
|
|
|
.for ver in 241 30 31 40 41 42 43 44
|
2004-02-09 16:46:51 +01:00
|
|
|
${CP} ${FILESDIR}/catalog${ver} ${WRKDIR}
|
|
|
|
${ECHO} "CATALOG \"${ISOCAT}\"" >> ${WRKDIR}/catalog${ver}
|
|
|
|
.endfor
|
|
|
|
|
1999-03-14 16:41:43 +01:00
|
|
|
pre-install:
|
2001-02-25 05:17:35 +01:00
|
|
|
${INSTALL_DATA_DIR} ${INSTDIR}/2.4.1
|
2006-07-04 11:58:18 +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
|
|
|
|
[ -d ${INSTDIR}/4.3 ] || ${INSTALL_DATA_DIR} ${INSTDIR}/4.3
|
|
|
|
[ -d ${INSTDIR}/4.4 ] || ${INSTALL_DATA_DIR} ${INSTDIR}/4.4
|
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
|
|
|
#
|
2006-07-04 11:58:18 +02:00
|
|
|
(cd ${INSTDIR}/2.4.1 && ${UNZIP_CMD} ${DISTDIR}/docbk241.zip)
|
|
|
|
${RM} -r ${INSTDIR}/2.4.1/iso-*
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/catalog241 ${INSTDIR}/2.4.1/catalog
|
|
|
|
${CHMOD} ${SHAREMODE} ${INSTDIR}/2.4.1/*
|
2000-06-27 02:51:40 +02:00
|
|
|
#
|
|
|
|
# 3.0:
|
2000-09-03 15:34:42 +02:00
|
|
|
#
|
2006-07-04 11:58:18 +02:00
|
|
|
(cd ${INSTDIR}/3.0 && ${UNZIP_CMD} ${DISTDIR}/docbk30.zip)
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/catalog30 ${INSTDIR}/3.0/catalog
|
|
|
|
${CHMOD} ${SHAREMODE} ${INSTDIR}/3.0/*
|
2000-06-27 02:51:40 +02:00
|
|
|
#
|
|
|
|
# 3.1:
|
2000-09-03 15:34:42 +02:00
|
|
|
#
|
2006-07-04 11:58:18 +02:00
|
|
|
(cd ${INSTDIR}/3.1 && ${UNZIP_CMD} ${DISTDIR}/docbk31.zip)
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/catalog31 ${INSTDIR}/3.1/catalog
|
|
|
|
${CHMOD} ${SHAREMODE} ${INSTDIR}/3.1/*
|
2000-06-27 02:51:40 +02:00
|
|
|
#
|
|
|
|
# 4.0:
|
2000-09-03 15:34:42 +02:00
|
|
|
#
|
2006-07-04 11:58:18 +02:00
|
|
|
(cd ${INSTDIR}/4.0 && ${UNZIP_CMD} ${DISTDIR}/docbk40.zip)
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/catalog40 ${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
|
|
|
#
|
2006-07-04 11:58:18 +02:00
|
|
|
(cd ${INSTDIR}/4.1 && ${UNZIP_CMD} ${DISTDIR}/docbk41.zip)
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/catalog41 ${INSTDIR}/4.1/catalog
|
|
|
|
${CHMOD} ${SHAREMODE} ${INSTDIR}/4.1/*
|
2000-06-27 02:51:40 +02:00
|
|
|
#
|
2002-08-22 13:20:26 +02:00
|
|
|
# 4.2:
|
|
|
|
#
|
2006-07-04 11:58:18 +02:00
|
|
|
(cd ${INSTDIR}/4.2 && ${UNZIP_CMD} ${DISTDIR}/docbook-4.2.zip)
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/catalog42 ${INSTDIR}/4.2/catalog
|
|
|
|
${CHMOD} ${SHAREMODE} ${INSTDIR}/4.2/*
|
2002-08-22 13:20:26 +02:00
|
|
|
#
|
2005-02-18 17:09:15 +01:00
|
|
|
# 4.3:
|
|
|
|
#
|
2006-07-04 11:58:18 +02:00
|
|
|
(cd ${INSTDIR}/4.3 && ${UNZIP_CMD} ${DISTDIR}/docbook-4.3.zip)
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/catalog43 ${INSTDIR}/4.3/catalog
|
|
|
|
${CHMOD} ${SHAREMODE} ${INSTDIR}/4.3/*
|
2005-02-18 17:09:15 +01:00
|
|
|
#
|
|
|
|
# 4.4:
|
|
|
|
#
|
2006-07-04 11:58:18 +02:00
|
|
|
(cd ${INSTDIR}/4.4 && ${UNZIP_CMD} ${DISTDIR}/docbook-4.4.zip)
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/catalog44 ${INSTDIR}/4.4/catalog
|
|
|
|
${CHMOD} ${SHAREMODE} ${INSTDIR}/4.4/*
|
2005-02-18 17:09:15 +01:00
|
|
|
#
|
2000-06-27 02:51:40 +02:00
|
|
|
# General cleanup
|
|
|
|
#
|
2006-07-04 11:58:18 +02:00
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
|
1999-03-14 16:41:43 +01:00
|
|
|
|
2003-01-29 22:15:07 +01:00
|
|
|
.include "../../textproc/xmlcatmgr/catalogs.mk"
|
1999-03-14 16:44:55 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|