diff --git a/ftp/lftp/Makefile b/ftp/lftp/Makefile index 0ce5e8ddb478..1afec41789b4 100644 --- a/ftp/lftp/Makefile +++ b/ftp/lftp/Makefile @@ -27,7 +27,11 @@ GNU_CONFIGURE= yes # XXX Fix readline detection with a non-standard LOCALBASE # To remove when m4/lftp_lib_readline.m4 is fixed upstream +.if !exists(/usr/lib/libreadline.so) CONFIGURE_ARGS+= --with-readline=${LOCALBASE} +.else +CONFIGURE_ARGS+= --with-readline=/usr +.endif PORTDOCS= AUTHORS BUGS ChangeLog FAQ FEATURES INSTALL \ MIRRORS NEWS README README.debug-levels README.modules \