blob: e1eac45552833b8b1ae16ab4b837cdf2905424f5 (
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
|
# Created by: Nosov Artem <chip-set@mail.ru>
# $FreeBSD$
PORTNAME= wput
PORTVERSION= 0.6.2
PORTREVISION= 7
CATEGORIES= ftp
MASTER_SITES= SF
MAINTAINER= chip-set@mail.ru
COMMENT= Upload files or directories to FTP server with resume support
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
PORTDOCS= ABOUT-NLS COPYING ChangeLog INSTALL TODO
PORTEXAMPLES= USAGE.examples USAGE.resumehandling USAGE.urlhandling \
passwordfile wputrc
USES= tar:tgz
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE=yes
OPTIONS_DEFINE= TLS NLS DOCS EXAMPLES
OPTIONS_DEFAULT=TLS
OPTIONS_SUB= yes
TLS_LIB_DEPENDS= libgnutls.so:security/gnutls
TLS_CONFIGURE_WITH= ssl
NLS_USES= gettext iconv
NLS_CONFIGURE_ENABLE= nls
NLS_CONFIGURE_WITH= libintl-prefix=${LOCALBASE}
NLS_CONFIGURE_ON= ${ICONV_CONFIGURE_ARG}
pre-configure:
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \
${WRKSRC}/src/memdbg.c \
${WRKSRC}/src/socketlib.c
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/wput
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${MANPREFIX}/man/man1/
@${INSTALL} -d ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
@${INSTALL} -d ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
|