Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gperf
  3. PKG_VERSION:=3.1
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=@GNU/gperf
  7. PKG_HASH:=588546b945bba4b70b6a3a616e80b4ab466e3f33024a352fc2198112cdbb3ae2
  8. PKG_LICENSE:=GPL-3.0
  9. PKG_LICENSE_FILES:=COPYING
  10. include $(INCLUDE_DIR)/host-build.mk
  11. include $(INCLUDE_DIR)/package.mk
  12. HOST_CPPFLAGS:=-I$(HOST_BUILD_DIR)/lib -I$(HOST_BUILD_DIR)/src $(HOST_CPPFLAGS)
  13. TARGET_CPPFLAGS:=-I$(PKG_BUILD_DIR)/lib -I$(PKG_BUILD_DIR)/src $(TARGET_CPPFLAGS)
  14. define Package/gperf
  15. SECTION:=devel
  16. CATEGORY:=Development
  17. TITLE:=GNU gperf
  18. URL:=http://www.gnu.org/software/gperf
  19. endef
  20. define Package/gperf/description
  21. GNU gperf is a perfect hash function generator. For a given list of strings,
  22. it produces a hash function and hash table, in form of C or C++ code,
  23. for looking up a value depending on the input string.
  24. The hash function is perfect, which means that the hash table has no collisions,
  25. and the hash table lookup needs a single string comparison only.
  26. endef
  27. $(eval $(call HostBuild))
  28. $(eval $(call BuildPackage,gperf))