Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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_MD5SUM:=7efb5715561c3d10dafd3fa97b4f2d20
  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))