From 0dcd3213ce45ffe7c461922d38f60246d882f058 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 6 Mar 2017 08:25:54 +0100 Subject: libcryptopp: update to 5.6.4 - License has changed - For target builds a versioned shared object is now created Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- recipes-support/libcryptopp/libcryptopp_5.6.4.bb | 48 ++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 recipes-support/libcryptopp/libcryptopp_5.6.4.bb (limited to 'recipes-support/libcryptopp/libcryptopp_5.6.4.bb') diff --git a/recipes-support/libcryptopp/libcryptopp_5.6.4.bb b/recipes-support/libcryptopp/libcryptopp_5.6.4.bb new file mode 100644 index 0000000..89514e6 --- /dev/null +++ b/recipes-support/libcryptopp/libcryptopp_5.6.4.bb @@ -0,0 +1,48 @@ +SUMMARY = "A free C++ class library of cryptographic schemes" +HOMEPAGE = "http://www.cryptopp.com/wiki/Main_Page" +BUGTRACKER = "http://sourceforge.net/apps/trac/cryptopp/" +SECTION = "libs" + +LICENSE = "BSL-1.0" +LIC_FILES_CHKSUM = "file://License.txt;md5=deb6d182b0f7f8a866c42941b9f014c4" + +BBCLASSEXTEND = "native nativesdk" + +PR = "r1" + +PVSHORT = "${@'${PV}'.replace('.','')}" +SRC_URI = " \ + https://sourceforge.net/projects/cryptopp/files/cryptopp/5.6.4/cryptopp564.zip;subdir=libcryptopp-${PV} \ + file://0001-Fix-cross-compilation.patch \ +" +SRC_URI[md5sum] = "4ee7e5cdd4a45a14756c169eaf2a77fc" +SRC_URI[sha256sum] = "be430377b05c15971d5ccb6e44b4d95470f561024ed6d701fe3da3a188c84ad7" + +inherit autotools-brokensep pkgconfig + +PACKAGES_prepend = "${PN}-test " + +EXTRA_OECONF = "--libdir=${base_libdir}" +TARGET_CC_ARCH += "${LDFLAGS}" +export PREFIX="${prefix}" + +#we want tegrarcm binary to run on a 32-bit architecture, on x86_64 this requires the 32-bit compatibility libs +EXTRA_OEMAKE_class-native = "CC='${CC} -m32' CXX='${CXX} -m32'" + +do_compile() { + sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile + export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC" + oe_runmake all libcryptopp.so +} + +# do not provide the shared object file, so we force to link statically for host tools +do_compile_class-native() { + sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile + export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC" + oe_runmake all +} + +FILES_${PN}-test = " \ + ${bindir} \ + ${datadir}/cryptopp \ +" -- cgit v1.2.3