2014-10-06 19:34:57 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# botan
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-07-11 22:18:42 +02:00
|
|
|
BOTAN_VERSION = 1.10.13
|
2014-10-06 19:34:57 +02:00
|
|
|
BOTAN_SOURCE = Botan-$(BOTAN_VERSION).tgz
|
2016-07-11 22:18:42 +02:00
|
|
|
BOTAN_SITE = http://botan.randombit.net/releases
|
2014-10-06 19:34:57 +02:00
|
|
|
BOTAN_LICENSE = BSD-2c
|
|
|
|
BOTAN_LICENSE_FILES = doc/license.txt
|
|
|
|
|
|
|
|
BOTAN_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
BOTAN_CONF_OPTS = \
|
|
|
|
--cpu=$(BR2_ARCH) \
|
|
|
|
--os=linux \
|
|
|
|
--cc=gcc \
|
2015-04-10 17:55:23 +02:00
|
|
|
--cc-bin="$(TARGET_CXX)" \
|
|
|
|
--prefix=/usr
|
2014-10-06 19:34:57 +02:00
|
|
|
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
BOTAN_CONF_OPTS += --disable-shared --no-autoload
|
2014-10-06 19:34:57 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
BOTAN_DEPENDENCIES += bzip2
|
|
|
|
BOTAN_CONF_OPTS += --with-bzip2
|
2014-10-06 19:34:57 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GMP),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
BOTAN_DEPENDENCIES += gmp
|
|
|
|
BOTAN_CONF_OPTS += --with-gnump
|
2014-10-06 19:34:57 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
BOTAN_DEPENDENCIES += openssl
|
|
|
|
BOTAN_CONF_OPTS += --with-openssl
|
2014-10-06 19:34:57 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
BOTAN_DEPENDENCIES += zlib
|
|
|
|
BOTAN_CONF_OPTS += --with-zlib
|
2014-10-06 19:34:57 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
define BOTAN_CONFIGURE_CMDS
|
|
|
|
(cd $(@D); ./configure.py $(BOTAN_CONF_OPTS))
|
|
|
|
endef
|
|
|
|
|
|
|
|
define BOTAN_BUILD_CMDS
|
|
|
|
$(MAKE) -C $(@D) AR="$(TARGET_AR) crs"
|
|
|
|
endef
|
|
|
|
|
|
|
|
define BOTAN_INSTALL_STAGING_CMDS
|
|
|
|
$(MAKE) -C $(@D) DESTDIR="$(STAGING_DIR)/usr" install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define BOTAN_INSTALL_TARGET_CMDS
|
|
|
|
$(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)/usr" install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|