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.

44 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2012-2014 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:=libuecc
  9. PKG_VERSION:=4
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net>
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  13. PKG_SOURCE_URL:=https://projects.universe-factory.net/attachments/download/71
  14. PKG_MD5SUM:=7f44df5dc69cb8686947562e2a11eea9
  15. include $(INCLUDE_DIR)/package.mk
  16. include $(INCLUDE_DIR)/cmake.mk
  17. define Package/libuecc
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=Very small Elliptic Curve Cryptography library
  21. URL:=http://git.universe-factory.net/libuecc/
  22. endef
  23. TARGET_CFLAGS += -ffunction-sections -fdata-sections
  24. CMAKE_OPTIONS += \
  25. -DCMAKE_BUILD_TYPE:String="MINSIZEREL"
  26. define Build/InstallDev
  27. $(INSTALL_DIR) $(1)/usr/include
  28. $(CP) $(PKG_INSTALL_DIR)/usr/include/libuecc-$(PKG_VERSION) $(1)/usr/include/
  29. $(INSTALL_DIR) $(1)/usr/lib
  30. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuecc.a $(1)/usr/lib/
  31. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  32. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libuecc.pc $(1)/usr/lib/pkgconfig/
  33. endef
  34. $(eval $(call BuildPackage,libuecc))