diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2017-03-06 08:25:54 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-06-30 21:43:57 +0200 |
commit | 0dcd3213ce45ffe7c461922d38f60246d882f058 (patch) | |
tree | bf05c619d5887ef073f5e3f777133e94078d9837 /recipes-support/libcryptopp/libcryptopp_5.6.4.bb | |
parent | 081c48a19c473ad9b55e3efc8b4923714ed24cf4 (diff) |
libcryptopp: update to 5.6.4
- License has changed
- For target builds a versioned shared object is now created
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'recipes-support/libcryptopp/libcryptopp_5.6.4.bb')
-rw-r--r-- | recipes-support/libcryptopp/libcryptopp_5.6.4.bb | 48 |
1 files changed, 48 insertions, 0 deletions
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 \ +" |