lede-packages-rs

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

Makefile (1221B)


      1 #
      2 # Copyright (C) 2006-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:=gperf
     11 PKG_VERSION:=3.0.4
     12 PKG_RELEASE:=1
     13 PKG_MD5SUM:=c1f1db32fb6598d6a93e6e88796a8632
     14 
     15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     16 PKG_SOURCE_URL:=@GNU/gperf
     17 PKG_HOST_ONLY=1
     18 
     19 PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
     20 PKG_LICENSE:=GPL-3.0
     21 PKG_LICENSE_FILES:=COPYING
     22 
     23 include $(INCLUDE_DIR)/host-build.mk
     24 include $(INCLUDE_DIR)/package.mk
     25 
     26 define Package/gperf
     27   SECTION:=libs
     28   CATEGORY:=Libraries
     29   TITLE:=GNU gperf
     30   BUILDONLY:=1
     31   URL:=http://www.gnu.org/software/gperf
     32 endef
     33 
     34 define Package/gperf/description
     35  GNU gperf is a perfect hash function generator. For a given list of strings, it
     36  produces a hash function and hash table, in form of C or C++ code, for looking 
     37  up a value depending on the input string. The hash function is perfect, which 
     38  means that the hash table has no collisions, and the hash table lookup needs a
     39  single string comparison only.
     40 endef
     41 
     42 define Host/Install
     43 	$(MAKE) -C $(HOST_BUILD_DIR) install
     44 endef
     45 
     46 $(eval $(call HostBuild))
     47 $(eval $(call BuildPackage,gperf))