diff options
author | ejurgensen <espenjurgensen@gmail.com> | 2014-10-20 22:54:15 +0200 |
---|---|---|
committer | ejurgensen <espenjurgensen@gmail.com> | 2014-10-20 23:07:17 +0200 |
commit | 21a5b9f6444a8095d96f7b1c64651c000bcc3350 (patch) | |
tree | 6f41e3d21a6a642a101537d501aa1b6b2a4e5a59 /libs | |
parent | 5a59015c2f317df433849bf1bac2820b860e563e (diff) |
gperf: modified copy from oldpackages, upgrade to 3.0.4
Signed-off-by: Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gperf/Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/libs/gperf/Makefile b/libs/gperf/Makefile new file mode 100644 index 000000000..4cdd470f3 --- /dev/null +++ b/libs/gperf/Makefile @@ -0,0 +1,47 @@ +# +# Copyright (C) 2006-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:=gperf +PKG_VERSION:=3.0.4 +PKG_RELEASE:=1 +PKG_MD5SUM:=c1f1db32fb6598d6a93e6e88796a8632 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@GNU/gperf +PKG_HOST_ONLY=1 + +PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com> +PKG_LICENSE:=GPL-3.0 +PKG_LICENSE_FILES:=COPYING + +include $(INCLUDE_DIR)/host-build.mk +include $(INCLUDE_DIR)/package.mk + +define Package/gperf + SECTION:=libs + CATEGORY:=Libraries + TITLE:=GNU gperf + BUILDONLY:=1 + URL:=http://www.gnu.org/software/gperf +endef + +define Package/gperf/description + GNU gperf is a perfect hash function generator. For a given list of strings, it + produces a hash function and hash table, in form of C or C++ code, for looking + up a value depending on the input string. The hash function is perfect, which + means that the hash table has no collisions, and the hash table lookup needs a + single string comparison only. +endef + +define Host/Install + $(MAKE) -C $(HOST_BUILD_DIR) install +endef + +$(eval $(call HostBuild)) +$(eval $(call BuildPackage,gperf)) |