2
0

Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. HOST_CXXFLAGS += -std=c++11
  15. define Package/gperf
  16. SECTION:=devel
  17. CATEGORY:=Development
  18. TITLE:=GNU gperf
  19. URL:=http://www.gnu.org/software/gperf
  20. endef
  21. define Package/gperf/description
  22. GNU gperf is a perfect hash function generator. For a given list of strings,
  23. it produces a hash function and hash table, in form of C or C++ code,
  24. for looking up a value depending on the input string.
  25. The hash function is perfect, which means that the hash table has no collisions,
  26. and the hash table lookup needs a single string comparison only.
  27. endef
  28. $(eval $(call HostBuild))
  29. $(eval $(call BuildPackage,gperf))