blob: 58fc83952b91d4afc138ebf75244ad97a18ce164 (
plain) (
blame)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
|
# New ports collection makefile for: docbook-xml
# Date created: 17 January 2002
# Whom: des
#
# $FreeBSD$
#
PORTNAME= docbook-xsl
PORTVERSION= 1.75.2
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= SF/docbook/${PORTNAME}/${PORTVERSION}:src \
SF/docbook/${PORTNAME}-doc/${PORTVERSION}:doc
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:src
MAINTAINER= skv@FreeBSD.org
COMMENT= XSL DocBook stylesheets
BUILD_DEPENDS= ${LOCALBASE}/bin/xmlcatmgr:${PORTSDIR}/textproc/xmlcatmgr
RUN_DEPENDS= docbook>=0:${PORTSDIR}/textproc/docbook
.if !defined(NOPORTDOCS)
DISTFILES+= ${PORTNAME}-doc-${PORTVERSION}${EXTRACT_SUFX}:doc
.endif
USE_BZIP2= yes
NO_BUILD= yes
INSTDIR= share/xsl/docbook
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
SUB_FILES= pkg-install pkg-deinstall
SUB_LIST+= INSTDIR="${INSTDIR}" \
XMLCATMGR="${XMLCATMGR}" \
CATALOG_PORTS="${LOCALBASE}/share/xml/catalog.ports"
XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
MODULES= common fo html images lib manpages params xhtml
OPTIONS= ECLIPSE "Eclipse modules" on \
EPUB "Epub modules" on \
EXTENSIONS "Extensions" on \
HIGHLIGHTING "highlighting modules" on \
HTMLHELP "HTML Help modules" on \
JAVAHELP "Java Help modules" on \
PROFILING "Profiling modules" on \
ROUNDTRIP "Roundtrip modules" on \
SLIDES "Slides modules" on \
TEMPLATE "Templates" on \
TESTS "Test tools" on \
TOOLS "Tools" on \
WEBSITE "Website modules" on \
XHTML11 "XHTML 1.1 modules" on
.include <bsd.port.pre.mk>
.if defined(WITH_ECLIPSE)
PLIST_SUB+= ECLIPSE=""
MODULES+= eclipse
.else
PLIST_SUB+= ECLIPSE="@comment "
.endif
.if defined(WITH_EPUB)
PLIST_SUB+= EPUB=""
MODULES+= epub
.else
PLIST_SUB+= EPUB="@comment "
.endif
.if defined(WITH_EXTENSIONS)
PLIST_SUB+= EXTENSIONS=""
MODULES+= extensions
.else
PLIST_SUB+= EXTENSIONS="@comment "
.endif
.if defined(WITH_HIGHLIGHTING)
PLIST_SUB+= HIGHLIGHTING=""
MODULES+= highlighting
.else
PLIST_SUB+= HIGHLIGHTING="@comment "
.endif
.if defined(WITH_HTMLHELP)
PLIST_SUB+= HTMLHELP=""
MODULES+= htmlhelp
.else
PLIST_SUB+= HTMLHELP="@comment "
.endif
.if defined(WITH_JAVAHELP)
PLIST_SUB+= JAVAHELP=""
MODULES+= javahelp
.else
PLIST_SUB+= JAVAHELP="@comment "
.endif
.if defined(WITH_PROFILING)
PLIST_SUB+= PROFILING=""
MODULES+= profiling
.else
PLIST_SUB+= PROFILING="@comment "
.endif
.if defined(WITH_ROUNDTRIP)
PLIST_SUB+= ROUNDTRIP=""
MODULES+= roundtrip
.else
PLIST_SUB+= ROUNDTRIP="@comment "
.endif
.if defined(WITH_SLIDES)
PLIST_SUB+= SLIDES=""
MODULES+= slides
.else
PLIST_SUB+= SLIDES="@comment "
.endif
.if defined(WITH_TEMPLATE)
PLIST_SUB+= TEMPLATE=""
MODULES+= template
.else
PLIST_SUB+= TEMPLATE="@comment "
.endif
.if defined(WITH_TESTS)
PLIST_SUB+= TESTS=""
MODULES+= tests
.else
PLIST_SUB+= TESTS="@comment "
.endif
.if defined(WITH_TOOLS)
PLIST_SUB+= TOOLS=""
MODULES+= tools
.else
PLIST_SUB+= TOOLS="@comment "
.endif
.if defined(WITH_WEBSITE)
PLIST_SUB+= WEBSITE=""
MODULES+= website
.else
PLIST_SUB+= WEBSITE="@comment "
.endif
.if defined(WITH_XHTML11)
PLIST_SUB+= XHTML11=""
MODULES+= xhtml-1_1
.else
PLIST_SUB+= XHTML11="@comment "
.endif
post-extract:
${FIND} ${WRKSRC} \( -name '.*' -or -name '*.sh' -or -name '*.LOG' \) -delete
${FIND} ${WRKSRC}/extensions -type d -mindepth 1 -maxdepth 1 -print0 |\
${XARGS} -0 ${RM} -rf
do-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
(cd ${WRKSRC}/doc && ${TAR} -cf - . |\
${TAR} -xf - -C${DOCSDIR})
.endif
.for m in ${MODULES}
${MKDIR} ${PREFIX}/${INSTDIR}/${m}
dirs=$$(${FIND} ${WRKSRC}/${m} -type d | ${SED} 's|^${WRKSRC}/${m}||g'); \
for d in $${dirs}; do \
files=$$(${FIND} ${WRKSRC}/${m}/$${d} -type f); \
${MKDIR} ${PREFIX}/${INSTDIR}/${m}/$${d}; \
for i in $${files}; do \
${INSTALL_DATA} $${i} ${PREFIX}/${INSTDIR}/${m}/$${d}; \
done; \
done; \
files=$$(${FIND} ${WRKSRC}/${m} -type f -depth 1); \
for i in $${files}; do \
${INSTALL_DATA} $${i} ${PREFIX}/${INSTDIR}/${m}; \
done
.endfor
files=$$(${FIND} ${WRKSRC} -type f -depth 1); \
for i in $${files}; do \
${INSTALL_DATA} $${i} ${PREFIX}/${INSTDIR}; \
done
post-install:
@${SETENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>
|