1################################################################################ 2# 3# botan 4# 5################################################################################ 6 7BOTAN_VERSION = 2.18.2 8BOTAN_SOURCE = Botan-$(BOTAN_VERSION).tar.xz 9BOTAN_SITE = http://botan.randombit.net/releases 10BOTAN_LICENSE = BSD-2-Clause 11BOTAN_LICENSE_FILES = license.txt 12BOTAN_CPE_ID_VENDOR = botan_project 13 14BOTAN_INSTALL_STAGING = YES 15 16BOTAN_CONF_OPTS = \ 17 --cpu=$(BR2_ARCH) \ 18 --os=linux \ 19 --cc=gcc \ 20 --cc-bin="$(TARGET_CXX)" \ 21 --prefix=/usr \ 22 --without-documentation 23 24ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) 25BOTAN_CONF_OPTS += --extra-libs=atomic 26endif 27 28ifeq ($(BR2_SHARED_LIBS),y) 29BOTAN_CONF_OPTS += \ 30 --disable-static-library \ 31 --enable-shared-library 32else ifeq ($(BR2_STATIC_LIBS),y) 33BOTAN_CONF_OPTS += \ 34 --disable-shared-library \ 35 --enable-static-library \ 36 --no-autoload 37else ifeq ($(BR2_SHARED_STATIC_LIBS),y) 38BOTAN_CONF_OPTS += \ 39 --enable-shared-library \ 40 --enable-static-library 41endif 42 43ifeq ($(BR2_TOOLCHAIN_HAS_SSP),y) 44BOTAN_CONF_OPTS += --with-stack-protector 45else 46BOTAN_CONF_OPTS += --without-stack-protector 47endif 48 49ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y) 50BOTAN_CONF_OPTS += --without-os-feature=getauxval 51endif 52 53ifeq ($(BR2_PACKAGE_BOOST_FILESYSTEM)$(BR2_PACKAGE_BOOST_SYSTEM),yy) 54BOTAN_DEPENDENCIES += boost 55BOTAN_CONF_OPTS += --with-boost 56endif 57 58ifeq ($(BR2_PACKAGE_BZIP2),y) 59BOTAN_DEPENDENCIES += bzip2 60BOTAN_CONF_OPTS += --with-bzip2 61endif 62 63ifeq ($(BR2_PACKAGE_OPENSSL),y) 64BOTAN_DEPENDENCIES += openssl 65BOTAN_CONF_OPTS += --with-openssl 66endif 67 68ifeq ($(BR2_PACKAGE_SQLITE),y) 69BOTAN_DEPENDENCIES += sqlite 70BOTAN_CONF_OPTS += --with-sqlite 71endif 72 73ifeq ($(BR2_PACKAGE_XZ),y) 74BOTAN_DEPENDENCIES += xz 75BOTAN_CONF_OPTS += --with-lzma 76endif 77 78ifeq ($(BR2_PACKAGE_ZLIB),y) 79BOTAN_DEPENDENCIES += zlib 80BOTAN_CONF_OPTS += --with-zlib 81endif 82 83ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),) 84BOTAN_CONF_OPTS += --disable-altivec 85endif 86 87ifeq ($(BR2_ARM_CPU_HAS_NEON),) 88BOTAN_CONF_OPTS += --disable-neon 89endif 90 91define BOTAN_CONFIGURE_CMDS 92 (cd $(@D); $(TARGET_MAKE_ENV) ./configure.py $(BOTAN_CONF_OPTS)) 93endef 94 95define BOTAN_BUILD_CMDS 96 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) AR="$(TARGET_AR)" 97endef 98 99define BOTAN_INSTALL_STAGING_CMDS 100 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(STAGING_DIR)" install 101endef 102 103define BOTAN_INSTALL_TARGET_CMDS 104 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install 105endef 106 107$(eval $(generic-package)) 108