diff network/curl/curl.sh @ 1094:3dece1f7570b

vanilla: add many ghost dependencies
author David Demelier <markand@malikania.fr>
date Mon, 09 Sep 2019 21:10:00 +0200
parents ddab65a5b3f5
children 297b5eef115e
line wrap: on
line diff
--- a/network/curl/curl.sh	Mon Sep 09 21:05:00 2019 +0200
+++ b/network/curl/curl.sh	Mon Sep 09 21:10:00 2019 +0200
@@ -21,7 +21,8 @@
 PKGLICENSE="MIT"
 PKGSUMMARY="command line tool for transferring data with URLs"
 PKGDOWNLOAD="https://curl.haxx.se/download/$PKGNAME-$PKGVERSION.tar.xz"
-PKGOPTIONS="IDN2 IPV6 NGHTTP2 SSH SSL"
+PKGDEPENDS=""
+PKGOPTIONS="IDN2 IPV6 NGHTTP2 PSL SSH SSL ZLIB"
 
 : ${CHOST:=$(uname -m)-linux-musl}
 : ${CBUILD:=$(uname -m)-linux-musl}
@@ -32,8 +33,10 @@
 : ${IDN2:=yes}
 : ${IPV6:=yes}
 : ${NGHTTP2:=yes}
+: ${PSL:=yes}
 : ${SSH:=yes}
 : ${SSL:=yes}
+: ${ZLIB:=yes}
 
 if [ "$IDN2" = "yes" ]; then
 	PKGDEPENDS="libidn2 $PKGDEPENDS"
@@ -55,6 +58,13 @@
 	with_nghttp2="--without-nghttp2"
 fi
 
+if [ "$PSL" = "yes" ]; then
+	PKGDEPENDS="libpsl $PKGDEPENDS"
+	with_psl="--with-libpsl"
+else
+	with_psl="--without-libpsl"
+fi
+
 if [ "$SSH" = "yes" ]; then
 	PKGDEPENDS="libssh2 $PKGDEPENDS"
 	with_ssh="--with-libssh2"
@@ -69,6 +79,13 @@
 	with_ssl="--without-ssl"
 fi
 
+if [ "$ZLIB" = "yes" ]; then
+	PKGDEPENDS="zlib $PKGDEPENDS"
+	with_zlib="--with-zlib"
+else
+	with_zlib="--without-zlib"
+fi
+
 build()
 {
 	rm -rf $PKGNAME-$PKGVERSION
@@ -93,8 +110,10 @@
 		$with_idn2 \
 		$with_ipv6 \
 		$with_nghttp2 \
+		$with_psl \
 		$with_ssh \
-		$with_ssl
+		$with_ssl \
+		$with_zlib
 	make
 	make install DESTDIR=$DESTDIR
 	find $DESTDIR -type f -name "*.la" -delete