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.

49 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2011-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:=nacl
  9. PKG_VERSION:=20110221
  10. PKG_RELEASE:=2
  11. PKG_MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net>
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=http://hyperelliptic.org/nacl
  14. PKG_HASH:=4f277f89735c8b0b8a6bbd043b3efb3fa1cc68a9a5da6a076507d067fc3b3bf8
  15. PKG_LICENSE:=PublicDomain
  16. PKG_USE_MIPS16:=0
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/nacl
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=NaCl Networking and Cryptography library
  22. URL:=http://nacl.cace-project.eu/
  23. endef
  24. define Build/Compile
  25. (cd $(PKG_BUILD_DIR) && \
  26. CC="$(TARGET_CC)" \
  27. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
  28. AR="$(TARGET_CROSS)ar" \
  29. RANLIB="$(TARGET_CROSS)ranlib" \
  30. $(CURDIR)/do-openwrt \
  31. )
  32. endef
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/include/nacl
  35. $(CP) $(PKG_BUILD_DIR)/build/include/*.h $(1)/usr/include/nacl/
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_BUILD_DIR)/build/lib/libnacl.a $(1)/usr/lib/
  38. endef
  39. $(eval $(call BuildPackage,nacl))