2 # Copyright (C) 2011-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net>
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://hyperelliptic.org/nacl
17 PKG_MD5SUM:=7efb5715561c3d10dafd3fa97b4f2d20
19 PKG_LICENSE:=PublicDomain
23 include $(INCLUDE_DIR)/package.mk
28 TITLE:=NaCl Networking and Cryptography library
29 URL:=http://nacl.cace-project.eu/
33 (cd $(PKG_BUILD_DIR) && \
35 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
36 AR="$(TARGET_CROSS)ar" \
37 RANLIB="$(TARGET_CROSS)ranlib" \
38 $(CURDIR)/do-openwrt \
42 define Build/InstallDev
43 $(INSTALL_DIR) $(1)/usr/include/nacl
44 $(CP) $(PKG_BUILD_DIR)/build/include/*.h $(1)/usr/include/nacl/
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(CP) $(PKG_BUILD_DIR)/build/lib/libnacl.a $(1)/usr/lib/
49 $(eval $(call BuildPackage,nacl))