wok view mbedtls/receipt @ rev 20641

Add SSL support to retawq (needed by man to browse linux.die.net)
author Lucas Levrel <llevrel@yahoo.fr>
date Fri Jan 11 09:19:11 2019 +0100 (9 months ago)
parents
children
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 compile_rules() {
15 sed \
16 -e 's|//\(#define MBEDTLS_THREADING_C\)|\1|' \
17 -e 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' \
18 -i include/mbedtls/config.h
19 sed -i 's|<time.h>|"platform.h"|' include/mbedtls/ssl.h
21 LDFLAGS="$LDFLAGS -I../include " \
22 make SHARED=1 no_test &&
23 make DESTDIR=$install/usr install
24 }
26 genpkg_rules() {
27 mkdir -p $fs/usr/lib/
28 cp -a $install/usr/bin/ $fs/usr/
29 cp -a $install/usr/lib/*.so* $fs/usr/lib/
30 }