PATCH_LIST= FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH=http://curl.haxx.se/download/${PKGRADIX}-${PKGVER}.tar.gz MAKEDEPENDS=( 'zlib-*:::*.so *.so.* *.h' 'openssl-*:::*.so *.so.* *.h' ) function do_config { # Sometimes, broken packages will need LD="$CC" CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL -ffunction-sections -fdata-sections -fno-unwind-tables -fno-asynchronous-unwind-tables" \ PKG_CONFIG_PATH=/tmp PKG_CONFIG= \ LDFLAGS='-lssl -lcrypto -lz -Wl,-Bdynamic' \ LDFLAGS='-lssl -lcrypto -lz -Wl,-s -Wl,-Bsymbolic -Wl,--gc-sections' \ ./configure \ --build=${FLXHOST} --host=${FLXTARG} \ --prefix=/usr --sysconfdir=/etc \ --disable-nls --disable-locale --without-libidn \ --disable-shared --enable-static --disable-thread \ --disable-verbose --disable-versioned-symbols --enable-hidden-symbols \ --disable-debug --disable-curldebug --disable-ares --disable-rt \ --disable-ech --disable-code-coverage \ --disable-ftp --disable-ldap --enable-file --disable-ldaps \ --disable-rtsp --disable-dict --disable-telnet --disable-tftp \ --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher \ --disable-mqtt --disable-manual --disable-libcurl-option \ --disable-openssl-auto-load-config --disable-ntlm-wb --disable-sspi --disable-dateparse \ --disable-socketpair --disable-netrc --disable-dnsshuffle --disable-get-easy-options --without-brotli \ --disable-threaded-resolver \ --enable-proxy --enable-http --enable-ipv6 --enable-cookies \ --enable-doh --enable-hsts --enable-progress-meter --with-ssl="${FLXROOTDIR}/usr/" --with-zlib } function do_compile_only { $FLXPMAKE CFLAGS="-g $GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL" SYSROOT=$FLXROOTDIR } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR set_default_perm $ROOTDIR }