lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1151B)


      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 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=nacl
     11 PKG_VERSION:=20110221
     12 PKG_RELEASE:=2
     13 
     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
     18 
     19 PKG_LICENSE:=PublicDomain
     20 
     21 PKG_USE_MIPS16:=0
     22 
     23 include $(INCLUDE_DIR)/package.mk
     24 
     25 define Package/nacl
     26   SECTION:=libs
     27   CATEGORY:=Libraries
     28   TITLE:=NaCl Networking and Cryptography library
     29   URL:=http://nacl.cace-project.eu/
     30 endef
     31 
     32 define Build/Compile
     33 	(cd $(PKG_BUILD_DIR) && \
     34 			CC="$(TARGET_CC)" \
     35 			CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
     36 			AR="$(TARGET_CROSS)ar" \
     37 			RANLIB="$(TARGET_CROSS)ranlib" \
     38 		$(CURDIR)/do-openwrt \
     39 	)
     40 endef
     41 
     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/
     47 endef
     48 
     49 $(eval $(call BuildPackage,nacl))