From 73c2da9d38abbd47715ed45fa3d513a02a16c969 Mon Sep 17 00:00:00 2001 From: Ganael LAPLANCHE Date: Mon, 11 Jun 2012 07:56:37 +0000 Subject: [PATCH] - Un-version LIB_DEPENDS - Switch to OptionsNg - Add OPENSSL description to bsd.options.desc.mk --- Mk/bsd.options.desc.mk | 1 + ftp/lftp/Makefile | 26 ++++++++++---------------- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/Mk/bsd.options.desc.mk b/Mk/bsd.options.desc.mk index f18640cc7125..d5a9bb5fa611 100644 --- a/Mk/bsd.options.desc.mk +++ b/Mk/bsd.options.desc.mk @@ -131,6 +131,7 @@ NOTIFY_DESC?= Enable startup notification support ODBC_DESC?= Enable ODBC backend ODF_DESC?= Enable ODF support OPENGL_DESC?= Enable OpenGL support +OPENSSL_DESC?= Enable SSL support via OpenSSL OPTIMIZED_CFLAGS_DESC?= Enable compilation optimizations ORACLE_DESC?= Enable Oracle support OSS_DESC?= Enable Open Sound System support diff --git a/ftp/lftp/Makefile b/ftp/lftp/Makefile index 5f3ca60db7dc..c34f0dec80c3 100644 --- a/ftp/lftp/Makefile +++ b/ftp/lftp/Makefile @@ -7,6 +7,7 @@ PORTNAME= lftp PORTVERSION= 4.3.6 +PORTREVISION= 1 CATEGORIES= ftp ipv6 MASTER_SITES= http://ftp.yars.free.net/pub/source/lftp/ \ http://ftp.yars.free.net/pub/source/lftp/old/ \ @@ -22,7 +23,7 @@ COMMENT= Shell-like command line ftp client LICENSE= GPLv3 -LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2 +LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2 USE_ICONV= yes @@ -38,27 +39,28 @@ PORTDOCS= AUTHORS BUGS ChangeLog FAQ FEATURES INSTALL \ MIRRORS NEWS README README.debug-levels README.modules \ THANKS TODO -OPTIONS= OPENSSL "With OpenSSL support" on \ - GNUTLS "With GnutTLS support" off \ - NLS "With i18n support" on +OPTIONS_DEFINE= SSL NLS +OPTIONS_SINGLE= SSL +OPTIONS_SINGLE_SSL= OPENSSL GNUTLS +OPTIONS_DEFAULT= SSL OPENSSL NLS .include -.if !defined(WITHOUT_OPENSSL) +.if ${PORT_OPTIONS:MOPENSSL} .include "${PORTSDIR}/Mk/bsd.openssl.mk" CONFIGURE_ARGS+= --with-openssl .else CONFIGURE_ARGS+= --without-openssl .endif -.if defined(WITH_GNUTLS) +.if ${PORT_OPTIONS:MGNUTLS} LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls CONFIGURE_ARGS+= --with-gnutls .else CONFIGURE_ARGS+= --without-gnutls .endif -.if !defined(WITHOUT_NLS) +.if ${PORT_OPTIONS:MNLS} USE_GETTEXT= yes CONFIGURE_ARGS+= --enable-nls PLIST_SUB+= NLS="" @@ -70,20 +72,12 @@ PLIST_SUB+= NLS="@comment " MAN1= lftp.1 lftpget.1 MAN5= lftp.conf.5 -pre-configure: -.if !defined(WITHOUT_OPENSSL) && defined(WITH_GNUTLS) - @${ECHO_MSG} "========" - @${ECHO_MSG} "WARNING: both OPENSSL and GNUTLS have been selected, OPENSSL will be used" - @${ECHO_MSG} "========" -.endif - post-install: @${INSTALL_DATA} ${WRKSRC}/lftp.conf ${PREFIX}/etc/lftp.conf.sample .if !exists(${PREFIX}/etc/lftp.conf) ${CP} -p ${PREFIX}/etc/lftp.conf.sample ${PREFIX}/etc/lftp.conf .endif - -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} .for doc in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}