blob: 22fd94b093bb4ad63cdc2945d2c7bc4548f2debd [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Xerces-c is a validating xml parser written in C++"
2DESCRIPTION = "Xerces-C++ makes it easy to give your application \
3 the ability to read and write XML data. \
4 A shared library is provided for parsing, generating, \
5 manipulating, and validating XML documents using \
6 the DOM, SAX, and SAX2 APIs."
7HOMEPAGE = "http://xerces.apache.org/xerces-c/"
8SECTION = "libs"
9LICENSE = "Apache-2.0"
10LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
11
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080012SRC_URI = "http://archive.apache.org/dist/xerces/c/3/sources/${BP}.tar.bz2"
Patrick Williamsddad1a12017-02-23 20:36:32 -060013SRC_URI[md5sum] = "d04ae9d8b2dee2157c6db95fa908abfd"
14SRC_URI[sha256sum] = "9408f12c1628ecf80730bedbe8b2caad810edd01bb4c66f77b60c873e8cc6891"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050015
16inherit autotools
17
18PACKAGECONFIG ??= "curl icu"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050019PACKAGECONFIG[curl] = "--with-curl=${STAGING_DIR_TARGET}${prefix},--with-curl=no,curl"
20PACKAGECONFIG[icu] = "--with-icu=${STAGING_DIR_TARGET}${prefix},--with-icu=no,icu"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050021
Patrick Williams213cb262021-08-07 19:21:33 -050022do_install:prepend () {
Patrick Williamsddad1a12017-02-23 20:36:32 -060023 sed -i -e 's:-L${STAGING_DIR}/lib:-L\$\{libdir\}:g' ${B}/xerces-c.pc
Patrick Williamsb48b7b42016-08-17 15:04:38 -050024}
25
26PACKAGES = "libxerces-c \
Patrick Williamsddad1a12017-02-23 20:36:32 -060027 libxerces-c-dev \
28 xerces-c-samples \
Patrick Williamsddad1a12017-02-23 20:36:32 -060029 libxerces-c-staticdev \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080030 ${PN}-dbg \
Patrick Williamsddad1a12017-02-23 20:36:32 -060031"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050032
Patrick Williams213cb262021-08-07 19:21:33 -050033RPROVIDES:${PN}-dbg += "libxerces-c-dbg xerces-c-samples-dbg"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080034
Patrick Williams213cb262021-08-07 19:21:33 -050035FILES:libxerces-c = "${libdir}/libxerces-c-3.1.so"
36FILES:libxerces-c-dev = "${libdir}/lib*.la \
Patrick Williamsddad1a12017-02-23 20:36:32 -060037 ${libdir}/libxerces-c.so \
38 ${libdir}/pkgconfig/xerces-c.pc \
39 ${includedir}/xercesc \
40"
Patrick Williams213cb262021-08-07 19:21:33 -050041FILES:xerces-c-samples = "${bindir}/*"
42FILES:libxerces-c-staticdev = "${libdir}/lib*.a"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050043
44BBCLASSEXTEND = "native"