ports/111981: [PATCH] ftp/lftp: make readline dependency optional

Rong-En Fan rafan at FreeBSD.org
Sat Apr 21 08:20:04 UTC 2007


>Number:         111981
>Category:       ports
>Synopsis:       [PATCH] ftp/lftp: make readline dependency optional
>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:   Sat Apr 21 08:20:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Rong-En Fan
>Release:        FreeBSD 6.2-STABLE amd64
>Organization:
NTU CSIE
>Environment:
>Description:
After Apr 18, 2007 6.x has readline 5.2 in base. On 7.x,
we have it since last Dec. Therefore, make readline dependency
optional.

Port maintainer (fm at cross-road.org.ua) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- lftp-3.5.10_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /big/freebsd-cvsup/ncvs/ports/ftp/lftp/Makefile,v
retrieving revision 1.116
diff -u -u -r1.116 Makefile
--- Makefile	11 Apr 2007 20:17:20 -0000	1.116
+++ Makefile	21 Apr 2007 08:16:30 -0000
@@ -24,8 +24,6 @@
 COMMENT=	Shell-like command line ftp client
 
 LIB_DEPENDS=	expat.6:${PORTSDIR}/textproc/expat2
-BUILD_DEPENDS+=	${LOCALBASE}/lib/libreadline.so.5:${PORTSDIR}/devel/readline
-RUN_DEPENDS=	${BUILD_DEPENDS}
 
 USE_ICONV=	yes
 USE_BZIP2=	yes
@@ -40,6 +38,11 @@
 
 .include <bsd.port.pre.mk>
 
+.if ${OSVERSION} < 602109 || (${OSVERSION} > 700000 && ${OSVERSION} < 700029)
+BUILD_DEPENDS+=	${LOCALBASE}/lib/libreadline.so.5:${PORTSDIR}/devel/readline
+RUN_DEPENDS+=	${LOCALBASE}/lib/libreadline.so.5:${PORTSDIR}/devel/readline
+.endif
+
 .if defined(WITH_GNUTLS)
 CONFIGURE_ARGS+=	--with-gnutls
 LIB_DEPENDS+=	gnutls:${PORTSDIR}/security/gnutls
--- lftp-3.5.10_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list