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.

47 lines
1.1 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:=1
  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_MD5SUM:=7efb5715561c3d10dafd3fa97b4f2d20
  15. PKG_LICENSE:=PublicDomain
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/nacl
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=NaCl Networking and Cryptography library
  21. URL:=http://nacl.cace-project.eu/
  22. endef
  23. define Build/Compile
  24. (cd $(PKG_BUILD_DIR) && \
  25. CC="$(TARGET_CC)" \
  26. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
  27. AR="$(TARGET_CROSS)ar" \
  28. RANLIB="$(TARGET_CROSS)ranlib" \
  29. $(CURDIR)/do-openwrt \
  30. )
  31. endef
  32. define Build/InstallDev
  33. $(INSTALL_DIR) $(1)/usr/include/nacl
  34. $(CP) $(PKG_BUILD_DIR)/build/include/*.h $(1)/usr/include/nacl/
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(CP) $(PKG_BUILD_DIR)/build/lib/libnacl.a $(1)/usr/lib/
  37. endef
  38. $(eval $(call BuildPackage,nacl))