2017-04-04 13:19:52 +02:00
|
|
|
# Description: Gömülü sistemler için şifreleme kütüphanesi (eskiden PolarSSL olarak bilinir).
|
2016-10-02 13:56:42 +02:00
|
|
|
# URL: https://tls.mbed.org
|
|
|
|
# Packager: milisarge
|
|
|
|
# Depends on:
|
|
|
|
|
|
|
|
name=mbedtls
|
|
|
|
version=2.3.0
|
|
|
|
release=1
|
|
|
|
|
|
|
|
source=(https://tls.mbed.org/download/mbedtls-$version-gpl.tgz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
|
|
|
sed -i 's|//\(#define MBEDTLS_THREADING_C\)|\1|' include/mbedtls/config.h
|
|
|
|
sed -i 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' include/mbedtls/config.h
|
|
|
|
|
|
|
|
# FS#49914 (2.3.0-2)
|
|
|
|
sed -i 's|<time.h>|"platform.h"|' include/mbedtls/ssl.h
|
|
|
|
LDFLAGS+=" -I../include " make SHARED=1 no_test
|
|
|
|
make SHARED=1 check
|
|
|
|
make DESTDIR=$PKG/usr install
|
|
|
|
}
|