2020-06-06 22:55:12 +10:00
|
|
|
# Description: Cryptographic library for embedded systems
|
2020-03-18 23:23:54 +11:00
|
|
|
# URL: https://tls.mbed.org/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2022-12-17 12:48:12 +00:00
|
|
|
# Depends on: python3-jsonschema python3-jinja2
|
2020-03-18 23:23:54 +11:00
|
|
|
|
|
|
|
name=mbedtls
|
2023-04-01 15:56:30 +02:00
|
|
|
version=3.4.0
|
2022-12-17 12:48:12 +00:00
|
|
|
release=1
|
2020-06-06 22:55:12 +10:00
|
|
|
source=(https://github.com/ARMmbed/mbedtls/archive/$name-$version.tar.gz)
|
2020-03-18 23:23:54 +11:00
|
|
|
|
|
|
|
build() {
|
2022-10-02 08:33:06 +02:00
|
|
|
cmake -S $name-$name-$version -B build -G Ninja \
|
2020-11-08 11:55:39 +00:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
2022-11-13 13:41:41 +00:00
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
2020-11-08 11:55:39 +00:00
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-06 23:58:19 +00:00
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-08 11:55:39 +00:00
|
|
|
-D ENABLE_ZLIB_SUPPORT=ON \
|
|
|
|
-D USE_SHARED_MBEDTLS_LIBRARY=ON \
|
|
|
|
-D INSTALL_MBEDTLS_HEADERS=ON \
|
2020-11-09 23:35:48 +11:00
|
|
|
-D MBEDTLS_FATAL_WARNINGS=OFF \
|
2020-11-08 11:55:39 +00:00
|
|
|
-Wno-dev
|
2020-03-18 23:23:54 +11:00
|
|
|
|
2020-11-09 23:35:48 +11:00
|
|
|
cmake --build build
|
2020-07-08 13:01:36 +00:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2020-03-18 23:23:54 +11:00
|
|
|
}
|