ports/171999: ftp/ncftp2: Support USE_READLINE
KATO Tsuguru
tkato432 at yahoo.com
Tue Sep 25 18:10:23 UTC 2012
>Number: 171999
>Category: ports
>Synopsis: ftp/ncftp2: Support USE_READLINE
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Sep 25 18:10:22 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Support USE_READLINE
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/ftp/ncftp2/Makefile ftp/ncftp2/Makefile
--- /usr/ports/ftp/ncftp2/Makefile 2012-02-13 14:44:23.000000000 +0900
+++ ftp/ncftp2/Makefile 2012-09-25 03:31:57.000000000 +0900
@@ -1,9 +1,5 @@
-# New ports collection makefile for: ncftp2
-# Date created: 4 Nov 1994
-# Whom: ache
-#
+# Created by: ache
# $FreeBSD: ports/ftp/ncftp2/Makefile,v 1.56 2012/02/13 05:44:23 jpaetzel Exp $
-#
PORTNAME= ncftp
PORTVERSION= 2.4.3
@@ -14,23 +10,45 @@
MAINTAINER= ports at 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>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list