mirror of
https://github.com/minetest/minetest_android_deps.git
synced 2025-01-21 20:59:37 +00:00
31 lines
818 B
Bash
31 lines
818 B
Bash
#!/bin/bash -e
|
|
mbedtls_ver=2.28.5
|
|
curl_ver=8.6.0
|
|
|
|
download () {
|
|
get_tar_archive mbedtls "https://github.com/ARMmbed/mbedtls/archive/mbedtls-${mbedtls_ver}.tar.gz"
|
|
get_tar_archive curl "https://curl.se/download/curl-${curl_ver}.tar.gz"
|
|
}
|
|
|
|
build () {
|
|
# Build mbedtls first
|
|
mkdir -p mbedtls
|
|
local mbedtls=$PWD/mbedtls
|
|
pushd $srcdir/mbedtls
|
|
make -s clean # necessary
|
|
make library
|
|
make DESTDIR=$mbedtls install
|
|
popd
|
|
|
|
$srcdir/curl/configure --host=$CROSS_PREFIX \
|
|
--with-mbedtls="$mbedtls" --without-libpsl \
|
|
--disable-shared --enable-static --disable-{debug,verbose} \
|
|
--disable-{proxy,cookies,crypto-auth,manual,ares,ftp,unix-sockets} \
|
|
--disable-{ldap,rtsp,dict,telnet,tftp,pop3,imap,smtp,gopher,mqtt}
|
|
make
|
|
make_install_copy
|
|
|
|
# For mbedtls install only the libraries
|
|
cp $mbedtls/lib/*.a $pkgdir/
|
|
}
|