aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/wget/Makefile
blob: e37a694731faddd74cbe4bb8a4274104d23c207e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Ports collection makefile for:  wget
# Date created:           31 December 1996
# Whom:               Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   wget
DISTVERSION=    1.10.2
CATEGORIES= ftp www ipv6
MASTER_SITES=   ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= wget

MAINTAINER= sf@FreeBSD.org
COMMENT=    Retrieve files from the Net via HTTP and FTP

.if !defined(WITHOUT_NLS)
USE_GETTEXT=    yes
.endif

CONFLICTS=  wget-devel-[0-9]*

USE_REINPLACE=      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

post-install:
    install-info ${PREFIX}/info/wget.info ${PREFIX}/info/dir

.include <bsd.port.mk>