1 ################################################################################
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
)
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
28 define HOST_CRYPTOPP_INSTALL_CMDS
29 $(MAKE
) -C
$(@D
) PREFIX
=$(HOST_DIR
)/usr
install
32 $(eval
$(host-generic-package
))