summaryrefslogtreecommitdiff
path: root/net/ucspi-ssl/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'net/ucspi-ssl/options.mk')
-rw-r--r--net/ucspi-ssl/options.mk18
1 files changed, 14 insertions, 4 deletions
diff --git a/net/ucspi-ssl/options.mk b/net/ucspi-ssl/options.mk
index 8bfa7c78033..f81fcd939b0 100644
--- a/net/ucspi-ssl/options.mk
+++ b/net/ucspi-ssl/options.mk
@@ -1,13 +1,23 @@
-# $NetBSD: options.mk,v 1.1.1.1 2006/01/11 20:17:58 schmonz Exp $
+# $NetBSD: options.mk,v 1.2 2006/04/02 17:44:16 schmonz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ucspi-ssl
-PKG_SUPPORTED_OPTIONS+= tls
+PKG_SUPPORTED_OPTIONS+= ucspi-ssl-perl tls
.include "../../mk/bsd.options.mk"
+.if !empty(PKG_OPTIONS:Mucspi-ssl-perl)
+.include "../../lang/perl5/buildlink3.mk"
+USE_TOOLS+= perl:run
+SSL_PROGRAMS+= sslperl
+PLIST_SRC+= ${PKGDIR}/PLIST.perl
+DJB_CONFIG_CMDS+= ${ECHO} ${PERL5} > conf-perl;
+.else
+DJB_BUILD_ARGS+= - sslperl
+.endif
+
.if !empty(PKG_OPTIONS:Mtls)
TLS_PATCH= ucspi-ssl-0.70-ucspitls-0.1.patch
-PATCHFILES+= ${TLS_PATCH}
-SITES_${TLS_PATCH}= http://www.suspectclass.com/~sgifford/ucspi-tls/files/
+PATCHFILES+= ${TLS_PATCH}
+SITES.${TLS_PATCH}= http://www.suspectclass.com/~sgifford/ucspi-tls/files/
PATCH_DIST_STRIP.${TLS_PATCH}= -p1
.endif