Skip to content
Permalink
Browse files

wget: +ssl and +gnutls

Currently, wget has a +ssl variant, which actually builds with gnutls.
Name that +gnutls, and also have a +ssl variant built with openssl.
(That's how other ports call these vaiants, see e.g. curl.)
Make +gnutls the default, as that's what upstream does.
  • Loading branch information
janstary authored and pmetzger committed Mar 2, 2018
1 parent d68883a commit 886e416e16c99243c931d2a1de65cb7a2a413e71
Showing with 13 additions and 4 deletions.
  1. +13 −4 net/wget/Portfile
@@ -5,7 +5,7 @@ PortGroup muniversal 1.0

name wget
version 1.19.4
revision 1
revision 2
categories net www
maintainers {ryandesign @ryandesign} openmaintainer
license GPL-3+
@@ -91,12 +91,21 @@ configure.args-append ac_cv_header_uuid_uuid_h=no
test.run yes
test.target check

variant ssl description {Build with SSL support using GnuTLS} {
variant gnutls conflicts ssl description {SSL support via GnuTLS} {
configure.args-replace --without-ssl --with-ssl=gnutls
configure.args-append --with-libgnutls-prefix=${prefix}
depends_lib-append port:gnutls
configure.args-delete --without-ssl
}

default_variants +ssl
variant ssl conflicts gnutls description {SSL support via OpenSSL} {
configure.args-replace --without-ssl --with-ssl=openssl
configure.args-append --with-libssl-prefix=${prefix}
depends_lib-append path:lib/libssl.dylib:openssl
}

if {![variant_isset ssl]} {
default_variants +gnutls
}

post-patch {
reinplace "s|@PREFIX@|${prefix}|g" \

0 comments on commit 886e416

Please sign in to comment.
You can’t perform that action at this time.