Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 1 | # (c) Copyright 2012 Hewlett-Packard Development Company, L.P. |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 2 | |
| 3 | SUMMARY = "a simple, small, minimal, C++ XML parser" |
| 4 | HOMEPAGE = "http://www.sourceforge.net/projects/tinyxml" |
| 5 | LICENSE = "Zlib" |
| 6 | LIC_FILES_CHKSUM = "file://readme.txt;md5=f8f366f3370dda889f60faa7db162cf4" |
| 7 | SECTION = "libs" |
| 8 | |
| 9 | PR = "r5" |
| 10 | |
| 11 | SRC_URI = "${SOURCEFORGE_MIRROR}/tinyxml/tinyxml_${@'${PV}'.replace('.', '_')}.tar.gz \ |
| 12 | file://enforce-use-stl.patch \ |
| 13 | file://entity-encoding.patch" |
| 14 | SRC_URI[md5sum] = "c1b864c96804a10526540c664ade67f0" |
| 15 | SRC_URI[sha256sum] = "15bdfdcec58a7da30adc87ac2b078e4417dbe5392f3afb719f9ba6d062645593" |
| 16 | |
| 17 | S = "${WORKDIR}/tinyxml" |
| 18 | |
| 19 | EXTRA_CXXFLAGS = "-I. -fPIC" |
| 20 | |
| 21 | do_compile() { |
| 22 | ${CXX} ${CXXFLAGS} ${EXTRA_CXXFLAGS} -c -o tinyxml.o tinyxml.cpp |
| 23 | ${CXX} ${CXXFLAGS} ${EXTRA_CXXFLAGS} -c -o tinyxmlerror.o tinyxmlerror.cpp |
| 24 | ${CXX} ${CXXFLAGS} ${EXTRA_CXXFLAGS} -c -o tinyxmlparser.o tinyxmlparser.cpp |
| 25 | ${CXX} ${CXXFLAGS} \ |
| 26 | -shared \ |
| 27 | -Wl,-soname,libtinyxml.so.${PV} \ |
| 28 | -o libtinyxml.so.${PV} \ |
| 29 | ${LDFLAGS} \ |
| 30 | tinyxml.o \ |
| 31 | tinyxmlparser.o \ |
| 32 | tinyxmlerror.o |
| 33 | |
| 34 | } |
| 35 | |
| 36 | do_install() { |
| 37 | install -d ${D}${libdir} |
| 38 | install -m 0755 ${S}/libtinyxml.so.${PV} ${D}${libdir} |
| 39 | ln -sf libtinyxml.so.${PV} ${D}${libdir}/libtinyxml.so |
| 40 | |
| 41 | install -d ${D}${includedir} |
| 42 | install -m 0644 ${S}/tinyxml.h ${D}${includedir} |
| 43 | } |
| 44 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 45 | BBCLASSEXTEND = "native" |