wok-next view mbedtls/receipt @ rev 21080

Update tiff (4.0.10): libs -> into libtiff, apps -> into tiff
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 24 02:07:02 2018 +0200 (2018-12-24)
parents 0e59608556bf
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 SPLIT="$PACKAGE-dev"
16 compile_rules() {
17 sed \
18 -e 's|//\(#define MBEDTLS_THREADING_C\)|\1|' \
19 -e 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' \
20 -i include/mbedtls/config.h
21 sed -i 's|<time.h>|"platform.h"|' include/mbedtls/ssl.h
23 LDFLAGS="$LDFLAGS -I../include " \
24 make SHARED=1 no_test &&
25 make DESTDIR=$install/usr install
26 }
28 genpkg_rules() {
29 case $PACKAGE in
30 mbedtls) copy @std;;
31 *-dev) copy @dev;;
32 esac
33 }