Merge pull request #16078 from ja-pa/fix-email
[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.24.0
12 PKG_RELEASE:=$(AUTORELEASE)
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=https://github.com/p11-glue/p11-kit/releases/download/$(PKG_VERSION)
16 PKG_HASH:=81e6140584f635e4e956a1b93a32239acf3811ff5b2d3a5c6094e94e99d2c685
17
18 PKG_MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
19 PKG_LICENSE:=BSD-3-Clause
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_INSTALL:=1
23 PKG_BUILD_DEPENDS:=meson/host
24
25 include $(INCLUDE_DIR)/package.mk
26 include ../../devel/meson/meson.mk
27
28 define Package/p11-kit
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=A library that provides a way to load and enumerate PKCS11 modules.
32 URL:=https://p11-glue.github.io/p11-glue/p11-kit.html
33 DEPENDS:=+libtasn1 +libpthread
34 endef
35
36 define Package/p11-kit/description
37 Provides a way to load and enumerate PKCS11 modules. Provides a
38 standard configuration setup for installing PKCS11 modules in such a
39 way that they are discoverable.
40 endef
41
42 TARGET_LDFLAGS += -Wl,--gc-sections
43
44 MESON_ARGS += \
45 -Dhash_impl=internal \
46 -Dlibffi=disabled \
47 -Dtrust_module=disabled \
48 -Dstrict=false \
49 -Dsystemd=disabled \
50 -Dgtk_doc=false \
51 -Dman=false
52
53 define Build/InstallDev
54 $(INSTALL_DIR) $(1)/usr/include/p11-kit-1/p11-kit/
55 $(CP) $(PKG_INSTALL_DIR)/usr/include/p11-kit-1/p11-kit/* $(1)/usr/include/p11-kit-1/p11-kit/
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so* $(1)/usr/lib/
58 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/p11-kit-1.pc $(1)/usr/lib/pkgconfig/p11-kit-1.pc
60 endef
61
62 define Package/p11-kit/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so.* $(1)/usr/lib/
65 $(INSTALL_DIR) $(1)/etc/pkcs11/modules/
66 ifneq ($(CONFIG_PACKAGE_libopensc),)
67 $(CP) ./files/opensc.module $(1)/etc/pkcs11/modules/
68 endif
69 endef
70
71 $(eval $(call BuildPackage,p11-kit))