Source
xxxxxxxxxx
master_sites-append https://hg.mozilla.org/mozilla-central/archive/${certdata_commit}${certdata_extract_suffix}/${certdata_path}?dummy=:certdata
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup clang_dependency 1.0
name curl
version 7.67.0
categories net www
platforms darwin freebsd
maintainers {ryandesign @ryandesign}
license Curl
description Tool for transferring files with URL syntax
long_description curl is a client to get documents/files from servers, \
using any of the supported protocols. The command is \
designed to work without user interaction or any kind \
of interactivity.
homepage https://curl.haxx.se
master_sites ${homepage}/download/:curl \
http://curl.mirror.anstey.ca/:curl \
http://curl.askapache.com/download/:curl
use_xz yes
set curl_distfile ${distfiles}
distfiles ${curl_distfile}:curl
checksums ${curl_distfile} \
rmd160 f9db855e7f76abeac1eeeb9ebc37b2b116be77f2 \
sha256 f5d2e7320379338c3952dcc7566a140abb49edb575f9f99272455785c40e536c \
size 2418548
if {${name} eq ${subport}} {
PortGroup muniversal 1.0
revision 0
depends_build port:pkgconfig
depends_lib port:libidn2 \
port:libpsl \
port:zlib
# Prevent curl-config from telling curl's dependents that they have to
# link with all of curl's dependencies as well.
patchfiles configure.patch
configure.args --disable-silent-rules \
--enable-ipv6 \
--without-brotli \
--without-cyassl \
--without-gnutls \
--without-gssapi \
--without-libmetalink \
--without-librtmp \
--without-libssh2 \
--without-nghttp2 \
--without-nss \
--without-polarssl \
--without-ssl \
--without-darwinssl \
--disable-ares \
--disable-ldap \
--disable-ldaps \
--with-libidn2=${prefix} \
--with-zlib=${prefix} \
ac_cv_prog_AWK=/usr/bin/awk
configure.cflags-append -mmacosx-version-min=${macosx_deployment_target}
configure.env PKG_CONFIG_PATH=${prefix}
post-configure {
if {[variant_isset universal]} {
set dirs {}
foreach arch ${universal_archs_to_use} {
lappend dirs ${worksrcpath}-${arch}
}
} else {
set dirs ${worksrcpath}
}
foreach dir ${dirs} {
reinplace -E {s|-arch [a-z0-9_]+||g} ${dir}/curl-config
# These flags only ends up in curl-config in some cases, such as
# when "cross compiling" a universal binary.
# See https://trac.macports.org/ticket/24001
reinplace -E -q {s/ '(host_alias|--host)=[^']+'//g} ${dir}/curl-config
}
}