ports: Update curl port

This patch updates curl to version 8.11.1 and adds support for dynamic
libraries
This commit is contained in:
Bananymous 2025-01-23 21:58:29 +02:00
parent d969f5df7b
commit 58cdcf754c
2 changed files with 28 additions and 3 deletions

View File

@ -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
}

View File

@ -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"