blob: 997e4075951ef5aeaeb575e1c6c8de66d2700513 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $NetBSD: Makefile,v 1.15 1999/07/13 01:34:40 jlam 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/
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-extra-dirs
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
DEPENDS+= ncurses-4.2:../../devel/ncurses
.endif
.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
CONFIGURE_ENV+= LIBS="-ledit"
.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
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ncftp ${PREFIX}/bin/ncftp2
${INSTALL_MAN} ${WRKSRC}/ncftp.1 ${PREFIX}/man/man1/ncftp2.1
.include "../../mk/bsd.pkg.mk"
|