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.

71 lines
1.8 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_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/freifunk-gluon/ecdsautils
  13. PKG_SOURCE_VERSION:=07538893fb6c2a9539678c45f9dbbf1e4f222b46
  14. PKG_MIRROR_HASH:=397395a471c0b5af1a173666ba21a5bedb4c3423a6e37c545c3627bed73dcb76
  15. PKG_MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net>
  16. PKG_LICENSE_FILES:=COPYRIGHT
  17. PKG_BUILD_PARALLEL:=1
  18. CMAKE_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/libecdsautil
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. DEPENDS:=+libuecc
  25. TITLE:=ECDSA library
  26. URL:=https://github.com/tcatm/ecdsautils
  27. LICENSE:=MIT
  28. endef
  29. define Package/ecdsautils
  30. SECTION:=utils
  31. CATEGORY:=Utilities
  32. DEPENDS:=+libecdsautil +libuecc
  33. TITLE:=ECDSA Utilities
  34. URL:=https://github.com/tcatm/ecdsautils
  35. LICENSE:=BSD-2-Clause
  36. endef
  37. define Package/libecdsautil/description
  38. Library to sign and verify checksums using ECDSA.
  39. endef
  40. define Package/ecdsautils/description
  41. Utilities to sign and verify checksums using ECDSA.
  42. endef
  43. CMAKE_OPTIONS += \
  44. -DCMAKE_BUILD_TYPE:String="MINSIZEREL"
  45. define Package/libecdsautil/install
  46. $(INSTALL_DIR) $(1)/usr/lib/
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libecdsautil.so* $(1)/usr/lib/
  48. endef
  49. define Package/ecdsautils/install
  50. $(INSTALL_DIR) $(1)/usr/bin
  51. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ecdsautil $(1)/usr/bin/
  52. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ecdsakeygen $(1)/usr/bin/
  53. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ecdsasign $(1)/usr/bin/
  54. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ecdsaverify $(1)/usr/bin/
  55. endef
  56. $(eval $(call BuildPackage,libecdsautil))
  57. $(eval $(call BuildPackage,ecdsautils))