wok-next annotate mbedtls/receipt @ rev 21678

updated getmail (4.41.0 -> 5.14)
author Hans-G?nter Theisgen
date Mon Jun 29 13:44:08 2020 +0100 (2020-06-29)
parents 0e59608556bf
children
rev   line source
al@20397 1 # SliTaz package receipt v2.
al@20397 2
al@20397 3 PACKAGE="mbedtls"
al@20397 4 VERSION="2.6.0"
al@20397 5 CATEGORY="security"
al@20397 6 SHORT_DESC="Portable cryptographic and SSL/TLS library (ex polarssl)"
al@20397 7 MAINTAINER="al.bobylev@gmail.com"
al@20397 8 LICENSE="Apache"
al@20397 9 WEB_SITE="https://tls.mbed.org/"
al@20397 10
al@20397 11 TARBALL="$PACKAGE-$VERSION-gpl.tgz"
al@20397 12 WGET_URL="https://tls.mbed.org/download/$TARBALL"
al@20397 13
al@21020 14 SPLIT="$PACKAGE-dev"
al@20397 15
al@20397 16 compile_rules() {
al@21020 17 sed \
al@21020 18 -e 's|//\(#define MBEDTLS_THREADING_C\)|\1|' \
al@21020 19 -e 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' \
al@21020 20 -i include/mbedtls/config.h
al@20397 21 sed -i 's|<time.h>|"platform.h"|' include/mbedtls/ssl.h
al@20397 22
al@20397 23 LDFLAGS="$LDFLAGS -I../include " \
al@20397 24 make SHARED=1 no_test &&
al@20397 25 make DESTDIR=$install/usr install
al@20397 26 }
al@20397 27
al@20397 28 genpkg_rules() {
al@20397 29 case $PACKAGE in
al@20397 30 mbedtls) copy @std;;
al@20397 31 *-dev) copy @dev;;
al@20397 32 esac
al@20397 33 }