mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
# Created by: Nosov Artem <chip-set@mail.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= wput
|
|
PORTVERSION= 0.6.2
|
|
PORTREVISION= 4
|
|
CATEGORIES= ftp
|
|
MASTER_SITES= SF
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= chip-set@mail.ru
|
|
COMMENT= Uploads files or directories to a ftpserver with support of resuming
|
|
|
|
PORTDOCS= ABOUT-NLS COPYING ChangeLog INSTALL TODO
|
|
PORTEXAMPLES= USAGE.examples USAGE.resumehandling USAGE.urlhandling \
|
|
passwordfile wputrc
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= LIBS="${LDFLAGS}"
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
MAKE_JOBS_UNSAFE=yes
|
|
|
|
OPTIONS_DEFINE= TLS NLS DOCS EXAMPLES
|
|
OPTIONS_DEFAULT= TLS
|
|
OPTIONS_SUB= yes
|
|
|
|
TLS_LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls
|
|
TLS_CONFIGURE_WITH= ssl
|
|
NLS_USES+= gettext iconv
|
|
NLS_CONFIGURE_ON= --enable-nls \
|
|
--with-libintl-prefix=${LOCALBASE} \
|
|
${ICONV_CONFIGURE_ARG}
|
|
NLS_CONFIGURE_OFF= --disable-nls --without-libiconv-prefix
|
|
|
|
pre-configure:
|
|
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \
|
|
${WRKSRC}/src/memdbg.c \
|
|
${WRKSRC}/src/socketlib.c
|
|
|
|
post-install:
|
|
${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>
|