libglib2: bump to version 2.48.2
[buildroot-gz.git] / package / cryptopp / cryptopp.mk
blobdf07cf607fd3dea8a2c5d0c54454add50a9a3851
1 ################################################################################
3 # cryptopp
5 ################################################################################
7 CRYPTOPP_VERSION = 5.6.3
8 CRYPTOPP_SOURCE = cryptopp$(subst .,,$(CRYPTOPP_VERSION)).zip
9 CRYPTOPP_SITE = http://cryptopp.com/
10 # Upstream patch needed to fix the build with gcc < 4.5
11 CRYPTOPP_PATCH = https://github.com/weidai11/cryptopp/commit/f707b9ef1688d4429ca6239cf2dc236440974681.patch
12 CRYPTOPP_LICENSE = Boost-v1.0
13 CRYPTOPP_LICENSE_FILES = License.txt
14 CRYPTOPP_INSTALL_STAGING = YES
16 define HOST_CRYPTOPP_EXTRACT_CMDS
17 $(UNZIP) $(DL_DIR)/$(CRYPTOPP_SOURCE) -d $(@D)
18 endef
20 HOST_CRYPTOPP_MAKE_OPTS = \
21 $(HOST_CONFIGURE_OPTS) \
22 CXXFLAGS="$(HOST_CXXFLAGS) -fPIC"
24 define HOST_CRYPTOPP_BUILD_CMDS
25 $(MAKE) -C $(@D) $(HOST_CRYPTOPP_MAKE_OPTS) shared
26 endef
28 define HOST_CRYPTOPP_INSTALL_CMDS
29 $(MAKE) -C $(@D) PREFIX=$(HOST_DIR)/usr install
30 endef
32 $(eval $(host-generic-package))