aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2012-12-14 10:32:57 +0800
committeraraujo <araujo@FreeBSD.org>2012-12-14 10:32:57 +0800
commitc5225006477432f4a7f135a34875181c0a291bb8 (patch)
treeff41c1e0288db6488160b8057ed25a4bcd394b70 /ftp
parent8489fc30e115cba3ca3eeae08608b04f0947e5ff (diff)
downloadfreebsd-ports-gnome-c5225006477432f4a7f135a34875181c0a291bb8.tar.gz
freebsd-ports-gnome-c5225006477432f4a7f135a34875181c0a291bb8.tar.zst
freebsd-ports-gnome-c5225006477432f4a7f135a34875181c0a291bb8.zip
- Support USE_READLINE.
- Trim header. - Convert to new option framework. PR: ports/171999 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'ftp')
-rw-r--r--ftp/ncftp2/Makefile48
1 files changed, 33 insertions, 15 deletions
diff --git a/ftp/ncftp2/Makefile b/ftp/ncftp2/Makefile
index 676213ae23e1..3c4b79cf7ee8 100644
--- a/ftp/ncftp2/Makefile
+++ b/ftp/ncftp2/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: ncftp2
-# Date created: 4 Nov 1994
-# Whom: ache
-#
+# Created by: ache
# $FreeBSD$
-#
PORTNAME= ncftp
PORTVERSION= 2.4.3
@@ -14,23 +10,45 @@ MASTER_SITES= ftp://ftp.ncftp.com/ncftp/
MAINTAINER= ports@FreeBSD.org
COMMENT= FTP replacement with advanced user interface
+LICENSE= GPLv2
+
+OPTIONS_DEFINE= READLINE
+OPTIONS_DEFAULT=READLINE
+READLINE_DESC= Enable readline support
+
+USE_NCURSES= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= ac_cv_func_getmaxyx=yes
+MAKE_JOBS_SAFE= yes
+
+MAN1= ncftp2.1
+PLIST_FILES= bin/${LATEST_LINK}
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MREADLINE}
+USE_READLINE= yes
+.else
+CONFIGURE_ARGS+=--disable-readline
+.endif
+
.if defined(INSTALL_AS_NCFTP)
LATEST_LINK= ncftp
.else
LATEST_LINK= ncftp2
.endif
-PLIST_FILES= bin/${LATEST_LINK}
-GNU_CONFIGURE= yes
-CONFIGURE_ENV= ac_cv_func_getmaxyx=yes ac_cv_lib_readline=yes
-MAN1= ncftp2.1
-pre-fetch:
- @${ECHO} ""
- @${ECHO} "Use INSTALL_AS_NCFTP=yes to install ncftp1 as ${PREFIX}/bin/ncftp"
- @${ECHO} ""
+pre-everything::
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "Use INSTALL_AS_NCFTP=yes to install ncftp2 as ${PREFIX}/bin/ncftp"
+ @${ECHO_MSG} ""
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|^exdirs=.*|exdirs=""|' ${WRKSRC}/configure
do-install:
- $(INSTALL_PROGRAM) $(WRKSRC)/ncftp $(PREFIX)/bin/${LATEST_LINK}
- $(INSTALL_MAN) $(WRKSRC)/ncftp.1 $(PREFIX)/man/man1/ncftp2.1
+ ${INSTALL_PROGRAM} ${WRKSRC}/ncftp ${PREFIX}/bin/${LATEST_LINK}
+ ${INSTALL_MAN} ${WRKSRC}/ncftp.1 ${MANPREFIX}/man/man1/ncftp2.1
.include <bsd.port.mk>