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