mirror of
https://github.com/openwrt/packages.git
synced 2025-02-07 06:59:51 +00:00
- PKG_LICENCE -> PKG_LICENSE - PKC_LICENSE_FILES -> PKG_LICENSE_FILES - BSD 3-Clause -> BSD-3-Clause - BSD-3-clause -> BSD-3-Clause - BSD-2-clause -> BSD-2-Clause - Public Domain -> Public-Domain - PublicDomain -> Public-Domain - Drop unneeded ',' in PKG_LICENSE or PKG_LICENSE_FILES Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
#
|
|
# Copyright (C) 2011-2014 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=nacl
|
|
PKG_VERSION:=20110221
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net>
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
PKG_SOURCE_URL:=http://hyperelliptic.org/nacl
|
|
PKG_HASH:=4f277f89735c8b0b8a6bbd043b3efb3fa1cc68a9a5da6a076507d067fc3b3bf8
|
|
|
|
PKG_LICENSE:=Public-Domain
|
|
|
|
PKG_BUILD_FLAGS:=no-mips16
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/nacl
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=NaCl Networking and Cryptography library
|
|
URL:=http://nacl.cace-project.eu/
|
|
BUILDONLY:=1
|
|
endef
|
|
|
|
define Build/Compile
|
|
(cd $(PKG_BUILD_DIR) && \
|
|
CC="$(TARGET_CC)" \
|
|
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
|
|
AR="$(TARGET_CROSS)ar" \
|
|
RANLIB="$(TARGET_CROSS)ranlib" \
|
|
$(CURDIR)/do-openwrt \
|
|
)
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include/nacl
|
|
$(CP) $(PKG_BUILD_DIR)/build/include/*.h $(1)/usr/include/nacl/
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_BUILD_DIR)/build/lib/libnacl.a $(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,nacl))
|