blob: 0951307c153b8bb0632772e934bd6d1e333b8f15 [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
22do_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
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080033RPROVIDES_${PN}-dbg += "libxerces-c-dbg xerces-c-samples-dbg"
34
Patrick Williamsb48b7b42016-08-17 15:04:38 -050035FILES_libxerces-c = "${libdir}/libxerces-c-3.1.so"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050036FILES_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 Williamsb48b7b42016-08-17 15:04:38 -050041FILES_xerces-c-samples = "${bindir}/*"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050042FILES_libxerces-c-staticdev = "${libdir}/lib*.a"
43
44BBCLASSEXTEND = "native"