2013-03-26 09:58:33 +00:00
|
|
|
# Created by: Nosov Artem <chip-set@mail.ru>
|
2003-12-08 10:13:10 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= wput
|
2008-12-17 16:16:50 +00:00
|
|
|
PORTVERSION= 0.6.2
|
2013-02-05 16:17:06 +00:00
|
|
|
PORTREVISION= 4
|
2003-12-08 10:13:10 +00:00
|
|
|
CATEGORIES= ftp
|
2008-01-22 17:29:58 +00:00
|
|
|
MASTER_SITES= SF
|
2003-12-08 10:13:10 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= chip-set@mail.ru
|
|
|
|
COMMENT= Uploads files or directories to a ftpserver with support of resuming
|
|
|
|
|
2008-01-22 17:29:58 +00:00
|
|
|
PORTDOCS= ABOUT-NLS COPYING ChangeLog INSTALL TODO
|
|
|
|
PORTEXAMPLES= USAGE.examples USAGE.resumehandling USAGE.urlhandling \
|
|
|
|
passwordfile wputrc
|
2003-12-08 10:13:10 +00:00
|
|
|
|
2004-01-12 09:13:52 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-23 22:26:39 +00:00
|
|
|
CONFIGURE_ENV= LIBS="${LDFLAGS}"
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2009-09-01 12:47:35 +00:00
|
|
|
MAKE_JOBS_UNSAFE=yes
|
2008-01-22 17:29:58 +00:00
|
|
|
|
2013-03-26 09:58:33 +00:00
|
|
|
OPTIONS_DEFINE= TLS NLS DOCS EXAMPLES
|
|
|
|
OPTIONS_DEFAULT= TLS
|
2008-01-22 17:29:58 +00:00
|
|
|
|
2008-12-17 16:16:50 +00:00
|
|
|
MAN1= wdel.1 wput.1
|
2004-03-08 19:37:44 +00:00
|
|
|
|
2013-03-26 09:58:33 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2008-01-22 17:29:58 +00:00
|
|
|
|
2013-03-26 09:58:33 +00:00
|
|
|
.if ${PORT_OPTIONS:MTLS}
|
2013-02-05 16:17:06 +00:00
|
|
|
LIB_DEPENDS+= gnutls.26:${PORTSDIR}/security/gnutls
|
2008-12-17 16:16:50 +00:00
|
|
|
CONFIGURE_ARGS+= --with-ssl
|
|
|
|
.else
|
2008-01-22 17:29:58 +00:00
|
|
|
CONFIGURE_ARGS+= --without-ssl
|
|
|
|
.endif
|
2008-12-17 16:16:50 +00:00
|
|
|
|
2013-03-26 09:58:33 +00:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2013-04-27 08:50:46 +00:00
|
|
|
USES+= gettext iconv
|
2008-12-17 16:16:50 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-nls \
|
|
|
|
--with-libintl-prefix=${LOCALBASE} \
|
|
|
|
--with-libiconv-prefix=${LOCALBASE}
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nls --without-libiconv-prefix
|
|
|
|
PLIST_SUB= NLS="@comment "
|
2008-01-22 17:29:58 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-configure:
|
2008-12-17 16:16:50 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \
|
|
|
|
${WRKSRC}/src/memdbg.c \
|
|
|
|
${WRKSRC}/src/socketlib.c
|
2008-01-22 17:29:58 +00:00
|
|
|
|
2003-12-08 10:13:10 +00:00
|
|
|
post-install:
|
2008-12-17 16:16:50 +00:00
|
|
|
@${INSTALL_MAN} ${MAN1:S,^,${WRKSRC}/doc/,} ${MANPREFIX}/man/man1/
|
2008-01-22 17:29:58 +00:00
|
|
|
|
2013-03-26 09:58:33 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2008-01-22 17:29:58 +00:00
|
|
|
@${INSTALL} -d ${DOCSDIR}
|
2008-01-26 01:51:31 +00:00
|
|
|
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
|
2008-01-22 17:29:58 +00:00
|
|
|
.endif
|
|
|
|
|
2013-03-26 09:58:33 +00:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2008-01-22 17:29:58 +00:00
|
|
|
@${INSTALL} -d ${EXAMPLESDIR}
|
|
|
|
@${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/doc/,} ${EXAMPLESDIR}
|
2003-12-08 10:13:10 +00:00
|
|
|
.endif
|
|
|
|
|
2013-03-26 09:58:33 +00:00
|
|
|
.include <bsd.port.mk>
|