Contents of /branches/magellan-next/extras/xalan-c/xalan-c-1.11.0_pre797991-r2.smage2
Parent Directory | Revision Log
Revision 8047 -
(show annotations)
(download)
Wed Jun 29 13:09:24 2011 UTC (12 years, 10 months ago) by niro
File size: 1388 byte(s)
Wed Jun 29 13:09:24 2011 UTC (12 years, 10 months ago) by niro
File size: 1388 byte(s)
-added build fixes
1 | # $Id$ |
2 | |
3 | PNAME="xalan-c" |
4 | PVER="1.11.0_pre797991" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="dev-util" |
8 | |
9 | DEPEND=">= dev-util/xerces-c-3.1" |
10 | |
11 | DESCRIPTION="Xalan is an XSLT processor for transforming XML documents into HTML, text, or other XML document types." |
12 | HOMEPAGE="http://xml.apache.org/xalan-c/" |
13 | |
14 | SRCFILE="Xalan-C_r${PVER#*pre}-src.tar.gz" |
15 | SRCDIR="${BUILDDIR}/xml-xalan" |
16 | |
17 | SRC_URI=( |
18 | http://www.apache.org/dist/xml/${PNAME}/${SRCFILE} |
19 | mirror://${PNAME}/${SRCFILE} |
20 | mirror://${PNAME}-${PVER}-as-needed.patch |
21 | mirror://${PNAME}-${PVER}-bugfixes.patch |
22 | mirror://${PNAME}-${PVER}-parallel-build.patch |
23 | ) |
24 | |
25 | UP2DATE="updatecmd http://www.apache.org/dist/xml/${PNAME}/source/ | sed -n -e 's/.*Xalan-C_\(.*\)-src.*/\1/;$ p' | sed 's:_:.:g'" |
26 | |
27 | src_prepare() |
28 | { |
29 | munpack ${SRCFILE} || die |
30 | cd ${SRCDIR} |
31 | |
32 | mpatch ${PNAME}-${PVER}-as-needed.patch || die |
33 | mpatch ${PNAME}-${PVER}-bugfixes.patch || die |
34 | mpatch ${PNAME}-${PVER}-parallel-build.patch || die |
35 | } |
36 | |
37 | src_compile() |
38 | { |
39 | cd ${SRCDIR}/c || die |
40 | |
41 | export XERCESCROOT=/usr/include/xercesc || die |
42 | export XALANCROOT=${SRCDIR}/c || die |
43 | |
44 | ./runConfigure -p linux -P /usr -C --libdir=/usr/$(mlibdir) || die |
45 | mmake -j1 || die |
46 | } |
47 | |
48 | src_install() |
49 | { |
50 | cd ${SRCDIR}/c || die |
51 | |
52 | export XERCESCROOT=/usr/include/xercesc || die |
53 | export XALANCROOT=${SRCDIR}/c || die |
54 | |
55 | mmake DESTDIR=${BINDIR} install || die |
56 | |
57 | cd ${SRCDIR} |
58 | minstalldocs c/{KEYS,LICENSE,NOTICE,README,readme.html} || die |
59 | } |