diff options
Diffstat (limited to 'net/lftp/options.mk')
-rw-r--r-- | net/lftp/options.mk | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/net/lftp/options.mk b/net/lftp/options.mk index b8e668b444c..1dfb270806f 100644 --- a/net/lftp/options.mk +++ b/net/lftp/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.5 2005/08/31 18:36:19 tv Exp $ +# $NetBSD: options.mk,v 1.6 2005/12/04 22:12:07 salo Exp $ # PKG_OPTIONS_VAR= PKG_OPTIONS.lftp @@ -6,7 +6,8 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.lftp PKG_OPTIONS_OPTIONAL_GROUPS= ssl PKG_OPTIONS_GROUP.ssl= gnutls ssl -PKG_SUGGESTED_OPTIONS= gnutls +PKG_SUPPORTED_OPTIONS= perl +PKG_SUGGESTED_OPTIONS= ssl .include "../../mk/bsd.options.mk" @@ -24,3 +25,17 @@ CONFIGURE_ARGS+= --with-openssl=${SSLBASE} CONFIGURE_ARGS+= --without-gnutls CONFIGURE_ARGS+= --without-openssl .endif + +.if !empty(PKG_OPTIONS:Mperl) +USE_TOOLS+= perl:run +DEPENDS+= p5-Digest-MD5-[0-9]*:../../security/p5-Digest-MD5 +DEPENDS+= p5-String-CRC32-[0-9]*:../../textproc/p5-String-CRC32 +REPLACE_PERL= src/convert-netscape-cookies src/verify-file +PLIST_SRC+= ${PKGDIR}/PLIST.perl + +post-install-perl: + ${INSTALL_SCRIPT} ${WRKSRC}/src/convert-netscape-cookies \ + ${WRKSRC}/src/verify-file ${PREFIX}/share/lftp +.else +post-install-perl: +.endif |