wok-next view mbedtls/receipt @ rev 20992
eduke32: simplify bdeps, fix build for i486
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Oct 04 11:45:29 2018 +0300 (2018-10-04) |
parents | |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mbedtls"
4 VERSION="2.6.0"
5 CATEGORY="security"
6 SHORT_DESC="Portable cryptographic and SSL/TLS library (ex polarssl)"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="Apache"
9 WEB_SITE="https://tls.mbed.org/"
11 TARBALL="$PACKAGE-$VERSION-gpl.tgz"
12 WGET_URL="https://tls.mbed.org/download/$TARBALL"
14 SPLIT="mbedtls-dev"
16 compile_rules() {
17 sed -i -e 's|//\(#define MBEDTLS_THREADING_C\)|\1|' \
18 -e 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' \
19 include/mbedtls/config.h
20 sed -i 's|<time.h>|"platform.h"|' include/mbedtls/ssl.h
22 LDFLAGS="$LDFLAGS -I../include " \
23 make SHARED=1 no_test &&
24 make DESTDIR=$install/usr install
25 }
27 genpkg_rules() {
28 case $PACKAGE in
29 mbedtls) copy @std;;
30 *-dev) copy @dev;;
31 esac
32 }