Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=gperf
  9. PKG_VERSION:=3.0.4
  10. PKG_RELEASE:=1
  11. PKG_MD5SUM:=c1f1db32fb6598d6a93e6e88796a8632
  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))