blob: 138df9f300cf6ca821a8c99ef5086e22ffe57dc2 [file] [log] [blame]
Patrick Williamsddad1a12017-02-23 20:36:32 -06001# (c) Copyright 2012 Hewlett-Packard Development Company, L.P.
Patrick Williamsb48b7b42016-08-17 15:04:38 -05002
3SUMMARY = "a simple, small, minimal, C++ XML parser"
4HOMEPAGE = "http://www.sourceforge.net/projects/tinyxml"
5LICENSE = "Zlib"
6LIC_FILES_CHKSUM = "file://readme.txt;md5=f8f366f3370dda889f60faa7db162cf4"
7SECTION = "libs"
8
9PR = "r5"
10
11SRC_URI = "${SOURCEFORGE_MIRROR}/tinyxml/tinyxml_${@'${PV}'.replace('.', '_')}.tar.gz \
12 file://enforce-use-stl.patch \
13 file://entity-encoding.patch"
14SRC_URI[md5sum] = "c1b864c96804a10526540c664ade67f0"
15SRC_URI[sha256sum] = "15bdfdcec58a7da30adc87ac2b078e4417dbe5392f3afb719f9ba6d062645593"
16
17S = "${WORKDIR}/tinyxml"
18
19EXTRA_CXXFLAGS = "-I. -fPIC"
20
21do_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
36do_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 Bishop6e60e8b2018-02-01 10:27:11 -050045BBCLASSEXTEND = "native"