View | Details | Raw Unified | Return to bug 274839 | Differences between
and this patch

Collapse All | Expand All

(-)b/ftp/lftp/Makefile (-29 / +29 lines)
Lines 1-17 Link Here
1
PORTNAME=	lftp
1
PORTNAME=	lftp
2
PORTVERSION=	4.9.2
2
PORTVERSION=	4.9.2
3
CATEGORIES=	ftp
3
CATEGORIES=	ftp
4
MASTER_SITES=	http://lftp.tech/ftp/ \
4
MASTER_SITES=	ftp://ftp.cs.tu-berlin.de/pub/net/ftp/lftp/ \
5
		http://lftp.tech/ftp/old/ \
6
		http://lftp.cybermirror.org/ \
7
		http://lftp.cybermirror.org/old/ \
8
		http://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/ \
5
		http://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/ \
9
		http://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/old/ \
6
		http://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/old/ \
10
		http://ftp.tuwien.ac.at/infosys/browsers/ftp/lftp/ \
7
		http://ftp.tuwien.ac.at/infosys/browsers/ftp/lftp/ \
11
		ftp://ftp.cs.tu-berlin.de/pub/net/ftp/lftp/
8
		http://lftp.cybermirror.org/ \
9
		http://lftp.cybermirror.org/old/ \
10
		http://lftp.tech/ftp/ \
11
		http://lftp.tech/ftp/old/
12
12
13
MAINTAINER=	martymac@FreeBSD.org
13
MAINTAINER=	martymac@FreeBSD.org
14
COMMENT=	Shell-like command line FTP client
14
COMMENT=	Shell-like command-line FTP client
15
WWW=		https://lftp.tech/
15
WWW=		https://lftp.tech/
16
16
17
LICENSE=	GPLv3
17
LICENSE=	GPLv3
Lines 20-50 LICENSE_FILE= ${WRKSRC}/COPYING Link Here
20
LIB_DEPENDS=	libexpat.so:textproc/expat2 \
20
LIB_DEPENDS=	libexpat.so:textproc/expat2 \
21
		libidn2.so:dns/libidn2
21
		libidn2.so:dns/libidn2
22
22
23
USES=		compiler:c++11-lang charsetfix cpe desktop-file-utils \
23
USES=		charsetfix compiler:c++11-lang cpe desktop-file-utils iconv \
24
		iconv libtool localbase readline shebangfix
24
		libtool localbase readline shebangfix
25
GNU_CONFIGURE=	yes
26
CPE_VENDOR=	lftp_project
25
CPE_VENDOR=	lftp_project
27
26
28
PORTDOCS=	AUTHORS BUGS ChangeLog FAQ FEATURES INSTALL \
27
SHEBANG_FILES=	src/convert-mozilla-cookies src/verify-file src/xdg-move
29
		MIRRORS NEWS README README.debug-levels README.modules \
28
30
		THANKS TODO
29
GNU_CONFIGURE=	yes
31
30
32
SHEBANG_FILES=	src/verify-file \
31
PORTDOCS=	AUTHORS BUGS ChangeLog FAQ FEATURES INSTALL MIRRORS NEWS README \
33
		src/convert-mozilla-cookies \
32
		README.debug-levels README.modules THANKS TODO
34
		src/xdg-move
35
33
36
OPTIONS_DEFINE=	DOCS NLS
34
OPTIONS_DEFINE=		DOCS NLS
37
OPTIONS_RADIO=	SSL
38
OPTIONS_RADIO_SSL=	OPENSSL GNUTLS
39
OPTIONS_DEFAULT=	OPENSSL
35
OPTIONS_DEFAULT=	OPENSSL
40
OPTIONS_SUB=	yes
36
OPTIONS_RADIO=		SSL
41
NLS_USES=	gettext
37
OPTIONS_RADIO_SSL=	GNUTLS OPENSSL
38
OPTIONS_SUB=		yes
39
40
GNUTLS_LIB_DEPENDS=	libgnutls.so:security/gnutls
41
GNUTLS_USES=		pkgconfig
42
GNUTLS_CONFIGURE_WITH=	gnutls
43
NLS_USES=		gettext
42
NLS_CONFIGURE_ENABLE=	nls
44
NLS_CONFIGURE_ENABLE=	nls
45
OPENSSL_USES=		ssl
43
OPENSSL_CONFIGURE_WITH=	openssl
46
OPENSSL_CONFIGURE_WITH=	openssl
44
OPENSSL_USES=	ssl
45
GNUTLS_CONFIGURE_WITH=	gnutls
46
GNUTLS_LIB_DEPENDS=	libgnutls.so:security/gnutls
47
GNUTLS_USES=	pkgconfig
48
47
49
post-install:
48
post-install:
50
	${MV} ${STAGEDIR}${PREFIX}/etc/lftp.conf \
49
	${MV} ${STAGEDIR}${PREFIX}/etc/lftp.conf \
Lines 52-73 post-install: Link Here
52
51
53
post-install-DOCS-on:
52
post-install-DOCS-on:
54
	${MKDIR} ${STAGEDIR}${DOCSDIR}
53
	${MKDIR} ${STAGEDIR}${DOCSDIR}
55
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
54
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} \
55
		${STAGEDIR}${DOCSDIR}
56
56
57
.include <bsd.port.pre.mk>
57
.include <bsd.port.pre.mk>
58
58
59
# Only link to libthr if necessary
59
# Only link to libthr if necessary
60
.if ${PORT_OPTIONS:MGNUTLS}
60
.if ${PORT_OPTIONS:MGNUTLS}
61
NEED_PTHREAD=	yes
61
NEED_PTHREAD=		yes
62
.else
62
.else
63
.if exists(${OPENSSLLIB}/libssl.so)
63
.if exists(${OPENSSLLIB}/libssl.so)
64
NEED_PTHREAD_CMDS=	ldd ${OPENSSLLIB}/libssl.so | ${GREP} -w 'libthr\.so' || ${ECHO_CMD}
64
NEED_PTHREAD_CMDS=	${ECHO_CMD} ${GREP} ${OPENSSLLIB}/libssl.so \
65
			'libthr\.so' -w ldd | ||
65
.else
66
.else
66
NEED_PTHREAD=	# empty
67
NEED_PTHREAD=	# empty
67
.endif
68
.endif
68
.endif
69
.endif
69
.if !empty(NEED_PTHREAD)
70
.if !empty(NEED_PTHREAD)
70
LDFLAGS+=	-pthread
71
LDFLAGS+=		-pthread
71
.endif
72
.endif
72
73
73
.include <bsd.port.post.mk>
74
.include <bsd.port.post.mk>
74
- 

Return to bug 274839