2003-12-08 11:13:10 +01:00
|
|
|
# New ports collection makefile for: wput
|
|
|
|
# Date created: 2 December 2003
|
|
|
|
# Whom: Nosov Artem <chip-set@mail.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= wput
|
2008-01-22 18:29:58 +01:00
|
|
|
PORTVERSION= 0.6.1
|
2008-03-03 12:57:08 +01:00
|
|
|
PORTREVISION= 1
|
2003-12-08 11:13:10 +01:00
|
|
|
CATEGORIES= ftp
|
2008-01-22 18:29:58 +01:00
|
|
|
MASTER_SITES= SF
|
2003-12-08 11:13:10 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= chip-set@mail.ru
|
|
|
|
COMMENT= Uploads files or directories to a ftpserver with support of resuming
|
|
|
|
|
2008-03-03 12:57:08 +01:00
|
|
|
LIB_DEPENDS= gnutls.26:${PORTSDIR}/security/gnutls
|
2004-03-08 20:37:44 +01:00
|
|
|
|
2008-01-22 18:29:58 +01:00
|
|
|
PORTDOCS= ABOUT-NLS COPYING ChangeLog INSTALL TODO
|
|
|
|
PORTEXAMPLES= USAGE.examples USAGE.resumehandling USAGE.urlhandling \
|
|
|
|
passwordfile wputrc
|
2003-12-08 11:13:10 +01:00
|
|
|
|
2008-01-26 02:51:31 +01:00
|
|
|
USE_GETTEXT= yes
|
|
|
|
USE_AUTOTOOLS= autoconf:261
|
2004-01-12 10:13:52 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2004-09-02 21:29:35 +02:00
|
|
|
CONFIGURE_ENV= LIBS="${LDFLAGS}"
|
2008-01-22 18:29:58 +01:00
|
|
|
|
|
|
|
OPTIONS= TLS "Enable TLS support" on \
|
|
|
|
MEM_DEBUG "Enable memory debugging" off \
|
|
|
|
DEBUG "Enable debug support" on
|
|
|
|
|
2004-07-08 10:02:10 +02:00
|
|
|
MAN1= wput.1
|
2004-03-08 20:37:44 +01:00
|
|
|
|
2008-01-22 18:29:58 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITHOUT_TLS)
|
|
|
|
CONFIGURE_ARGS+= --without-ssl
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_MEM_DEBUG)
|
|
|
|
CONFIGURE_ARGS+= --enable-memdbg
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_DEBUG)
|
|
|
|
CONFIGURE_ARGS+= --disable-g-switch
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/src/socketlib.c
|
|
|
|
|
2003-12-08 11:13:10 +01:00
|
|
|
post-install:
|
2008-01-22 18:29:58 +01:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/doc/${MAN1} ${MANPREFIX}/man/man1/
|
|
|
|
|
2003-12-08 11:13:10 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2008-01-22 18:29:58 +01:00
|
|
|
@${INSTALL} -d ${DOCSDIR}
|
2008-01-26 02:51:31 +01:00
|
|
|
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
|
2008-01-22 18:29:58 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
@${INSTALL} -d ${EXAMPLESDIR}
|
|
|
|
@${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/doc/,} ${EXAMPLESDIR}
|
2003-12-08 11:13:10 +01:00
|
|
|
.endif
|
|
|
|
|
2008-01-22 18:29:58 +01:00
|
|
|
.include <bsd.port.post.mk>
|