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
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
18 PKG_MAINTAINER
:=Daniel Golle
<daniel@makrotopia.org
>
19 PKG_LICENSE
:=LGPL-2.1
-or-later
20 PKG_LICENSE_FILES
:=COPYING
26 include $(INCLUDE_DIR
)/package.mk
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
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.
42 CONFIGURE_ARGS
+= --with-enginesdir
=/usr
/lib
/engines
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
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
62 $(eval
$(call BuildPackage
,libp11
))