615a04b2c3
Signed-off-by: Julian Scheel <julian@jusst.de> [Thomas: - put HOST_CRYPTOPP_EXTRACT_CMDS earlier in the file, since it's what gets executed first. - fix typo in the name of HOST_CRYPTOPP_MAKE_OPTS - pass -fPIC in CXXFLAGS, since we're building a shared library - just call "make shared" for the build and "make install" for the installation.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
31 lines
793 B
Makefile
31 lines
793 B
Makefile
################################################################################
|
|
#
|
|
# cryptopp
|
|
#
|
|
################################################################################
|
|
|
|
CRYPTOPP_VERSION = 5.6.3
|
|
CRYPTOPP_SOURCE = cryptopp$(subst .,,$(CRYPTOPP_VERSION)).zip
|
|
CRYPTOPP_SITE = http://cryptopp.com/
|
|
CRYPTOPP_LICENSE = Boost-v1.0
|
|
CRYPTOPP_LICENSE_FILES = License.txt
|
|
CRYPTOPP_INSTALL_STAGING = YES
|
|
|
|
define HOST_CRYPTOPP_EXTRACT_CMDS
|
|
$(UNZIP) $(DL_DIR)/$(CRYPTOPP_SOURCE) -d $(@D)
|
|
endef
|
|
|
|
HOST_CRYPTOPP_MAKE_OPTS = \
|
|
$(HOST_CONFIGURE_OPTS) \
|
|
CXXFLAGS="$(HOST_CXXFLAGS) -fPIC"
|
|
|
|
define HOST_CRYPTOPP_BUILD_CMDS
|
|
$(MAKE) -C $(@D) $(HOST_CRYPTOPP_MAKE_OPTS) shared
|
|
endef
|
|
|
|
define HOST_CRYPTOPP_INSTALL_CMDS
|
|
$(MAKE) -C $(@D) PREFIX=$(HOST_DIR)/usr install
|
|
endef
|
|
|
|
$(eval $(host-generic-package))
|