forked from ports/contrib
mbedtls: clean up syntax
This commit is contained in:
parent
fa8171515f
commit
53b40d0ae6
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF33bboDWlzWQ0PHIcXajmKw4uQ6k1qljFsxikqduruFmtKbM/Ha2wQTGNC73mzxjYQKdWiTlToYbQyhbQWTeRhQg=
|
||||
SHA256 (Pkgfile) = 2e06a475a30d523d5ad265fffc37324242735e86da823c59a4611f7dc82e73cc
|
||||
RWSagIOpLGJF3wWwBZCtD1fPHd0JHW/gvPMoabc83r08Ra8GZnawYHIY0FPfWe+e4wo1vcgbRD8Mec4Pu0R6jyy8R6ksyx1fpwE=
|
||||
SHA256 (Pkgfile) = 1655f93f3ef14fa7ceddb49631d81f55b1616d105a6e3291ef428dbeb2541c8d
|
||||
SHA256 (.footprint) = f5f005ba6e9154f68bb4f11c57e65fc0bad2e8b45509bddb1555f75543b07534
|
||||
SHA256 (mbedtls-2.24.0.tar.gz) = b5a779b5f36d5fc4cba55faa410685f89128702423ad07b36c5665441a06a5f3
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Description: Cryptographic library for embedded systems
|
||||
# URL: https://tls.mbed.org/
|
||||
# Maintainer: Danny Rawlins, crux at romster dot me
|
||||
# Depends on: cmake
|
||||
# Depends on: cmake python3
|
||||
|
||||
name=mbedtls
|
||||
version=2.24.0
|
||||
@ -15,7 +15,7 @@ build() {
|
||||
sed -i 's|//\(#define MBEDTLS_THREADING_C\)|\1|' $name-$name-$version/include/mbedtls/config.h
|
||||
sed -i 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' $name-$name-$version/include/mbedtls/config.h
|
||||
|
||||
[[ -e /usr/bin/ninja ]] && PKGMK_MBEDTLS+='-G Ninja'
|
||||
[[ -e '/usr/bin/ninja' ]] && PKGMK_MBEDTLS+=' -G Ninja'
|
||||
|
||||
cmake -S $name-$name-$version -B build $PKGMK_MBEDTLS \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
@ -24,9 +24,9 @@ build() {
|
||||
-D ENABLE_ZLIB_SUPPORT=ON \
|
||||
-D USE_SHARED_MBEDTLS_LIBRARY=ON \
|
||||
-D INSTALL_MBEDTLS_HEADERS=ON \
|
||||
-D MBEDTLS_FATAL_WARNINGS=OFF \
|
||||
-D MBEDTLS_FATAL_WARNINGS=OFF \
|
||||
-Wno-dev
|
||||
|
||||
cmake --build build -v
|
||||
cmake --build build
|
||||
DESTDIR=$PKG cmake --install build
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user