Magellan Linux

Annotation of /branches/magellan-next/extras/xalan-c/xalan-c-1.11.0_pre797991-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8048 - (hide annotations) (download)
Wed Jun 29 13:20:13 2011 UTC (12 years, 11 months ago) by niro
File size: 1471 byte(s)
-added gcc-4.6 patch
1 niro 8045 # $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 niro 8047 mirror://${PNAME}-${PVER}-as-needed.patch
21     mirror://${PNAME}-${PVER}-bugfixes.patch
22     mirror://${PNAME}-${PVER}-parallel-build.patch
23 niro 8048 mirror://${PNAME}-${PVER}-gcc46.patch
24 niro 8045 )
25    
26     UP2DATE="updatecmd http://www.apache.org/dist/xml/${PNAME}/source/ | sed -n -e 's/.*Xalan-C_\(.*\)-src.*/\1/;$ p' | sed 's:_:.:g'"
27    
28 niro 8047 src_prepare()
29     {
30     munpack ${SRCFILE} || die
31     cd ${SRCDIR}
32    
33     mpatch ${PNAME}-${PVER}-as-needed.patch || die
34     mpatch ${PNAME}-${PVER}-bugfixes.patch || die
35     mpatch ${PNAME}-${PVER}-parallel-build.patch || die
36 niro 8048 mpatch ${PNAME}-${PVER}-gcc46.patch || die
37 niro 8047 }
38    
39 niro 8045 src_compile()
40     {
41     cd ${SRCDIR}/c || die
42    
43     export XERCESCROOT=/usr/include/xercesc || die
44     export XALANCROOT=${SRCDIR}/c || die
45    
46     ./runConfigure -p linux -P /usr -C --libdir=/usr/$(mlibdir) || die
47     mmake -j1 || die
48     }
49    
50     src_install()
51     {
52     cd ${SRCDIR}/c || die
53    
54     export XERCESCROOT=/usr/include/xercesc || die
55     export XALANCROOT=${SRCDIR}/c || die
56    
57     mmake DESTDIR=${BINDIR} install || die
58    
59     cd ${SRCDIR}
60     minstalldocs c/{KEYS,LICENSE,NOTICE,README,readme.html} || die
61     }