blob: 083dbc2d7e9e1915c4228bf5376bde0c4042e6b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# $NetBSD: Makefile,v 1.9 2000/06/27 05:03:49 kleink Exp $
# FreeBSD Id: Makefile,v 1.4 1998/06/27 05:19:35 asami Exp
#
DISTNAME= docbook-4.1
CATEGORIES= textproc
MASTER_SITES= \
http://www.oasis-open.org/docbook/sgml/4.1/ \
http://www.oasis-open.org/docbook/sgml/4.0/ \
http://www.oasis-open.org/docbook/sgml/3.1/ \
http://www.oasis-open.org/docbook/sgml/3.0/ \
http://www.oasis-open.org/docbook/sgml/2.4.1/
DISTFILES= docbk241.zip docbk30.zip docbk31.zip docbk40.zip docbk41.zip
MAINTAINER= rh@NetBSD.ORG
HOMEPAGE= http://www.ora.com/davenport/
BUILD_DEPENDS= unzip:../../archivers/unzip
DEPENDS+= iso8879-1986:../../textproc/iso8879
NO_MTREE= yes
EXTRACT_ONLY= # empty
NO_BUILD= yes
NO_WRKSUBDIR= yes
INSTDIR= ${PREFIX}/share/sgml/docbook
ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog
pre-install:
@[ -d ${INSTDIR}/2.4.1 ] || ${MKDIR} ${INSTDIR}/2.4.1
@[ -d ${INSTDIR}/3.0 ] || ${MKDIR} ${INSTDIR}/3.0
@[ -d ${INSTDIR}/3.1 ] || ${MKDIR} ${INSTDIR}/3.1
@[ -d ${INSTDIR}/4.0 ] || ${MKDIR} ${INSTDIR}/4.0
@[ -d ${INSTDIR}/4.1 ] || ${MKDIR} ${INSTDIR}/4.1
do-install:
#
# 2.4.1:
#
@(cd ${INSTDIR}/2.4.1; unzip ${DISTDIR}/docbk241.zip)
@${RM} -r ${INSTDIR}/2.4.1/iso-*
@${INSTALL_DATA} ${FILESDIR}/catalog241 ${INSTDIR}/2.4.1/catalog
@${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/2.4.1/catalog
@${CHMOD} ${SHAREMODE} ${INSTDIR}/2.4.1/*
#
# 3.0:
#
@(cd ${INSTDIR}/3.0; unzip ${DISTDIR}/docbk30.zip)
@${INSTALL_DATA} ${FILESDIR}/catalog30 ${INSTDIR}/3.0/catalog
@${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/3.0/catalog
@${CHMOD} ${SHAREMODE} ${INSTDIR}/3.0/*
#
# 3.1:
#
@(cd ${INSTDIR}/3.1; unzip ${DISTDIR}/docbk31.zip)
@${INSTALL_DATA} ${FILESDIR}/catalog31 ${INSTDIR}/3.1/catalog
@${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/3.1/catalog
@${CHMOD} ${SHAREMODE} ${INSTDIR}/3.1/*
#
# 4.0:
#
@(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/*
#
# 4.1:
#
@(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/*
#
# General cleanup
#
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
.include "../../mk/bsd.pkg.mk"
|