665e13c85e
Since a while, the semantic of BR2_PREFER_STATIC_LIB has been changed from "prefer static libraries when possible" to "use only static libraries". The former semantic didn't make much sense, since the user had absolutely no control/idea of which package would use static libraries, and which packages would not. Therefore, for quite some time, we have been starting to enforce that BR2_PREFER_STATIC_LIB should really build everything with static libraries. As a consequence, this patch renames BR2_PREFER_STATIC_LIB to BR2_STATIC_LIBS, and adjust the Config.in option accordingly. This also helps preparing the addition of other options to select shared, shared+static or just static. Note that we have verified that this commit can be reproduced by simply doing a global rename of BR2_PREFER_STATIC_LIB to BR2_STATIC_LIBS plus adding BR2_PREFER_STATIC_LIB to Config.in.legacy. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
63 lines
1.3 KiB
Makefile
63 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# botan
|
|
#
|
|
################################################################################
|
|
|
|
BOTAN_VERSION = 1.10.8
|
|
BOTAN_SOURCE = Botan-$(BOTAN_VERSION).tgz
|
|
BOTAN_SITE = http://files.randombit.net/botan
|
|
BOTAN_LICENSE = BSD-2c
|
|
BOTAN_LICENSE_FILES = doc/license.txt
|
|
|
|
BOTAN_INSTALL_STAGING = YES
|
|
BOTAN_INSTALL_TARGET = YES
|
|
|
|
BOTAN_CONF_OPTS = \
|
|
--cpu=$(BR2_ARCH) \
|
|
--os=linux \
|
|
--cc=gcc \
|
|
--cc-bin="$(TARGET_CXX)"
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
BOTAN_CONF_OPTS += --disable-shared --no-autoload
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
|
BOTAN_DEPENDENCIES += bzip2
|
|
BOTAN_CONF_OPTS += --with-bzip2
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GMP),y)
|
|
BOTAN_DEPENDENCIES += gmp
|
|
BOTAN_CONF_OPTS += --with-gnump
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
BOTAN_DEPENDENCIES += openssl
|
|
BOTAN_CONF_OPTS += --with-openssl
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
BOTAN_DEPENDENCIES += zlib
|
|
BOTAN_CONF_OPTS += --with-zlib
|
|
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))
|