mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 16:27:27 +00:00
6bff9188c7
Signed-off-by: Khem Raj <raj.khem@gmail.com>
53 lines
1.3 KiB
BlitzBasic
53 lines
1.3 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=573e74513ae3057b04757df65b537de0"
|
|
SECTION = "libs"
|
|
|
|
SRC_URI = "https://botan.randombit.net/releases/Botan-${PV}.tar.xz"
|
|
SRC_URI[sha256sum] = "67e8dae1ca2468d90de4e601c87d5f31ff492b38e8ab8bcbd02ddf7104ed8a9f"
|
|
|
|
S = "${WORKDIR}/Botan-${PV}"
|
|
|
|
inherit python3native siteinfo lib_package
|
|
|
|
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-endian=${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', 'little', 'big', d)} \
|
|
${@bb.utils.contains("TUNE_FEATURES","neon","","--disable-neon",d)} \
|
|
--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() {
|
|
oe_runmake
|
|
}
|
|
do_install() {
|
|
oe_runmake DESTDIR=${D} install
|
|
sed -i -e 's|${WORKDIR}|<scrubbed>|g' ${D}${includedir}/botan-3/botan/build.h
|
|
}
|
|
|
|
PACKAGES += "${PN}-python3"
|
|
|
|
FILES:${PN}-python3 = "${libdir}/python3"
|
|
|
|
RDEPENDS:${PN}-python3 += "python3"
|
|
|
|
COMPATIBLE_HOST:riscv32 = "null"
|