wok-next view mbedtls/receipt @ rev 20441

linux, linux-dev: fix mess with i386|i486, update 32bit config
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Feb 24 05:41:11 2018 +0200 (2018-02-24)
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 }