netsnmp: handle libnl dependency properly
[buildroot-gz.git] / package / cryptopp / cryptopp.mk
blob456876c4eefede54553fbef0b835399b1ee0d754
1 ################################################################################
3 # cryptopp
5 ################################################################################
7 CRYPTOPP_VERSION = 5.6.5
8 CRYPTOPP_SOURCE = cryptopp$(subst .,,$(CRYPTOPP_VERSION)).zip
9 CRYPTOPP_SITE = http://cryptopp.com/
10 CRYPTOPP_LICENSE = Boost-v1.0
11 CRYPTOPP_LICENSE_FILES = License.txt
12 CRYPTOPP_INSTALL_STAGING = YES
14 define HOST_CRYPTOPP_EXTRACT_CMDS
15 $(UNZIP) $(DL_DIR)/$(CRYPTOPP_SOURCE) -d $(@D)
16 endef
18 HOST_CRYPTOPP_MAKE_OPTS = \
19 $(HOST_CONFIGURE_OPTS) \
20 CXXFLAGS="$(HOST_CXXFLAGS) -fPIC"
22 define HOST_CRYPTOPP_BUILD_CMDS
23 $(HOST_MAKE_ENV) $(MAKE) -C $(@D) $(HOST_CRYPTOPP_MAKE_OPTS) shared
24 endef
26 define HOST_CRYPTOPP_INSTALL_CMDS
27 $(HOST_MAKE_ENV) $(MAKE) -C $(@D) PREFIX=$(HOST_DIR)/usr install
28 endef
30 $(eval $(host-generic-package))