aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/wget
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-03-26 17:58:33 +0800
committerbapt <bapt@FreeBSD.org>2013-03-26 17:58:33 +0800
commit512b099b0e8162a661f66142e440e6deda9c754f (patch)
tree0703b05c980a1a962f207fe4415499f2f3f22ae8 /ftp/wget
parent399e8c4c349f1b9f4bacd9c9976acd8b96fe1bce (diff)
downloadfreebsd-ports-gnome-512b099b0e8162a661f66142e440e6deda9c754f.tar.gz
freebsd-ports-gnome-512b099b0e8162a661f66142e440e6deda9c754f.tar.zst
freebsd-ports-gnome-512b099b0e8162a661f66142e440e6deda9c754f.zip
Convert left unconverted ports in ftp to new options framework
Diffstat (limited to 'ftp/wget')
-rw-r--r--ftp/wget/Makefile28
1 files changed, 12 insertions, 16 deletions
diff --git a/ftp/wget/Makefile b/ftp/wget/Makefile
index 26aa27bac071..626468661dd7 100644
--- a/ftp/wget/Makefile
+++ b/ftp/wget/Makefile
@@ -17,23 +17,19 @@ USE_PERL5_BUILD=yes
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
-OPTIONS= GNUTLS "Support for SSL via GnuTLS" Off \
- IPV6 "Support for IPv6" On \
- NLS "Native Language Support with gettext" On \
- OPENSSL "Support for SSL via OpenSSL" On \
- IDN "Support IDN (Internationalized Domain Names)" On
+OPTIONS_RADIO= SSL
+OPTIONS_RADIO_SSL= GNUTLS OPENSSL
+OPTIONS_DEFINE= IPV6 NLS IDN
+OPTIONs_DEFAULT= OPENSSL IDN
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if !defined(WITHOUT_OPENSSL)
-.if !defined(WITHOUT_GNUTLS)
-IGNORE= GNUTLS and OPENSSL are mutually exclusive, enable at most one of them
-.endif
-.include "${PORTSDIR}/Mk/bsd.openssl.mk"
+.if ${PORT_OPTIONS:MOPENSSL}
+USE_OPENSSL= yes
CONFIGURE_ARGS+=--with-ssl=openssl
CPPFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
-.elif !defined(WITHOUT_GNUTLS)
+.elif ${PORT_OPTIONS:MGNUTLS}
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
CONFIGURE_ARGS+=--with-ssl=gnutls
CPPFLAGS+= -I${LOCALBASE}/include
@@ -42,13 +38,13 @@ LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+=--without-ssl
.endif
-.if !defined(WITHOUT_IPV6)
+.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+=--enable-ipv6
.else
CONFIGURE_ARGS+=--disable-ipv6
.endif
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
CONFIGURE_ARGS+=--enable-nls
CPPFLAGS+= -I${LOCALBASE}/include
@@ -59,7 +55,7 @@ CONFIGURE_ARGS+=--disable-nls
PLIST_SUB= NLS="@comment "
.endif
-.if !defined(WITHOUT_IDN)
+.if ${PORT_OPTIONS:MIDN}
LIB_DEPENDS+= idn:${PORTSDIR}/dns/libidn
CONFIGURE_ARGS+=--enable-iri --with-libidn=${LOCALBASE}
.else
@@ -77,4 +73,4 @@ post-patch:
-e 's,@file{},@file{${PREFIX}},' \
${WRKSRC}/doc/sample.wgetrc* ${WRKSRC}/doc/wget.texi
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>