aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/wget
diff options
context:
space:
mode:
authorvd <vd@FreeBSD.org>2013-05-14 16:27:47 +0800
committervd <vd@FreeBSD.org>2013-05-14 16:27:47 +0800
commitc5fb23fe483cee8da1b87d8fddcc3e1fd047ae6b (patch)
tree71bcbdecbfd370fd47f52dcc4d0b896095a78f4c /ftp/wget
parent65d0c20483e340c91fcadb0f42589fc46f3a9dca (diff)
downloadfreebsd-ports-gnome-c5fb23fe483cee8da1b87d8fddcc3e1fd047ae6b.tar.gz
freebsd-ports-gnome-c5fb23fe483cee8da1b87d8fddcc3e1fd047ae6b.tar.zst
freebsd-ports-gnome-c5fb23fe483cee8da1b87d8fddcc3e1fd047ae6b.zip
ftp/wget: Add an option for choosing whether to use PCRE or not.
The "CONFIGURE_ENV=ac_cv_header_pcre_h=no" thingy was suggested by bapt@, thanks!
Diffstat (limited to 'ftp/wget')
-rw-r--r--ftp/wget/Makefile25
1 files changed, 13 insertions, 12 deletions
diff --git a/ftp/wget/Makefile b/ftp/wget/Makefile
index 01ae6496c636..c18f09a3629a 100644
--- a/ftp/wget/Makefile
+++ b/ftp/wget/Makefile
@@ -3,7 +3,7 @@
PORTNAME= wget
DISTVERSION= 1.14
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= ftp www ipv6
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= wget
@@ -18,21 +18,13 @@ USE_PERL5_BUILD=yes
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
-# Wget can handle the absence of pcre, but we hook an unconditional dependency
-# to pcre because if it is present in the system during compile time, then
-# wget will pick it and link with it. Thus the wget executable will later
-# depend on the presence of the pcre library. Wget does not support to
-# explicitly ignore the pcre library if it is present in the system and there
-# is no elegant way to do that.
-LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre
-CPPFLAGS= -I${LOCALBASE}/include
-LDFLAGS= -L${LOCALBASE}/lib
-
OPTIONS_RADIO= SSL
OPTIONS_RADIO_SSL=GNUTLS OPENSSL
-OPTIONS_DEFINE= IPV6 NLS IDN
+OPTIONS_DEFINE= IPV6 NLS IDN PCRE
OPTIONS_DEFAULT=OPENSSL IDN
+PCRE_DESC= Support Perl regular expressions in addition to POSIX
+
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPENSSL}
@@ -73,6 +65,15 @@ CONFIGURE_ARGS+=--enable-iri --with-libidn=${LOCALBASE}
CONFIGURE_ARGS+=--disable-iri
.endif
+.if ${PORT_OPTIONS:MPCRE}
+# Wget will pick pcre automatically and link with it if it is present.
+LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+.else
+CONFIGURE_ENV+= ac_cv_header_pcre_h=no
+.endif
+
MAN1= wget.1
INFO= wget