# -*- coding: utf-8; tab-width: 4 -*- Info4: << Package: libcurl4 Version: 8.4.0 Revision: 1 Description: Lib. for transferring files with URL syntax DescDetail: << curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS and FILE. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos...), file transfer resume, proxy tunneling and a busload of other useful tricks. << DescPackaging: << No longer build static libs. Packages depending on libcurl4 no longer need to depend on its dependencies, just Depend on libcurl4-shlibs and BuildDepend on libcurl4. Add -dead_strip_dylibs to LDFLAGS on >=10.5 to not link indirect libs. Use native SecureTransport instead of OpenSSL on 10.8+. Versions of curl before 7.11.1-11 were maintained by Max Horn. Shell-completions modules are not installed, so it doesn't matter if zsh/fish are not found by ./configure Disable some optional-library detection that fink doesn't currently have, for consistent build results if fink were to get them Our 7.74.0-2 had been defaulting to secure-transport for SSL. We now explicitly set that option for consistency. << Maintainer: Daniel Johnson Homepage: http://curl.haxx.se/ License: BSD Source: https://curl.haxx.se/download/curl-%v.tar.xz Source-Checksum: SHA256(16c62a9c4af0f703d28bda6d7bbf37ba47055ad3414d70dec63e2e6336f2a82d) Depends: %N-shlibs (= %v-%r) BuildDepends: << fink (>= 0.32), fink-package-precedence, gsasl19-dev, libbrotli1 (>= 1.0.7-1), libnghttp2.14 (>= 1.41.0-1), librtmp1, libssh2.1 (>= 1.9.0-1), libzstd1-dev, pkgconfig << BuildConflicts: openldap24-dev, openldap2-dev BuildDependsOnly: True PatchScript: << #!/bin/sh -ex #Since we're not building static libs, no need to cascade dep libs. perl -pi -e 's/link_all_deplibs=yes/link_all_deplibs=no/g' configure #Clear out unnecessary junk. perl -pi -e 's,\@LDFLAGS\@,,g; s,\@LIBCURL_LIBS\@,,g' curl-config.in perl -pi -e 's,\@LDFLAGS\@,,g; s,\@LIBCURL_LIBS\@,,g' libcurl.pc.in #Set up to use system's ldap InclPREFIX="/usr/include" if [ "$(uname -r | cut -d. -f1)" -ge 18 ]; then InclPREFIX="/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include" fi /bin/cp $InclPREFIX/lber*.h . /bin/cp $InclPREFIX/ldap*.h . /bin/cp $InclPREFIX/../lib/libldap.* . << SetLDFLAGS: -Wl,-dead_strip_dylibs SetCFLAGS: -Os ConfigureParams: << --with-secure-transport \ --without-openssl \ --without-gnutls \ --with-libssh2=%p \ --with-gssapi=/usr \ --enable-ldap \ --disable-ldaps \ --with-ldap-lib=ldap \ --with-lber-lib=no \ --without-libidn2 \ --with-librtmp \ --with-nghttp2=%p \ --with-brotli=%p \ --with-zstd \ --without-libpsl \ --without-ngtcp2 \ --without-quiche \ --enable-symbol-hiding \ --enable-threaded-resolver \ --disable-static \ --enable-dependency-tracking \ --disable-silent-rules << UseMaxBuildJobs: true CompileScript: << #!/bin/sh -ev ver=`sw_vers -productVersion | cut -d . -f 1,2` export CFLAGS="$CFLAGS -mmacosx-version-min=$ver" %{default_script} fink-package-precedence --prohibit-bdep=%n . << InstallScript: << perl -pi -e 's/-g -Os -Wl,-search_paths_first //g; s/-dynamic //g' curl-config libcurl.pc make install DESTDIR=%d perl -pi -e "s/inherited_linker_flags=.*$/inherited_linker_flags=''/" %i/lib/*.la mkdir -p %i/share/aclocal install -m644 docs/libcurl/libcurl.m4 %i/share/aclocal << DocFiles: CHANGES COPYING README RELEASE-NOTES SplitOff: << Package: %N-shlibs Depends: << gsasl19-shlibs, libbrotli1-shlibs (>= 1.0.7-1), libnghttp2.14-shlibs (>= 1.41.0-1), librtmp1-shlibs, libssh2.1-shlibs (>= 1.9.0-1), libzstd1-shlibs << Files: lib/libcurl.4.*dylib Shlibs: %p/lib/libcurl.4.dylib 13.0.0 %n (>= 7.84.0-1) DocFiles: CHANGES COPYING README RELEASE-NOTES << SplitOff2: << Package: curl Description: Tool for transferring files with URL syntax DescUsage: For additional documentation see the %N package. Depends: %N-shlibs (>= %v-%r) Files: bin/curl share/man/man1/curl.1 DocFiles: CHANGES COPYING README RELEASE-NOTES docs/BINDINGS.md docs/BUGS.md docs/CONTRIBUTE.md docs/FAQ docs/FEATURES.md docs/HISTORY.md docs/KNOWN_BUGS docs/INTERNALS.md docs/THANKS docs/TODO docs/TheArtOfHttpScripting.md docs/SSLCERTS.md docs/VERSIONS.md << InfoTest: << TestDepends: stunnel4 TestScript: << #!/bin/bash -ev #These tests fail if you use OpenDNS or your ISP sucks #and uses wildcard dns lookups. #echo '20' >>tests/data/DISABLED #echo '237' >>tests/data/DISABLED #echo '507' >>tests/data/DISABLED #echo '534' >>tests/data/DISABLED #This test fails when run as root. #echo '1001' >>tests/data/DISABLED #echo '1112' >>tests/data/DISABLED #This test seems to hang. #echo '283' >>tests/data/DISABLED #echo '525' >>tests/data/DISABLED #echo '554' >>tests/data/DISABLED #echo '587' >>tests/data/DISABLED #echo '906' >>tests/data/DISABLED #echo '1006' >>tests/data/DISABLED #echo '1007' >>tests/data/DISABLED #echo '1086' >>tests/data/DISABLED #echo '1099' >>tests/data/DISABLED #echo '1316' >>tests/data/DISABLED #echo '2002' >>tests/data/DISABLED #echo '2003' >>tests/data/DISABLED echo '310' >>tests/data/DISABLED #echo '311' >>tests/data/DISABLED #echo '312' >>tests/data/DISABLED echo '313' >>tests/data/DISABLED # These tests don't work with darwinssl. #echo '305' >>tests/data/DISABLED #echo '404' >>tests/data/DISABLED #echo '1801' >>tests/data/DISABLED # This test started failing with 7.50.0. Looks harmless. #echo '506' >>tests/data/DISABLED # peer not verified echo '678' >>tests/data/DISABLED # These fail with 'curl: (90) SSL: public key does not match pinned public key' or '...pinnedpubkey but right CN' echo '2034' >>tests/data/DISABLED echo '2035' >>tests/data/DISABLED echo '2037' >>tests/data/DISABLED echo '2038' >>tests/data/DISABLED echo '2041' >>tests/data/DISABLED echo '2042' >>tests/data/DISABLED #echo '2056' >>tests/data/DISABLED #echo '2057' >>tests/data/DISABLED #echo '1452' >>tests/data/DISABLED # This fails with bad certificate (on their side?) echo '3000' >>tests/data/DISABLED echo '3001' >>tests/data/DISABLED #The SSH tests will also be skipped as root but this isn't fatal. #Build and run the tests. Disable use of valgrind because it takes a LONG time. make test-full TEST_F="-a -p -r -n" || exit 2 fink-package-precedence --prohibit-bdep=%n . || exit 2 << << <<