Merge oe-devel@oe-devel.bkbits.net:packages
[openembedded.git] / libxml / libxml2_2.6.10.oe
1 PR = "r0"
2 DESCRIPTION = "GNOME XML library"
3 SECTION = "libs"
4 PRIORITY = "optional"
5 MAINTAINER = "Phil Blundell <pb@handhelds.org>"
6
7 PACKAGES = "${PN}-dev ${PN}-utils ${PN} ${PN}-doc ${PN}-locale"
8
9 FILES_${PN}-dev += "${bindir}/xml-config"
10 FILES_${PN}-utils += "${bindir}"
11
12 SRC_URI = "http://xmlsoft.org/sources/libxml2-${PV}.tar.gz"
13
14 inherit autotools pkgconfig 
15
16 EXTRA_OECONF = "--without-python --without-debug --without-legacy --without-schemas --without-catalog --without-docbook --without-c14n"
17
18 headers = "DOCBparser.h HTMLparser.h HTMLtree.h SAX.h SAX2.h c14n.h catalog.h chvalid.h debugXML.h dict.h encoding.h entities.h globals.h hash.h list.h nanoftp.h nanohttp.h parser.h parserInternals.h pattern.h relaxng.h schemasInternals.h threads.h tree.h uri.h valid.h xinclude.h xlink.h xmlIO.h xmlautomata.h xmlerror.h xmlexports.h xmlmemory.h xmlreader.h xmlregexp.h xmlschemas.h xmlschemastypes.h xmlstring.h xmlunicode.h xmlversion.h xmlwriter.h xpath.h xpathInternals.h xpointer.h"
19
20 do_stage () {
21         oe_libinstall -so libxml2 ${STAGING_LIBDIR}
22
23         mkdir -p ${STAGING_INCDIR}/libxml2/libxml
24         for i in ${headers}; do
25                 install -m 0644 include/libxml/$i ${STAGING_INCDIR}/libxml2/libxml/$i
26         done
27
28         cat xml2-config | sed -e "s,^prefix=.*,prefix=${STAGING_BINDIR}/..," \
29                              -e "s,^exec_prefix=.*,exec_prefix=${STAGING_BINDIR}/..," \
30                              -e "s,^includedir=.*,includedir=${STAGING_INCDIR}," \
31                              -e "s,^libdir=.*,libdir=${STAGING_LIBDIR}," > ${STAGING_BINDIR}/xml2-config
32         chmod a+rx ${STAGING_BINDIR}/xml2-config
33         install -m 0644 libxml.m4 ${STAGING_DATADIR}/aclocal/
34 }
35
36 python populate_packages_prepend () {
37         # autonamer would call this libxml2-2, but we don't want that
38         if oe.data.getVar('DEBIAN_NAMES', d, 1):
39                 oe.data.setVar('PKG_libxml2', 'libxml2', d)
40 }