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.

50 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. BUILDONLY:=1
  24. endef
  25. define Build/Compile
  26. (cd $(PKG_BUILD_DIR) && \
  27. CC="$(TARGET_CC)" \
  28. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
  29. AR="$(TARGET_CROSS)ar" \
  30. RANLIB="$(TARGET_CROSS)ranlib" \
  31. $(CURDIR)/do-openwrt \
  32. )
  33. endef
  34. define Build/InstallDev
  35. $(INSTALL_DIR) $(1)/usr/include/nacl
  36. $(CP) $(PKG_BUILD_DIR)/build/include/*.h $(1)/usr/include/nacl/
  37. $(INSTALL_DIR) $(1)/usr/lib
  38. $(CP) $(PKG_BUILD_DIR)/build/lib/libnacl.a $(1)/usr/lib/
  39. endef
  40. $(eval $(call BuildPackage,nacl))