2 # Copyright (C) 2011-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
12 PKG_RELEASE
:=$(AUTORELEASE
)
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
18 PKG_MAINTAINER
:=Nikos Mavrogiannopoulos
<n.mavrogiannopoulos@gmail.com
>
19 PKG_LICENSE
:=BSD-3-Clause
20 PKG_LICENSE_FILES
:=COPYING
23 PKG_BUILD_DEPENDS
:=meson
/host
25 include $(INCLUDE_DIR
)/package.mk
26 include ..
/..
/devel
/meson
/meson.mk
28 define Package
/p11-kit
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
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.
42 TARGET_LDFLAGS
+= -Wl
,--gc-sections
45 -Dhash_impl
=internal \
47 -Dtrust_module
=disabled \
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
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
/
71 $(eval
$(call BuildPackage
,p11-kit
))