jose: remove libjose
authorRosen Penev <rosenp@gmail.com>
Thu, 16 Dec 2021 23:22:12 +0000 (15:22 -0800)
committerRosen Penev <rosenp@gmail.com>
Fri, 17 Dec 2021 22:08:20 +0000 (14:08 -0800)
It can be built statically as nothing else uses it.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/jose/Makefile

index 1be4697180c0f6dd47a9d1a13a9a75468506af4c..6360a70d3808d5bd5dc098c1cc6d4b4ba57046b4 100644 (file)
@@ -19,20 +19,15 @@ PKG_MAINTAINER:=Tibor Dudlák <tibor.dudlak@gmail.com>
 PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=COPYING
 
+PKG_BUILD_DEPENDS:=openssl
+
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/meson.mk
 
-define Package/libjose
-  SECTION:=libs
-  TITLE:=Provides a full crypto stack including key generation, signing and encryption.
-  DEPENDS:=+zlib +jansson +libopenssl +libpthread
-  URL:=https://github.com/latchset/jose
-endef
-
 define Package/jose
   SECTION:=utils
   TITLE:=Provides a full crypto stack including key generation, signing and encryption.
-  DEPENDS:=+libjose
+  DEPENDS:=+jansson
   URL:=https://github.com/latchset/jose
 endef
 
@@ -42,31 +37,22 @@ define Package/jose/description
        crypto stack including key generation, signing and encryption.
 endef
 
-define Package/libjose/description
-       libjose is a library for performing various tasks on JSON
-       Object Signing and Encryption (JOSE) objects. José provides a full
-       crypto stack including key generation, signing and encryption.
-endef
+MESON_ARGS += \
+       -Ddefault_library=static
 
 define Build/InstallDev
        $(INSTALL_DIR)  $(1)/usr/lib
        $(INSTALL_DIR)  $(1)/usr/include
        $(INSTALL_DIR)  $(1)/usr/include/$(PKG_NAME)
        $(INSTALL_DIR)  $(1)/usr/lib/pkgconfig
-       $(CP)   $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).so*   $(1)/usr/lib
+       $(CP)   $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).a     $(1)/usr/lib
        $(CP)   $(PKG_INSTALL_DIR)/usr/include/$(PKG_NAME)/*.h  $(1)/usr/include/$(PKG_NAME)
        $(CP)   $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc       $(1)/usr/lib/pkgconfig
 endef
 
-define Package/libjose/install
-       $(INSTALL_DIR)  $(1)/usr/lib
-       $(CP)           $(PKG_INSTALL_DIR)/usr/lib/lib$(PKG_NAME).so*   $(1)/usr/lib/
-endef
-
 define Package/jose/install
        $(INSTALL_DIR)  $(1)/usr/bin
        $(INSTALL_BIN)  $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME)          $(1)/usr/bin/
 endef
 
-$(eval $(call BuildPackage,libjose))
 $(eval $(call BuildPackage,jose))