You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2006-2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=gperf
  9. PKG_VERSION:=3.1
  10. PKG_RELEASE:=1
  11. PKG_HASH:=588546b945bba4b70b6a3a616e80b4ab466e3f33024a352fc2198112cdbb3ae2
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=@GNU/gperf
  14. PKG_HOST_ONLY=1
  15. PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
  16. PKG_LICENSE:=GPL-3.0
  17. PKG_LICENSE_FILES:=COPYING
  18. include $(INCLUDE_DIR)/host-build.mk
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/gperf
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=GNU gperf
  24. BUILDONLY:=1
  25. URL:=http://www.gnu.org/software/gperf
  26. endef
  27. define Package/gperf/description
  28. GNU gperf is a perfect hash function generator. For a given list of strings, it
  29. produces a hash function and hash table, in form of C or C++ code, for looking
  30. up a value depending on the input string. The hash function is perfect, which
  31. means that the hash table has no collisions, and the hash table lookup needs a
  32. single string comparison only.
  33. endef
  34. define Host/Install
  35. $(MAKE) -C $(HOST_BUILD_DIR) install
  36. endef
  37. $(eval $(call HostBuild))
  38. $(eval $(call BuildPackage,gperf))