diff --git a/ports/curl/build.sh b/ports/curl/build.sh index a3edd808..549abbf5 100755 --- a/ports/curl/build.sh +++ b/ports/curl/build.sh @@ -1,21 +1,26 @@ #!/bin/bash ../install.sh NAME='curl' -VERSION='8.8.0' -DOWNLOAD_URL="https://curl.se/download/curl-$VERSION.tar.gz#77c0e1cd35ab5b45b659645a93b46d660224d0024f1185e8a95cdb27ae3d787d" -DEPENDENCIES=('ca-certificates' 'openssl' 'zlib') +VERSION='8.11.1' +DOWNLOAD_URL="https://curl.se/download/curl-$VERSION.tar.gz#a889ac9dbba3644271bd9d1302b5c22a088893719b72be3487bc3d401e5c4e80" +DEPENDENCIES=('ca-certificates' 'openssl' 'zlib' 'zstd') CONFIGURE_OPTIONS=( '--disable-threaded-resolver' '--disable-ipv6' '--disable-docs' '--disable-ntlm' + '--enable-optimize' '--with-openssl' '--with-zlib' + '--with-zstd' + '--without-libpsl' '--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt' '--without-ca-path' ) install() { make install DESTDIR="$BANAN_SYSROOT" || exit 1 + + # remove libtool file rm -f $BANAN_SYSROOT/usr/lib/libcurl.la } diff --git a/ports/curl/patches/0002-add-shared-library-support.patch b/ports/curl/patches/0002-add-shared-library-support.patch new file mode 100644 index 00000000..594665aa --- /dev/null +++ b/ports/curl/patches/0002-add-shared-library-support.patch @@ -0,0 +1,20 @@ +diff -ruN curl-8.11.1/configure curl-8.11.1-banan_os/configure +--- curl-8.11.1/configure 2024-12-11 09:08:12.000000000 +0200 ++++ curl-8.11.1-banan_os/configure 2025-01-22 18:29:34.167111729 +0200 +@@ -15537,6 +15537,16 @@ + esac + ;; + ++banan_os*) ++ version_type=linux # correct to gnu/linux during the next big refactor ++ need_lib_prefix=no ++ need_version=no ++ library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ++ soname_spec='$libname$release$shared_ext$major' ++ dynamic_linker="$host_os DynamicLoader.so" ++ shlibpath_var=LD_LIBRARY_PATH ++ ;; ++ + beos*) + library_names_spec='$libname$shared_ext' + dynamic_linker="$host_os ld.so"