Revert package feed back
[librecmc/package-feed.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.1
12 PKG_RELEASE:=1
13 PKG_MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_MD5SUM:=96f073270c489c9a594e1c9413f42db8
17 PKG_SOURCE_URL:=http://p11-glue.freedesktop.org/releases/
18
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/p11-kit
24   SECTION:=libs
25   CATEGORY:=Libraries
26   TITLE:=A library that provides a way to load and enumerate PKCS11 modules.
27   URL:=http://p11-glue.freedesktop.org/p11-kit.html
28   DEPENDS:=+libtasn1 +libpthread
29 endef
30
31 define Package/p11-kit/description
32   Provides a way to load and enumerate PKCS11 modules. Provides a
33   standard configuration setup for installing PKCS11 modules in such a
34   way that they are discoverable.
35 endef
36
37 CONFIGURE_ARGS+= \
38         --without-libffi
39
40 define Build/InstallDev
41         $(INSTALL_DIR) $(1)/usr/include/p11-kit-1/p11-kit/
42         $(CP) $(PKG_INSTALL_DIR)/usr/include/p11-kit-1/p11-kit/* $(1)/usr/include/p11-kit-1/p11-kit/
43         $(INSTALL_DIR) $(1)/usr/lib
44         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so $(1)/usr/lib/
45         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so* $(1)/usr/lib/
46         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
47         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/p11-kit-1.pc $(1)/usr/lib/pkgconfig/p11-kit-1.pc
48 endef
49
50 define Package/p11-kit/install
51         $(INSTALL_DIR) $(1)/usr/lib
52         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so.* $(1)/usr/lib/
53         $(INSTALL_DIR) $(1)/etc/p11-kit/modules/
54 ifneq ($(CONFIG_PACKAGE_libopensc),)
55         $(CP) ./files/opensc.module $(1)/etc/p11-kit/modules/
56 endif
57 endef
58
59 $(eval $(call BuildPackage,p11-kit))