Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "Xerces-c is a validating xml parser written in C++" |
| 2 | DESCRIPTION = "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." |
| 7 | HOMEPAGE = "http://xerces.apache.org/xerces-c/" |
| 8 | SECTION = "libs" |
| 9 | LICENSE = "Apache-2.0" |
| 10 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" |
| 11 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 12 | SRC_URI = "http://archive.apache.org/dist/xerces/c/3/sources/${BP}.tar.bz2" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 13 | SRC_URI[md5sum] = "d04ae9d8b2dee2157c6db95fa908abfd" |
| 14 | SRC_URI[sha256sum] = "9408f12c1628ecf80730bedbe8b2caad810edd01bb4c66f77b60c873e8cc6891" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 15 | |
| 16 | inherit autotools |
| 17 | |
| 18 | PACKAGECONFIG ??= "curl icu" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 19 | PACKAGECONFIG[curl] = "--with-curl=${STAGING_DIR_TARGET}${prefix},--with-curl=no,curl" |
| 20 | PACKAGECONFIG[icu] = "--with-icu=${STAGING_DIR_TARGET}${prefix},--with-icu=no,icu" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 21 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 22 | do_install:prepend () { |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 23 | sed -i -e 's:-L${STAGING_DIR}/lib:-L\$\{libdir\}:g' ${B}/xerces-c.pc |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | PACKAGES = "libxerces-c \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 27 | libxerces-c-dev \ |
| 28 | xerces-c-samples \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 29 | libxerces-c-staticdev \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 30 | ${PN}-dbg \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 31 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 32 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 33 | RPROVIDES:${PN}-dbg += "libxerces-c-dbg xerces-c-samples-dbg" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 34 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 35 | FILES:libxerces-c = "${libdir}/libxerces-c-3.1.so" |
| 36 | FILES:libxerces-c-dev = "${libdir}/lib*.la \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 37 | ${libdir}/libxerces-c.so \ |
| 38 | ${libdir}/pkgconfig/xerces-c.pc \ |
| 39 | ${includedir}/xercesc \ |
| 40 | " |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 41 | FILES:xerces-c-samples = "${bindir}/*" |
| 42 | FILES:libxerces-c-staticdev = "${libdir}/lib*.a" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 43 | |
| 44 | BBCLASSEXTEND = "native" |