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 | |
| 12 | SRC_URI = "http://apache.lauf-forum.at/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 | |
| 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-dbg \ |
| 28 | libxerces-c-dev \ |
| 29 | xerces-c-samples \ |
| 30 | xerces-c-samples-dbg \ |
| 31 | libxerces-c-staticdev \ |
| 32 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 33 | |
| 34 | FILES_libxerces-c = "${libdir}/libxerces-c-3.1.so" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 35 | FILES_libxerces-c-dbg = "${libdir}/.debug \ |
| 36 | ${prefix}/src/debug \ |
| 37 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 38 | FILES_libxerces-c-dev = "${libdir}/lib*.la \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 39 | ${libdir}/libxerces-c.so \ |
| 40 | ${libdir}/pkgconfig/xerces-c.pc \ |
| 41 | ${includedir}/xercesc \ |
| 42 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 43 | FILES_xerces-c-samples = "${bindir}/*" |
| 44 | FILES_xerces-c-samples-dbg = "${bindir}/.debug/" |
| 45 | FILES_libxerces-c-staticdev = "${libdir}/lib*.a" |
| 46 | |
| 47 | BBCLASSEXTEND = "native" |