meta-openembedded/meta-oe/recipes-support/libtinyxml/libtinyxml_2.6.2.bb
Alexander Kanavin fc78d37ff0
meta-openembedded/all: adapt to UNPACKDIR changes
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.

I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-25 06:44:52 -07:00

48 lines
1.4 KiB
BlitzBasic

# (c) Copyright 2012 Hewlett-Packard Development Company, L.P.
SUMMARY = "a simple, small, minimal, C++ XML parser"
HOMEPAGE = "http://www.sourceforge.net/projects/tinyxml"
LICENSE = "Zlib"
LIC_FILES_CHKSUM = "file://readme.txt;md5=f8f366f3370dda889f60faa7db162cf4"
SECTION = "libs"
CVE_PRODUCT = "tinyxml"
SRC_URI = "${SOURCEFORGE_MIRROR}/tinyxml/tinyxml_${@'${PV}'.replace('.', '_')}.tar.gz \
file://enforce-use-stl.patch \
file://entity-encoding.patch \
file://CVE-2021-42260.patch \
file://CVE-2023-34194.patch \
"
SRC_URI[sha256sum] = "15bdfdcec58a7da30adc87ac2b078e4417dbe5392f3afb719f9ba6d062645593"
S = "${UNPACKDIR}/tinyxml"
EXTRA_CXXFLAGS = "-I. -fPIC"
do_compile() {
${CXX} ${CXXFLAGS} ${EXTRA_CXXFLAGS} -c -o tinyxml.o tinyxml.cpp
${CXX} ${CXXFLAGS} ${EXTRA_CXXFLAGS} -c -o tinyxmlerror.o tinyxmlerror.cpp
${CXX} ${CXXFLAGS} ${EXTRA_CXXFLAGS} -c -o tinyxmlparser.o tinyxmlparser.cpp
${CXX} ${CXXFLAGS} \
-shared \
-Wl,-soname,libtinyxml.so.${PV} \
-o libtinyxml.so.${PV} \
${LDFLAGS} \
tinyxml.o \
tinyxmlparser.o \
tinyxmlerror.o
}
do_install() {
install -d ${D}${libdir}
install -m 0755 ${S}/libtinyxml.so.${PV} ${D}${libdir}
ln -sf libtinyxml.so.${PV} ${D}${libdir}/libtinyxml.so
install -d ${D}${includedir}
install -m 0644 ${S}/tinyxml.h ${D}${includedir}
}
BBCLASSEXTEND = "native"