nut: update OpenSSL 1.1.0 patch
[feed/packages.git] / libs / p11-kit / Makefile
1 #
2 # Copyright (C) 2011-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=p11-kit
11 PKG_VERSION:=0.23.18.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://github.com/p11-glue/p11-kit/releases/download/$(PKG_VERSION)
16 PKG_HASH:=34c3bd8c0050dd7c4e6228aecf0f168de0a1b34562ddbf74a1c70904c2523c6f
17
18 PKG_MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
19 PKG_LICENSE:=BSD-3-Clause
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_BUILD_PARALLEL:=1
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/p11-kit
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=A library that provides a way to load and enumerate PKCS11 modules.
31 URL:=https://p11-glue.github.io/p11-glue/p11-kit.html
32 DEPENDS:=+libtasn1 +libpthread
33 endef
34
35 define Package/p11-kit/description
36 Provides a way to load and enumerate PKCS11 modules. Provides a
37 standard configuration setup for installing PKCS11 modules in such a
38 way that they are discoverable.
39 endef
40
41 TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
42
43 CONFIGURE_ARGS+= \
44 --disable-debug \
45 --disable-rpath \
46 --disable-trust-module \
47 --without-libffi \
48 --without-systemd
49
50 define Build/InstallDev
51 $(INSTALL_DIR) $(1)/usr/include/p11-kit-1/p11-kit/
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/p11-kit-1/p11-kit/* $(1)/usr/include/p11-kit-1/p11-kit/
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so $(1)/usr/lib/
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so* $(1)/usr/lib/
56 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/p11-kit-1.pc $(1)/usr/lib/pkgconfig/p11-kit-1.pc
58 endef
59
60 define Package/p11-kit/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so.* $(1)/usr/lib/
63 $(INSTALL_DIR) $(1)/etc/p11-kit/modules/
64 ifneq ($(CONFIG_PACKAGE_libopensc),)
65 $(CP) ./files/opensc.module $(1)/etc/p11-kit/modules/
66 endif
67 endef
68
69 $(eval $(call BuildPackage,p11-kit))