Magellan Linux

Contents of /trunk/extras/xalan-c/xalan-c-1.10.0-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2103 - (show annotations) (download)
Fri Jun 19 00:28:35 2009 UTC (14 years, 10 months ago) by niro
File size: 1296 byte(s)
-fixed compilation with gcc-4.3
1 # $Id$
2
3 PNAME="xalan-c"
4 PVER="1.10.0"
5 PBUILD="r4"
6
7 PCATEGORIE="dev-util"
8 STATE="unstable"
9
10 DEPEND=">= dev-util/xerces-c-2"
11
12 DESCRIPTION="Xalan is an XSLT processor for transforming XML documents into HTML, text, or other XML document types."
13 HOMEPAGE="http://xml.apache.org/xalan-c/"
14
15 SRCFILE="Xalan-C_$(echo ${PVER} | sed "s:\.:_:g")-src.tar.gz"
16 SRCDIR="${BUILDDIR}/xml-xalan"
17
18 SRC_URI=(
19 http://www.apache.org/dist/xml/${PNAME}/${SRCFILE}
20 mirror://${PNAME}/${SRCFILE}
21 mirror://${PNAME}/${PNAME}-${PVER}-gcc43.patch
22 )
23
24 UP2DATE="updatecmd http://www.apache.org/dist/xml/${PNAME}/source/ | sed -n -e 's/.*Xalan-C_\(.*\)-src.*/\1/;$ p' | sed 's:_:.:g'"
25
26 src_prepare()
27 {
28 munpack ${SRCFILE} || die
29 cd ${SRCDIR}
30
31 # gcc43 compilation fix, adding missing includes
32 mpatch ${PNAME}-${PVER}-gcc43.patch || die
33 }
34
35 src_compile()
36 {
37 cd ${SRCDIR}/c || die
38
39 export XERCESCROOT=/usr/include/xercesc || die
40 export XALANCROOT=${SRCDIR}/c || die
41
42 ./runConfigure -plinux -P/usr -C --libdir=/usr/$(mlibdir) || die
43 mmake -j1 || die
44 }
45
46 src_install()
47 {
48 cd ${SRCDIR}/c || die
49
50 export XERCESCROOT=/usr/include/xercesc || die
51 export XALANCROOT=${SRCDIR}/c || die
52
53
54 mmake DESTDIR=${BINDIR} install || die
55
56 # a little bit "hacky"
57 cd ${SRCDIR}
58 minstalldocs c/{KEYS,LICENSE,NOTICE,README,readme.html} || die
59 }

Properties

Name Value
svn:keywords Id