Merge pull request #8613 from diizzyy/libx264
[feed/packages.git] / libs / jose / Makefile
1 #
2 # Author: Tibor Dudlák
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:=jose
11 PKG_VERSION:=10
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=https://github.com/latchset/$(PKG_NAME)/releases/download/v$(PKG_VERSION)/
16 PKG_HASH:=5c9cdcfb535c4d9f781393d7530521c72b1dd81caa9934cab6dd752cc7efcd72
17
18 PKG_INSTALL:=1
19 PKG_BUILD_PARALLEL:=1
20
21 PKG_FIXUP:=autoreconf
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libjose
26 SECTION:=libs
27 TITLE:=Provides a full crypto stack including key generation, signing and encryption.
28 DEPENDS:=+zlib +jansson +libopenssl +libpthread
29 URL:=https://github.com/latchset/jose
30 MAINTAINER:=Tibor Dudlák <tibor.dudlak@gmail.com>
31 endef
32
33 define Package/jose
34 SECTION:=utils
35 TITLE:=Provides a full crypto stack including key generation, signing and encryption.
36 DEPENDS:=+libjose
37 URL:=https://github.com/latchset/jose
38 MAINTAINER:=Tibor Dudlák <tibor.dudlak@gmail.com>
39 endef
40
41 define Package/jose/description
42 jose is a command line utility for performing various tasks on JSON
43 Object Signing and Encryption (JOSE) objects. José provides a full
44 crypto stack including key generation, signing and encryption.
45 endef
46
47 define Package/libjose/description
48 libjose is a library for performing various tasks on JSON
49 Object Signing and Encryption (JOSE) objects. José provides a full
50 crypto stack including key generation, signing and encryption.
51 endef
52
53 define Build/InstallDev
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(INSTALL_DIR) $(1)/usr/include
56 $(INSTALL_DIR) $(1)/usr/include/$(PKG_NAME)
57 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).so* $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/include/$(PKG_NAME)/*.h $(1)/usr/include/$(PKG_NAME)
60 $(CP) $(PKG_BUILD_DIR)/*.pc $(1)/usr/lib/pkgconfig
61 endef
62
63 define Package/libjose/install
64 $(INSTALL_DIR) $(1)/usr/lib
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).so* $(1)/usr/lib/
66 endef
67
68 define Package/jose/install
69 $(INSTALL_DIR) $(1)/usr/bin
70 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
71 endef
72
73 $(eval $(call BuildPackage,libjose))
74 $(eval $(call BuildPackage,jose))