a7ff699ccd
https://wiki.freebsd.org/ports/fix_lib_depends PR: ports/186718 Submitted by: Eero Hänninen <fax@nohik.ee>
88 lines
2 KiB
Makefile
88 lines
2 KiB
Makefile
# Created by: Thomas Gellekum <tg@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= wget
|
|
DISTVERSION= 1.15
|
|
CATEGORIES= ftp www ipv6
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
MASTER_SITE_SUBDIR= wget
|
|
|
|
MAINTAINER= vd@FreeBSD.org
|
|
COMMENT= Retrieve files from the Net via HTTP(S) and FTP
|
|
|
|
LICENSE= GPLv3
|
|
|
|
USES= charsetfix gmake perl5
|
|
USE_XZ= yes
|
|
USE_PERL5= build
|
|
GNU_CONFIGURE= yes
|
|
|
|
OPTIONS_RADIO= SSL
|
|
OPTIONS_RADIO_SSL=GNUTLS OPENSSL
|
|
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}
|
|
USE_OPENSSL= yes
|
|
CONFIGURE_ARGS+=--with-ssl=openssl
|
|
CPPFLAGS+= -I${OPENSSLINC}
|
|
LDFLAGS+= -L${OPENSSLLIB}
|
|
.elif ${PORT_OPTIONS:MGNUTLS}
|
|
LIB_DEPENDS+= libgnutls.so:${PORTSDIR}/security/gnutls
|
|
CONFIGURE_ARGS+=--with-ssl=gnutls
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
.else
|
|
CONFIGURE_ARGS+=--without-ssl
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MIPV6}
|
|
CONFIGURE_ARGS+=--enable-ipv6
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-ipv6
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
USES+= gettext
|
|
CONFIGURE_ARGS+=--enable-nls
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
PLIST_SUB= NLS="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MIDN}
|
|
LIB_DEPENDS+= libidn.so:${PORTSDIR}/dns/libidn
|
|
CONFIGURE_ARGS+=--enable-iri --with-libidn=${LOCALBASE}
|
|
USES+= iconv
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-iri
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPCRE}
|
|
# Wget will pick pcre automatically and link with it if it is present.
|
|
LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
.else
|
|
CONFIGURE_ENV+= ac_cv_header_pcre_h=no
|
|
.endif
|
|
|
|
INFO= wget
|
|
|
|
# eliminate gmakism
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's,$$<,$$(srcdir)/wget.texi,' \
|
|
-e 's,WGETRC = $$(sysconfdir)/wgetrc,&.sample,' \
|
|
${WRKSRC}/doc/Makefile.in
|
|
${REINPLACE_CMD} -e 's,/usr/local/etc/wgetrc,${PREFIX}/etc/wgetrc,' \
|
|
-e 's,@file{},@file{${PREFIX}},' \
|
|
${WRKSRC}/doc/sample.wgetrc* ${WRKSRC}/doc/wget.texi
|
|
|
|
.include <bsd.port.mk>
|