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.

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