Magellan Linux

Annotation of /branches/magellan-0_10_0/extras/xerces-c/xerces-c-2.8.0-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3000 - (hide annotations) (download)
Mon Oct 5 18:47:41 2009 UTC (14 years, 7 months ago) by niro
File size: 1231 byte(s)
created branch 'magellan-0_10_0'
1 niro 2100 # $Id$
2    
3     PNAME="xerces-c"
4     PVER="2.8.0"
5     PBUILD="r2"
6    
7     PCATEGORIE="dev-util"
8     STATE="unstable"
9    
10     DESCRIPTION="Xerces-C++ is a validating XML parser written in a portable subset of C++."
11     HOMEPAGE="http://xml.apache.org/xerces-c/"
12    
13     SRCFILE="${PNAME}-src_$(echo ${PVER} | sed "s:\.:_:g").tar.gz"
14     SRCDIR="${BUILDDIR}/${PNAME}-src_$(echo ${PVER} | sed "s:\.:_:g")"
15    
16     sminclude mbuild
17    
18     UP2DATE="updatecmd http://www.apache.org/dist/xerces/c/2/sources/ | grep ${PNAME}-src | sed 's/.*${PNAME}-src_\(.*\).tar.*/\1/;q' | sed 's:_:.:g'"
19    
20     SRC_URI=(
21 niro 2101 http://www.apache.org/dist/xerces/c/2/sources/${SRCFILE}
22 niro 2100 mirror://${PNAME}/${SRCFILE}
23     mirror://${PNAME}/${PNAME}-${PVER}-multilib.patch
24     mirror://${PNAME}/${PNAME}-${PVER}-libpath.patch
25     )
26    
27     src_prepare()
28     {
29     munpack ${SRCFILE} || die
30     cd ${SRCDIR}
31    
32     # multilib fixes
33     mpatch ${PNAME}-${PVER}-multilib.patch || die
34     mpatch ${PNAME}-${PVER}-libpath.patch || die
35     }
36    
37     src_compile()
38     {
39     cd ${SRCDIR}/src/xercesc
40     export XERCESCROOT=${SRCDIR}
41    
42     runConfigure -plinux -P/usr || die
43     mmake -j1 || die
44     }
45    
46     src_install()
47     {
48     cd ${SRCDIR}/src/xercesc
49     export XERCESCROOT=${SRCDIR}
50    
51     mmake DESTDIR=${BINDIR} MLIBDIR=$(mlibdir) install || die
52    
53     cd ${SRCDIR}
54     minstalldocs KEYS LICENCE* NOTICE STATUS Readme* || die
55     }

Properties

Name Value
svn:keywords Id