summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2012-07-27 13:20:26 +0000
committerjperkin <jperkin@pkgsrc.org>2012-07-27 13:20:26 +0000
commit5efc3c98516f8e646b289e31723e7fa7828600a1 (patch)
treec53cb0b71375f297c46364edc6953e2109ef4691 /pkgtools
parent209d93a89ac15b51c2a5b75067c9ea49994cfe90 (diff)
downloadpkgsrc-5efc3c98516f8e646b289e31723e7fa7828600a1.tar.gz
Sync with net/libfetch/options.mk so that the bundled libfetch can be
correctly built without SSL support.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_install/options.mk18
1 files changed, 16 insertions, 2 deletions
diff --git a/pkgtools/pkg_install/options.mk b/pkgtools/pkg_install/options.mk
index 29c1645d029..29272e1226b 100644
--- a/pkgtools/pkg_install/options.mk
+++ b/pkgtools/pkg_install/options.mk
@@ -1,9 +1,15 @@
-# $NetBSD: options.mk,v 1.2 2012/06/12 15:46:02 wiz Exp $
+# $NetBSD: options.mk,v 1.3 2012/07/27 13:20:26 jperkin Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.libfetch
-PKG_SUPPORTED_OPTIONS= inet6
+PKG_SUPPORTED_OPTIONS= inet6 openssl
PKG_SUGGESTED_OPTIONS= inet6
+.include "../../security/openssl/builtin.mk"
+
+.if !empty(USE_BUILTIN.openssl:M[yY][eE][sS])
+PKG_SUGGESTED_OPTIONS+= openssl
+.endif
+
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Minet6)
@@ -11,3 +17,11 @@ MAKE_ENV+= FETCH_WITH_INET6=yes
.else
MAKE_ENV+= FETCH_WITH_INET6=no
.endif
+
+.if !empty(PKG_OPTIONS:Mopenssl)
+MAKE_ENV+= FETCH_WITH_OPENSSL=yes
+
+.include "../../security/openssl/buildlink3.mk"
+.else
+MAKE_ENV+= FETCH_WITH_OPENSSL=no
+.endif