summaryrefslogtreecommitdiff
path: root/recipes-support/libcryptopp/libcryptopp_5.6.2.bb
blob: 25b1b69e876581b16b9161d6ac1b2b864865f4ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
DESCRIPTION = "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 = "PD"
LIC_FILES_CHKSUM = "file://License.txt;md5=15bb91b85c60bac932e0a3f550bad6a3"

BBCLASSEXTEND = "native nativesdk"

PR = "r1"

PVSHORT = "${@'${PV}'.replace('.','')}"
SRC_URI = "${SOURCEFORGE_MIRROR}/cryptopp/${PV}/cryptopp${PVSHORT}.zip \
	    file://makefile_fix_destdir.patch \
          "
SRC_URI[md5sum] = "7ed022585698df48e65ce9218f6c6a67"
SRC_URI[sha256sum] = "5cbfd2fcb4a6b3aab35902e2e0f3b59d9171fee12b3fc2b363e1801dfec53574"

#S = "${WORKDIR}/libcryptopp-${PV}"
S = "${WORKDIR}"

inherit autotools pkgconfig

EXTRA_OECONF = "--libdir=${base_libdir}"

do_compile() {
	sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile
	export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC"
	oe_runmake -f GNUmakefile
	oe_runmake libcryptopp.so
}