mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
fb67dd0aaf
PR: ports/120119 (based on) Submitted by: Oleg Gawriloff <barzog@telecom.by>
57 lines
1.2 KiB
Makefile
57 lines
1.2 KiB
Makefile
# Ports collection makefile for: wget
|
|
# Date created: 31 December 1996
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= wget
|
|
DISTVERSION= 1.11
|
|
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 and FTP
|
|
|
|
USE_BZIP2= yes
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
USE_GETTEXT= yes
|
|
.endif
|
|
|
|
USE_GMAKE= yes
|
|
USE_PERL5_BUILD=yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
.if defined(WITHOUT_SSL)
|
|
CONFIGURE_ARGS= --with-ssl=no
|
|
.else
|
|
USE_OPENSSL= yes
|
|
.endif
|
|
|
|
.if defined(WITHOUT_NLS)
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
PLIST_SUB= NLS="@comment "
|
|
.else
|
|
CONFIGURE_ARGS+= --enable-nls
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
"LDFLAGS=${LDFLAGS}"
|
|
PLIST_SUB= NLS=""
|
|
.endif
|
|
|
|
MAN1= wget.1
|
|
INFO= wget
|
|
|
|
post-patch:
|
|
${RM} -f ${WRKSRC}/doc/wget.info* ${WRKSRC}/po/*.mo ${WRKSRC}/po/*.gmo
|
|
@# eliminate gmakism
|
|
${REINPLACE_CMD} -e 's,$$<,$$(srcdir)/wget.texi,' \
|
|
${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>
|