summaryrefslogtreecommitdiff
path: root/packages/xerces-c/xerces-c_2.6.0.bb
blob: 4d87b77fadc38dc126437c315ee4f77259e7664c (plain)
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
PR = "r0"
DESCRIPTION = "Xerces-c xml"
SECTION =  "libs"
PRIORITY = "optional"
MAINTAINER = "Philip Balister philip@balister.org"
LICENSE = "MIT"

S="${WORKDIR}/xerces-c-src_2_6_0"

SRC_URI = "http://www.axint.net/apache/xml/xerces-c/xerces-c-src_2_6_0.tar.gz"

inherit pkgconfig 

do_compile () {
        export XERCESCROOT=${S}
        cd src/xercesc
# runConfigure is going to bust CC and CXX I bet
        CC_SAVE="${CC}"
        CXX_SAVE="${CXX}"
	./runConfigure -plinux -c${CC} -x${CXX} -minmem -nsocket -tnative -rpthread
        CC="${CC_SAVE}"
        CXX="${CXX_SAVE}"
        oe_runmake
}

do_stage () {
	oe_libinstall lib/libxerces-c ${STAGING_LIBDIR}
	oe_libinstall lib/libxerces-depdom ${STAGING_LIBDIR}

	cp -pPR include/xercesc ${STAGING_INCDIR}
}

do_install () {
	oe_libinstall lib/libxerces-c ${D}${libdir}
	oe_libinstall lib/libxerces-depdom ${D}${libdir}
}