1
0

Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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_MIRROR_HASH:=397395a471c0b5af1a173666ba21a5bedb4c3423a6e37c545c3627bed73dcb76
  15. PKG_SOURCE_URL:=git://github.com/tcatm/$(PKG_NAME).git
  16. PKG_SOURCE_VERSION:=$(PKG_REV)
  17. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  18. PKG_SOURCE_PROTO:=git
  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. endef
  28. define Package/ecdsautils
  29. SECTION:=utils
  30. CATEGORY:=Utilities
  31. DEPENDS:=+libecdsautil +libuecc
  32. TITLE:=ECDSA Utilities
  33. URL:=https://github.com/tcatm/ecdsautils
  34. endef
  35. CMAKE_OPTIONS += \
  36. -DCMAKE_BUILD_TYPE:String="MINSIZEREL" \
  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. define Package/libecdsautil/install
  44. $(INSTALL_DIR) $(1)/usr/lib/
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libecdsautil.so* $(1)/usr/lib/
  46. endef
  47. define Package/ecdsautils/install
  48. $(INSTALL_DIR) $(1)/usr/bin
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ecdsautil $(1)/usr/bin/
  50. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ecdsakeygen $(1)/usr/bin/
  51. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ecdsasign $(1)/usr/bin/
  52. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ecdsaverify $(1)/usr/bin/
  53. endef
  54. define Build/InstallDev
  55. $(INSTALL_DIR) $(1)/usr/
  56. $(CP) $(PKG_INSTALL_DIR)/usr/include $(1)/usr/
  57. $(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr/
  58. endef
  59. $(eval $(call BuildPackage,libecdsautil))
  60. $(eval $(call BuildPackage,ecdsautils))