comparison 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
comparison
equal deleted inserted replaced
1093:0502aa76ec98 1094:3dece1f7570b
19 PKGVERSION=7.64.0 19 PKGVERSION=7.64.0
20 PKGREVISION=1 20 PKGREVISION=1
21 PKGLICENSE="MIT" 21 PKGLICENSE="MIT"
22 PKGSUMMARY="command line tool for transferring data with URLs" 22 PKGSUMMARY="command line tool for transferring data with URLs"
23 PKGDOWNLOAD="https://curl.haxx.se/download/$PKGNAME-$PKGVERSION.tar.xz" 23 PKGDOWNLOAD="https://curl.haxx.se/download/$PKGNAME-$PKGVERSION.tar.xz"
24 PKGOPTIONS="IDN2 IPV6 NGHTTP2 SSH SSL" 24 PKGDEPENDS=""
25 PKGOPTIONS="IDN2 IPV6 NGHTTP2 PSL SSH SSL ZLIB"
25 26
26 : ${CHOST:=$(uname -m)-linux-musl} 27 : ${CHOST:=$(uname -m)-linux-musl}
27 : ${CBUILD:=$(uname -m)-linux-musl} 28 : ${CBUILD:=$(uname -m)-linux-musl}
28 : ${CC:=clang} 29 : ${CC:=clang}
29 : ${CFLAGS:=-O2} 30 : ${CFLAGS:=-O2}
30 : ${LDFLAGS:=} 31 : ${LDFLAGS:=}
31 : ${LIBS:=} 32 : ${LIBS:=}
32 : ${IDN2:=yes} 33 : ${IDN2:=yes}
33 : ${IPV6:=yes} 34 : ${IPV6:=yes}
34 : ${NGHTTP2:=yes} 35 : ${NGHTTP2:=yes}
36 : ${PSL:=yes}
35 : ${SSH:=yes} 37 : ${SSH:=yes}
36 : ${SSL:=yes} 38 : ${SSL:=yes}
39 : ${ZLIB:=yes}
37 40
38 if [ "$IDN2" = "yes" ]; then 41 if [ "$IDN2" = "yes" ]; then
39 PKGDEPENDS="libidn2 $PKGDEPENDS" 42 PKGDEPENDS="libidn2 $PKGDEPENDS"
40 with_idn2="--with-libidn2" 43 with_idn2="--with-libidn2"
41 else 44 else
53 with_nghttp2="--with-nghttp2" 56 with_nghttp2="--with-nghttp2"
54 else 57 else
55 with_nghttp2="--without-nghttp2" 58 with_nghttp2="--without-nghttp2"
56 fi 59 fi
57 60
61 if [ "$PSL" = "yes" ]; then
62 PKGDEPENDS="libpsl $PKGDEPENDS"
63 with_psl="--with-libpsl"
64 else
65 with_psl="--without-libpsl"
66 fi
67
58 if [ "$SSH" = "yes" ]; then 68 if [ "$SSH" = "yes" ]; then
59 PKGDEPENDS="libssh2 $PKGDEPENDS" 69 PKGDEPENDS="libssh2 $PKGDEPENDS"
60 with_ssh="--with-libssh2" 70 with_ssh="--with-libssh2"
61 else 71 else
62 with_ssh="--without-libssh2" 72 with_ssh="--without-libssh2"
65 if [ "$SSL" = "yes" ]; then 75 if [ "$SSL" = "yes" ]; then
66 PKGDEPENDS="libressl $PKGDEPENDS" 76 PKGDEPENDS="libressl $PKGDEPENDS"
67 with_ssl="--with-ssl" 77 with_ssl="--with-ssl"
68 else 78 else
69 with_ssl="--without-ssl" 79 with_ssl="--without-ssl"
80 fi
81
82 if [ "$ZLIB" = "yes" ]; then
83 PKGDEPENDS="zlib $PKGDEPENDS"
84 with_zlib="--with-zlib"
85 else
86 with_zlib="--without-zlib"
70 fi 87 fi
71 88
72 build() 89 build()
73 { 90 {
74 rm -rf $PKGNAME-$PKGVERSION 91 rm -rf $PKGNAME-$PKGVERSION
91 --without-polarssl \ 108 --without-polarssl \
92 --without-wolfssl \ 109 --without-wolfssl \
93 $with_idn2 \ 110 $with_idn2 \
94 $with_ipv6 \ 111 $with_ipv6 \
95 $with_nghttp2 \ 112 $with_nghttp2 \
113 $with_psl \
96 $with_ssh \ 114 $with_ssh \
97 $with_ssl 115 $with_ssl \
116 $with_zlib
98 make 117 make
99 make install DESTDIR=$DESTDIR 118 make install DESTDIR=$DESTDIR
100 find $DESTDIR -type f -name "*.la" -delete 119 find $DESTDIR -type f -name "*.la" -delete
101 120
102 cd .. 121 cd ..