You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2012-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=ecdsautils
  9. PKG_VERSION:=0.3.2.20160630
  10. PKG_RELEASE:=1
  11. PKG_REV:=07538893fb6c2a9539678c45f9dbbf1e4f222b46
  12. PKG_MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net>
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  14. PKG_SOURCE_URL:=git://github.com/tcatm/$(PKG_NAME).git
  15. PKG_SOURCE_VERSION:=$(PKG_REV)
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_SOURCE_PROTO:=git
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. define Package/libecdsautil
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. DEPENDS:=+libuecc
  24. TITLE:=ECDSA library
  25. URL:=https://github.com/tcatm/ecdsautils
  26. endef
  27. define Package/ecdsautils
  28. SECTION:=utils
  29. CATEGORY:=Utilities
  30. DEPENDS:=+libecdsautil +libuecc
  31. TITLE:=ECDSA Utilities
  32. URL:=https://github.com/tcatm/ecdsautils
  33. endef
  34. CMAKE_OPTIONS += \
  35. -DCMAKE_BUILD_TYPE:String="MINSIZEREL" \
  36. define Package/libecdsautil/description
  37. Library to sign and verify checksums using ECDSA.
  38. endef
  39. define Package/ecdsautils/description
  40. Utilities to sign and verify checksums using ECDSA.
  41. endef
  42. define Package/libecdsautil/install
  43. $(INSTALL_DIR) $(1)/usr/lib/
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libecdsautil.so* $(1)/usr/lib/
  45. endef
  46. define Package/ecdsautils/install
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ecdsautil $(1)/usr/bin/
  49. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ecdsakeygen $(1)/usr/bin/
  50. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ecdsasign $(1)/usr/bin/
  51. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ecdsaverify $(1)/usr/bin/
  52. endef
  53. define Build/InstallDev
  54. $(INSTALL_DIR) $(1)/usr/
  55. $(CP) $(PKG_INSTALL_DIR)/usr/include $(1)/usr/
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr/
  57. endef
  58. $(eval $(call BuildPackage,libecdsautil))
  59. $(eval $(call BuildPackage,ecdsautils))