2014-10-06 19:34:57 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# botan
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2024-04-07 19:09:36 +02:00
|
|
|
BOTAN_VERSION = 3.3.0
|
2019-07-17 16:24:40 +02:00
|
|
|
BOTAN_SOURCE = Botan-$(BOTAN_VERSION).tar.xz
|
2016-07-11 22:18:42 +02:00
|
|
|
BOTAN_SITE = http://botan.randombit.net/releases
|
2017-03-30 15:43:39 +02:00
|
|
|
BOTAN_LICENSE = BSD-2-Clause
|
2018-08-19 01:30:49 +02:00
|
|
|
BOTAN_LICENSE_FILES = license.txt
|
package: switch to _CPE_ID_VALID
Now that we document _CPE_ID_VALID, and that it shall be used instead of
setting a default value to one of the other _CPE_ID_* variables, change
all of the existing packages to use it, to avoid any error when we later
extend check-package to validate the sanity ofthe _CPE_ID_* variables.
Mechanical change done within the reference container, running the new
check in check-package, to report the CPE_ID errors:
$ make check-package 2>/dev/null \
|awk '{
split($(1), a, ":"); fname = a[1]
split($(2), a, "'\''"); val = a[2]
new_var = $(8); gsub("_CPE_ID_.*", "_CPE_ID_VALID", new_var)
printf("%s %s %s %s\n", fname, $(8), val, new_var)
}' \
|while read fname var val new_var; do
sed -r -i -e "s/${var}[[:space:]]*=[[:space:]]*${val}/${new_var} = YES/" "${fname}"
done
$ git diff -I'CPE_ID_(VENDOR|VALID)'
[empty]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-02-10 22:24:58 +01:00
|
|
|
BOTAN_CPE_ID_VALID = YES
|
2014-10-06 19:34:57 +02:00
|
|
|
|
|
|
|
BOTAN_INSTALL_STAGING = YES
|
|
|
|
|
2022-11-04 11:16:39 +01:00
|
|
|
BOTAN_DEPENDENCIES = host-python3
|
2014-10-06 19:34:57 +02:00
|
|
|
BOTAN_CONF_OPTS = \
|
|
|
|
--cpu=$(BR2_ARCH) \
|
2022-04-18 11:19:09 +02:00
|
|
|
--disable-cc-tests \
|
2014-10-06 19:34:57 +02:00
|
|
|
--os=linux \
|
|
|
|
--cc=gcc \
|
2015-04-10 17:55:23 +02:00
|
|
|
--cc-bin="$(TARGET_CXX)" \
|
2018-10-11 22:01:12 +02:00
|
|
|
--prefix=/usr \
|
|
|
|
--without-documentation
|
2014-10-06 19:34:57 +02:00
|
|
|
|
2019-02-15 23:01:10 +01:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
2021-02-19 20:38:24 +01:00
|
|
|
BOTAN_CONF_OPTS += --extra-libs=atomic
|
2019-02-15 23:01:10 +01:00
|
|
|
endif
|
|
|
|
|
2018-08-19 01:30:49 +02:00
|
|
|
ifeq ($(BR2_SHARED_LIBS),y)
|
|
|
|
BOTAN_CONF_OPTS += \
|
|
|
|
--disable-static-library \
|
|
|
|
--enable-shared-library
|
|
|
|
else ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
BOTAN_CONF_OPTS += \
|
|
|
|
--disable-shared-library \
|
|
|
|
--enable-static-library \
|
|
|
|
--no-autoload
|
|
|
|
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
|
|
|
BOTAN_CONF_OPTS += \
|
|
|
|
--enable-shared-library \
|
|
|
|
--enable-static-library
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_SSP),y)
|
|
|
|
BOTAN_CONF_OPTS += --with-stack-protector
|
|
|
|
else
|
|
|
|
BOTAN_CONF_OPTS += --without-stack-protector
|
2014-10-06 19:34:57 +02:00
|
|
|
endif
|
|
|
|
|
2024-03-05 13:52:56 +01:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS_NPTL),y)
|
|
|
|
BOTAN_CONF_OPTS += --with-os-feature=threads
|
|
|
|
else
|
|
|
|
BOTAN_CONF_OPTS += --without-os-feature=threads
|
|
|
|
endif
|
|
|
|
|
2018-09-11 20:54:36 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
2024-02-13 22:00:51 +01:00
|
|
|
BOTAN_CONF_OPTS += --without-os-feature=explicit_bzero,getauxval,getentropy
|
2018-09-11 20:54:36 +02:00
|
|
|
endif
|
|
|
|
|
2021-09-14 15:50:57 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_BOOST_FILESYSTEM)$(BR2_PACKAGE_BOOST_SYSTEM),yy)
|
2018-08-19 01:30:50 +02:00
|
|
|
BOTAN_DEPENDENCIES += boost
|
|
|
|
BOTAN_CONF_OPTS += --with-boost
|
|
|
|
endif
|
|
|
|
|
2014-10-06 19:34:57 +02:00
|
|
|
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
|
|
|
|
|
2018-08-19 01:30:51 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_SQLITE),y)
|
|
|
|
BOTAN_DEPENDENCIES += sqlite
|
|
|
|
BOTAN_CONF_OPTS += --with-sqlite
|
|
|
|
endif
|
|
|
|
|
2023-12-27 12:30:45 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_TROUSERS),y)
|
|
|
|
BOTAN_DEPENDENCIES += trousers
|
|
|
|
BOTAN_CONF_OPTS += --with-tpm
|
|
|
|
endif
|
|
|
|
|
2018-08-19 01:30:52 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_XZ),y)
|
|
|
|
BOTAN_DEPENDENCIES += xz
|
|
|
|
BOTAN_CONF_OPTS += --with-lzma
|
|
|
|
endif
|
|
|
|
|
2014-10-06 19:34:57 +02:00
|
|
|
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
|
|
|
|
|
2018-08-26 13:29:59 +02:00
|
|
|
ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),)
|
2017-06-06 16:29:11 +02:00
|
|
|
BOTAN_CONF_OPTS += --disable-altivec
|
|
|
|
endif
|
|
|
|
|
2018-09-07 21:17:36 +02:00
|
|
|
ifeq ($(BR2_ARM_CPU_HAS_NEON),)
|
|
|
|
BOTAN_CONF_OPTS += --disable-neon
|
|
|
|
endif
|
|
|
|
|
2024-01-06 14:26:08 +01:00
|
|
|
ifeq ($(BR2_SOFT_FLOAT),y)
|
|
|
|
BOTAN_CONF_OPTS += --disable-neon
|
|
|
|
endif
|
|
|
|
|
2014-10-06 19:34:57 +02:00
|
|
|
define BOTAN_CONFIGURE_CMDS
|
2016-10-17 18:05:54 +02:00
|
|
|
(cd $(@D); $(TARGET_MAKE_ENV) ./configure.py $(BOTAN_CONF_OPTS))
|
2014-10-06 19:34:57 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define BOTAN_BUILD_CMDS
|
2018-09-16 11:49:55 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) AR="$(TARGET_AR)"
|
2014-10-06 19:34:57 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define BOTAN_INSTALL_STAGING_CMDS
|
2018-11-23 15:27:39 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(STAGING_DIR)" install
|
2014-10-06 19:34:57 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define BOTAN_INSTALL_TARGET_CMDS
|
2018-11-23 15:27:39 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install
|
2014-10-06 19:34:57 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|