shairplay: remove
[feed/packages.git] / libs / libp11 / 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:=libp11
11 PKG_VERSION:=0.4.12
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_URL:=https://github.com/OpenSC/libp11/releases/download/$(PKG_NAME)-$(PKG_VERSION)/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_HASH:=1e1a2533b3fcc45fde4da64c9c00261b1047f14c3f911377ebd1b147b3321cfd
17
18 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
19 PKG_LICENSE:=LGPL-2.1-or-later
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_BUILD_PARALLEL:=1
23 PKG_FIXUP:=libtool
24 PKG_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/libp11
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=PKCS#11 wrapper library
32 URL:=https://www.opensc-project.org/opensc/wiki/libp11
33 DEPENDS:=+libopenssl +@OPENSSL_ENGINE
34 CONFLICTS:=engine_pkcs11
35 endef
36
37 define Package/libp11/description
38 Libp11 is a library implementing a small layer on top of PKCS#11 API
39 to make using PKCS#11 implementations easier.
40 endef
41
42 CONFIGURE_ARGS += --with-enginesdir=/usr/lib/engines
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/include/
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11.{a,so} $(1)/usr/lib/
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11.so* $(1)/usr/lib/
50 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libp11.pc $(1)/usr/lib/pkgconfig/libp11.pc
52 endef
53
54 define Package/libp11/install
55 $(INSTALL_DIR) $(1)/usr/lib/
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11.so.* $(1)/usr/lib/
57 $(INSTALL_DIR) $(1)/usr/lib/engines
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/engines/*.so* $(1)/usr/lib/engines
59 $(LN) pkcs11.so $(1)/usr/lib/engines/libpkcs11.so
60 endef
61
62 $(eval $(call BuildPackage,libp11))