summaryrefslogtreecommitdiff
path: root/net/ncftp2/Makefile
blob: e5fa345c500db26721c47e2fc6758a70c91d5761 (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
50
51
52
53
54
55
56
57
# $NetBSD: Makefile,v 1.19 2000/01/15 18:46:32 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

BUILD_DEFS+=		USE_SOCKS

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "NetBSD"
DEPENDS+=		ncurses>=4.2:../../devel/ncurses
.endif

# 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
CONFIGURE_ENV+=		LIBS="-ledit -lncurses"
.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
.else
CPPFLAGS+=		-I${LOCALBASE}/include
.endif
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"