2014-10-06 17:34:57 +00:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# botan
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2024-04-07 17:09:36 +00:00
|
|
|
BOTAN_VERSION = 3.3.0
|
2019-07-17 14:24:40 +00:00
|
|
|
BOTAN_SOURCE = Botan-$(BOTAN_VERSION).tar.xz
|
2016-07-11 20:18:42 +00:00
|
|
|
BOTAN_SITE = http://botan.randombit.net/releases
|
2017-03-30 13:43:39 +00:00
|
|
|
BOTAN_LICENSE = BSD-2-Clause
|
2018-08-18 23:30:49 +00: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 21:24:58 +00:00
|
|
|
BOTAN_CPE_ID_VALID = YES
|
2014-10-06 17:34:57 +00:00
|
|
|
|
|
|
|
BOTAN_INSTALL_STAGING = YES
|
|
|
|
|
2022-11-04 10:16:39 +00:00
|
|
|
BOTAN_DEPENDENCIES = host-python3
|
2014-10-06 17:34:57 +00:00
|
|
|
BOTAN_CONF_OPTS = \
|
|
|
|
--cpu=$(BR2_ARCH) \
|
2022-04-18 09:19:09 +00:00
|
|
|
--disable-cc-tests \
|
2014-10-06 17:34:57 +00:00
|
|
|
--os=linux \
|
|
|
|
--cc=gcc \
|
2015-04-10 15:55:23 +00:00
|
|
|
--cc-bin="$(TARGET_CXX)" \
|
2018-10-11 20:01:12 +00:00
|
|
|
--prefix=/usr \
|
|
|
|
--without-documentation
|
2014-10-06 17:34:57 +00:00
|
|
|
|
2019-02-15 22:01:10 +00:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
2021-02-19 19:38:24 +00:00
|
|
|
BOTAN_CONF_OPTS += --extra-libs=atomic
|
2019-02-15 22:01:10 +00:00
|
|
|
endif
|
|
|
|
|
2018-08-18 23:30:49 +00: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 17:34:57 +00:00
|
|
|
endif
|
|
|
|
|
2024-03-05 12:52:56 +00: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 18:54:36 +00:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
2024-02-13 21:00:51 +00:00
|
|
|
BOTAN_CONF_OPTS += --without-os-feature=explicit_bzero,getauxval,getentropy
|
2018-09-11 18:54:36 +00:00
|
|
|
endif
|
|
|
|
|
2021-09-14 13:50:57 +00:00
|
|
|
ifeq ($(BR2_PACKAGE_BOOST_FILESYSTEM)$(BR2_PACKAGE_BOOST_SYSTEM),yy)
|
2018-08-18 23:30:50 +00:00
|
|
|
BOTAN_DEPENDENCIES += boost
|
|
|
|
BOTAN_CONF_OPTS += --with-boost
|
|
|
|
endif
|
|
|
|
|
2014-10-06 17:34:57 +00:00
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
2015-03-31 07:21:57 +00:00
|
|
|
BOTAN_DEPENDENCIES += bzip2
|
|
|
|
BOTAN_CONF_OPTS += --with-bzip2
|
2014-10-06 17:34:57 +00:00
|
|
|
endif
|
|
|
|
|
2018-08-18 23:30:51 +00:00
|
|
|
ifeq ($(BR2_PACKAGE_SQLITE),y)
|
|
|
|
BOTAN_DEPENDENCIES += sqlite
|
|
|
|
BOTAN_CONF_OPTS += --with-sqlite
|
|
|
|
endif
|
|
|
|
|
2023-12-27 11:30:45 +00:00
|
|
|
ifeq ($(BR2_PACKAGE_TROUSERS),y)
|
|
|
|
BOTAN_DEPENDENCIES += trousers
|
|
|
|
BOTAN_CONF_OPTS += --with-tpm
|
|
|
|
endif
|
|
|
|
|
2018-08-18 23:30:52 +00:00
|
|
|
ifeq ($(BR2_PACKAGE_XZ),y)
|
|
|
|
BOTAN_DEPENDENCIES += xz
|
|
|
|
BOTAN_CONF_OPTS += --with-lzma
|
|
|
|
endif
|
|
|
|
|
2014-10-06 17:34:57 +00:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
2015-03-31 07:21:57 +00:00
|
|
|
BOTAN_DEPENDENCIES += zlib
|
|
|
|
BOTAN_CONF_OPTS += --with-zlib
|
2014-10-06 17:34:57 +00:00
|
|
|
endif
|
|
|
|
|
2018-08-26 11:29:59 +00:00
|
|
|
ifeq ($(BR2_POWERPC_CPU_HAS_ALTIVEC),)
|
2017-06-06 14:29:11 +00:00
|
|
|
BOTAN_CONF_OPTS += --disable-altivec
|
|
|
|
endif
|
|
|
|
|
2018-09-07 19:17:36 +00:00
|
|
|
ifeq ($(BR2_ARM_CPU_HAS_NEON),)
|
|
|
|
BOTAN_CONF_OPTS += --disable-neon
|
|
|
|
endif
|
|
|
|
|
2024-01-06 13:26:08 +00:00
|
|
|
ifeq ($(BR2_SOFT_FLOAT),y)
|
|
|
|
BOTAN_CONF_OPTS += --disable-neon
|
|
|
|
endif
|
|
|
|
|
2014-10-06 17:34:57 +00:00
|
|
|
define BOTAN_CONFIGURE_CMDS
|
2016-10-17 16:05:54 +00:00
|
|
|
(cd $(@D); $(TARGET_MAKE_ENV) ./configure.py $(BOTAN_CONF_OPTS))
|
2014-10-06 17:34:57 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define BOTAN_BUILD_CMDS
|
2018-09-16 09:49:55 +00:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) AR="$(TARGET_AR)"
|
2014-10-06 17:34:57 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define BOTAN_INSTALL_STAGING_CMDS
|
2018-11-23 14:27:39 +00:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(STAGING_DIR)" install
|
2014-10-06 17:34:57 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define BOTAN_INSTALL_TARGET_CMDS
|
2018-11-23 14:27:39 +00:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install
|
2014-10-06 17:34:57 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|