milis/talimatname/genel/m/mbedtls/talimat

23 lines
623 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: 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
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler:
2016-10-02 13:56:42 +02:00
2017-10-28 14:10:23 +02:00
isim=mbedtls
surum=2.3.0
devir=1
2016-10-02 13:56:42 +02:00
2017-10-28 14:10:23 +02:00
kaynak=(https://tls.mbed.org/download/mbedtls-$surum-gpl.tgz)
2016-10-02 13:56:42 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd $isim-$surum
2016-10-02 13:56:42 +02:00
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
}