2016-03-17 16:03:55 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# cryptopp
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-04-09 23:03:29 +02:00
|
|
|
CRYPTOPP_VERSION = 7.0.0
|
2016-03-17 16:03:55 +01:00
|
|
|
CRYPTOPP_SOURCE = cryptopp$(subst .,,$(CRYPTOPP_VERSION)).zip
|
2018-12-12 03:55:11 +01:00
|
|
|
CRYPTOPP_SITE = https://cryptopp.com
|
2017-03-30 15:43:46 +02:00
|
|
|
CRYPTOPP_LICENSE = BSL-1.0
|
2016-03-17 16:03:55 +01:00
|
|
|
CRYPTOPP_LICENSE_FILES = License.txt
|
|
|
|
CRYPTOPP_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
define HOST_CRYPTOPP_EXTRACT_CMDS
|
2018-04-02 20:36:23 +02:00
|
|
|
$(UNZIP) $(HOST_CRYPTOPP_DL_DIR)/$(CRYPTOPP_SOURCE) -d $(@D)
|
2016-03-17 16:03:55 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
HOST_CRYPTOPP_MAKE_OPTS = \
|
|
|
|
$(HOST_CONFIGURE_OPTS) \
|
|
|
|
CXXFLAGS="$(HOST_CXXFLAGS) -fPIC"
|
|
|
|
|
|
|
|
define HOST_CRYPTOPP_BUILD_CMDS
|
2016-10-28 15:18:19 +02:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) $(HOST_CRYPTOPP_MAKE_OPTS) shared
|
2016-03-17 16:03:55 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_CRYPTOPP_INSTALL_CMDS
|
2017-07-05 13:14:18 +02:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=$(HOST_DIR) install
|
2016-03-17 16:03:55 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(host-generic-package))
|