forked from ports/contrib
22 lines
626 B
Plaintext
22 lines
626 B
Plaintext
# Description: Portable cryptographic and SSL/TLS library, aka polarssl.
|
|
# URL: https://tls.mbed.org/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
|
|
name=mbedtls
|
|
version=2.16.5
|
|
release=1
|
|
source=(https://tls.mbed.org/download/$name-$version-gpl.tgz)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
# enable flags for non-embedded systems
|
|
sed -i 's|//\(#define MBEDTLS_THREADING_C\)|\1|' include/mbedtls/config.h
|
|
sed -i 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' include/mbedtls/config.h
|
|
|
|
sed -i 's|<time.h>|"platform.h"|' include/mbedtls/ssl.h
|
|
|
|
LDFLAGS+=' -I../include ' make SHARED=1 no_test
|
|
make DESTDIR="$PKG/usr" install
|
|
}
|