summaryrefslogtreecommitdiff
path: root/packages/xerces-c/xerces-c_2.6.0.bb
blob: b38842951a166a4fab4211a821e289c7206591de (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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


#
# Warning: BITSTOBUILD will default to 32 bits
#
export TRANSCODER="NATIVE"
export MESSAGELOADER="INMEM"
export NETACCESSOR="Socket"
export THREADS="pthread"
export BITSTOBUILD="32"
export LIBS = " -lpthread "
CFLAGS_append = " -DPROJ_XMLPARSER -DPROJ_XMLUTIL -DPROJ_PARSERS -DPROJ_SAX4C -DPROJ_SAX2 -DPROJ_DOM -DPROJ_DEPRECATED_DOM -DPROJ_VALIDATORS -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET "
CXXFLAGS_append = " -DPROJ_XMLPARSER -DPROJ_XMLUTIL -DPROJ_PARSERS -DPROJ_SAX4C -DPROJ_SAX2 -DPROJ_DOM -DPROJ_DEPRECATED_DOM -DPROJ_VALIDATORS -DXML_USE_NATIVE_TRANSCODER -DXML_USE_INMEM_MESSAGELOADER -DXML_USE_PTHREADS -DXML_USE_NETACCESSOR_SOCKET "

do_configure() {
    export XERCESCROOT=${S}
    cd src/xercesc
    ./configure
}

do_compile () {
    export XERCESCROOT=${S}
    cd src/xercesc
    oe_runmake
}

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

    cp -pPR include/xercesc ${STAGING_INCDIR}
}

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