2014-06-20 15:46:29 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2011-2014 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=p11-kit
|
2019-11-12 03:51:53 +00:00
|
|
|
PKG_VERSION:=0.23.18.1
|
2019-09-18 21:57:19 +00:00
|
|
|
PKG_RELEASE:=1
|
2014-06-20 15:46:29 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2019-02-10 06:41:32 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/p11-glue/p11-kit/releases/download/$(PKG_VERSION)
|
2019-11-12 03:51:53 +00:00
|
|
|
PKG_HASH:=34c3bd8c0050dd7c4e6228aecf0f168de0a1b34562ddbf74a1c70904c2523c6f
|
2019-02-10 06:41:32 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
|
2019-07-01 18:13:31 +00:00
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
2019-02-10 06:41:32 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2014-06-20 15:46:29 +00:00
|
|
|
|
2018-08-12 20:11:06 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2014-06-20 15:46:29 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/p11-kit
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=A library that provides a way to load and enumerate PKCS11 modules.
|
2018-03-26 01:05:08 +00:00
|
|
|
URL:=https://p11-glue.github.io/p11-glue/p11-kit.html
|
2014-06-20 15:46:29 +00:00
|
|
|
DEPENDS:=+libtasn1 +libpthread
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/p11-kit/description
|
|
|
|
Provides a way to load and enumerate PKCS11 modules. Provides a
|
|
|
|
standard configuration setup for installing PKCS11 modules in such a
|
|
|
|
way that they are discoverable.
|
|
|
|
endef
|
|
|
|
|
2019-06-07 00:02:52 +00:00
|
|
|
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
|
2019-02-10 06:41:32 +00:00
|
|
|
|
2014-06-20 15:46:29 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
2019-02-10 06:41:32 +00:00
|
|
|
--disable-debug \
|
2019-06-07 00:02:52 +00:00
|
|
|
--disable-rpath \
|
2019-02-10 06:41:32 +00:00
|
|
|
--disable-trust-module \
|
2019-06-07 00:02:52 +00:00
|
|
|
--without-libffi \
|
|
|
|
--without-systemd
|
2014-06-20 15:46:29 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/p11-kit-1/p11-kit/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/p11-kit-1/p11-kit/* $(1)/usr/include/p11-kit-1/p11-kit/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so* $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/p11-kit-1.pc $(1)/usr/lib/pkgconfig/p11-kit-1.pc
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/p11-kit/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so.* $(1)/usr/lib/
|
2014-06-20 18:26:14 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/p11-kit/modules/
|
|
|
|
ifneq ($(CONFIG_PACKAGE_libopensc),)
|
|
|
|
$(CP) ./files/opensc.module $(1)/etc/p11-kit/modules/
|
|
|
|
endif
|
2014-06-20 15:46:29 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,p11-kit))
|