pkgsrc/net/ncftp2/Makefile

52 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.22 2001/02/17 18:19:10 wiz Exp $
# FreeBSD Id: Makefile,v 1.39 1998/01/31 17:49:48 jseger Exp
#
DISTNAME= ncftp-2.4.3
CATEGORIES= net
MASTER_SITES= ftp://ftp.ncftp.com/ncftp/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.ncftp.com/ncftp/
COMMENT= FTP replacement with advanced user interface
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-extra-dirs
BUILD_DEFS+= USE_SOCKS
.include "../../mk/bsd.prefs.mk"
# Check for readline.h as standard
.if exists(/usr/include/readline.h)
CPPFLAGS+= -DHAVE_LIBREADLINE=1
CPPFLAGS+= -DHAVE_FILENAME_COMPLETION_FUNCTION=1
CPPFLAGS+= -DHAVE_READLINE_H=1 -DHAVE_HISTORY_H=1
CONFIGURE_ARGS+= --disable-readline --disable-ncurses
CONFIGURE_ENV+= LIBS="-ledit -ltermcap"
.else
DEPENDS+= readline>=4.0:../../devel/readline
.endif
# Include SOCKS firewall support
.if defined(USE_SOCKS) && (${USE_SOCKS} == 4 || ${USE_SOCKS} == 5)
.if ${USE_SOCKS} == 4
CONFIGURE_ARGS+= --enable-socks
DEPENDS+= socks4-2.2:../../net/socks4
.else
CONFIGURE_ARGS+= --enable-socks5
DEPENDS+= socks5-1.0.2:../../net/socks5
.endif
.endif
.if ${OPSYS} == "SunOS"
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ncftp ${PREFIX}/bin/ncftp2
${INSTALL_MAN} ${WRKSRC}/ncftp.1 ${PREFIX}/man/man1/ncftp2.1
.include "../../mk/bsd.pkg.mk"