summaryrefslogtreecommitdiff
path: root/package/libp11
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-10-20 07:58:13 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-10-22 22:31:26 +0200
commit26e2aca4359bc7cff080c8446a67b838a5026d15 (patch)
tree404eafc8d39d46286fc41118e9d511f873b6ce8d /package/libp11
parent75114af47a5f090b59b80d511472493b93c2e2c6 (diff)
ssl: rework ssl support
Use libressl as default, where SSL is required. Allow to choose openssl. Disable SSL where not strictly required to build.
Diffstat (limited to 'package/libp11')
-rw-r--r--package/libp11/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/package/libp11/Makefile b/package/libp11/Makefile
index 7d43f9517..937cad5cc 100644
--- a/package/libp11/Makefile
+++ b/package/libp11/Makefile
@@ -9,14 +9,22 @@ PKG_RELEASE:= 1
PKG_HASH:= a4121015503ade98074b5e2a2517fc8a139f8b28aed10021db2bb77283f40691
PKG_DESCR:= library implementing a small layer on top of pkcs11 api
PKG_SECTION:= libs/crypto
-PKG_DEPENDS:= libopenssl libltdl
-PKG_BUILDDEP:= openssl libtool
+PKG_DEPENDS:= libltdl
+PKG_BUILDDEP:= libtool
PKG_URL:= https://github.com/OpenSC/libp11/wiki
PKG_SITES:= http://sourceforge.net/projects/opensc/files/libp11/
PKG_OPTS:= dev
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
+PKG_CHOICES_LIBP11:= WITH_LIBRESSL WITH_OPENSSL
+PKGCD_WITH_LIBRESSL:= use libressl for crypto
+PKGCB_WITH_LIBRESSL:= libressl
+PKGCS_WITH_LIBRESSL:= libressl
+PKGCD_WITH_OPENSSL:= use openssl for crypto
+PKGCB_WITH_OPENSSL:= openssl
+PKGCS_WITH_OPENSSL:= libopenssl
+
include ${ADK_TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBP11,libp11,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))