1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/ftp/wput/Makefile
Renato Botelho d5b972d8e6 ftp/wput: Move manpages to share/man
Approved by:	portmgr (blanket)
2024-01-18 15:19:35 -03:00

55 lines
1.4 KiB
Makefile

PORTNAME= wput
PORTVERSION= 0.6.2
PORTREVISION= 8
CATEGORIES= ftp
MASTER_SITES= SF
MAINTAINER= chip-set@mail.ru
COMMENT= Upload files or directories to FTP server with resume support
WWW= https://wput.sourceforge.net/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= tar:tgz
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE=yes
PORTDOCS= ABOUT-NLS COPYING ChangeLog INSTALL TODO
PORTEXAMPLES= USAGE.examples USAGE.resumehandling USAGE.urlhandling \
passwordfile wputrc
OPTIONS_DEFINE= TLS NLS DOCS EXAMPLES
OPTIONS_DEFAULT=TLS
OPTIONS_SUB= yes
NLS_USES= gettext iconv
NLS_CONFIGURE_ON= ${ICONV_CONFIGURE_ARG}
NLS_CONFIGURE_ENABLE= nls
NLS_CONFIGURE_WITH= libintl-prefix=${LOCALBASE}
TLS_LIB_DEPENDS= libgnutls.so:security/gnutls
TLS_CONFIGURE_WITH= ssl
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=int-conversion
.endif
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}${PREFIX}/share/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.post.mk>