mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
License-Update: Copyright year updated to 2026 Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
68 lines
1.9 KiB
BlitzBasic
68 lines
1.9 KiB
BlitzBasic
SUMMARY = "Crypto and TLS for C++11"
|
|
HOMEPAGE = "https://botan.randombit.net"
|
|
LICENSE = "BSD-2-Clause"
|
|
LIC_FILES_CHKSUM = "file://license.txt;md5=ed13158b71912fb101b89310b23b921f"
|
|
SECTION = "libs"
|
|
|
|
SRC_URI = "https://botan.randombit.net/releases/Botan-${PV}.tar.xz \
|
|
file://run-ptest"
|
|
SRC_URI[sha256sum] = "e8dd48556818da2c03a9a30932ad05db9e50b12fec90809301ecc64ea51bd11e"
|
|
|
|
S = "${UNPACKDIR}/Botan-${PV}"
|
|
|
|
inherit python3native siteinfo lib_package ptest
|
|
|
|
CPU ?= "${TARGET_ARCH}"
|
|
CPU:x86 = "x86_32"
|
|
CPU:armv7a = "armv7"
|
|
CPU:armv7ve = "armv7"
|
|
|
|
do_configure() {
|
|
python3 ${S}/configure.py \
|
|
--prefix="${exec_prefix}" \
|
|
--libdir="${libdir}" \
|
|
--cpu="${CPU}" \
|
|
--cc-bin="${CXX}" \
|
|
--cxxflags="${CXXFLAGS}" \
|
|
--ldflags="${LDFLAGS}" \
|
|
--with-sysroot-dir=${STAGING_DIR_HOST} \
|
|
--with-build-dir="${B}" \
|
|
--optimize-for-size \
|
|
--with-stack-protector \
|
|
--enable-shared-library \
|
|
--with-python-versions=3 \
|
|
${EXTRA_OECONF}
|
|
}
|
|
|
|
do_compile() {
|
|
sed -i -e 's|${WORKDIR}|<scrubbed>|g' ${B}/build/target_info.h
|
|
oe_runmake
|
|
}
|
|
|
|
do_install() {
|
|
oe_runmake DESTDIR=${D} install
|
|
sed -i -e 's|${WORKDIR}|<scrubbed>|g' ${D}${includedir}/botan-3/botan/build.h
|
|
|
|
# Add botan binary and test tool
|
|
install -d ${D}${bindir}
|
|
install -d ${D}${datadir}/${PN}/tests/data
|
|
install -m 0755 ${B}/botan-test ${D}${bindir}
|
|
cp -R --no-dereference --preserve=mode,links -v ${B}/src/tests/data/* ${D}${datadir}/${PN}/tests/data/
|
|
}
|
|
|
|
PACKAGES += "${PN}-test ${PN}-python3"
|
|
|
|
FILES:${PN}-python3 = "${libdir}/python3"
|
|
|
|
RDEPENDS:${PN}-python3 += "python3"
|
|
RDEPENDS:${PN}-bin += "${PN}"
|
|
RDEPENDS:${PN}-test += "${PN} ca-certificates"
|
|
RDEPENDS:${PN}-ptest += "${PN}-test"
|
|
FILES:${PN}:remove = "${bindir}/*"
|
|
FILES:${PN}-bin:remove = "${bindir}/*"
|
|
FILES:${PN}-bin = "${bindir}/botan"
|
|
FILES:${PN}-test = "${bindir}/botan-test ${datadir}/${PN}/tests/data"
|
|
COMPATIBLE_HOST:riscv32 = "null"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|