add gperf (host build only)
authorFelix Fietkau <nbd@openwrt.org>
Wed, 18 Mar 2009 21:54:57 +0000 (21:54 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 18 Mar 2009 21:54:57 +0000 (21:54 +0000)
SVN-Revision: 14945

libs/gperf/Makefile [new file with mode: 0644]

diff --git a/libs/gperf/Makefile b/libs/gperf/Makefile
new file mode 100644 (file)
index 0000000..df660b6
--- /dev/null
@@ -0,0 +1,40 @@
+# 
+# Copyright (C) 2006-2008 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=gperf
+PKG_VERSION:=3.0.3
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=@GNU/gperf
+PKG_MD5SUM:=cc20e58975a38075440423c8fb85fd00
+PKG_HOST_ONLY=1
+
+include $(INCLUDE_DIR)/host-build.mk
+include $(INCLUDE_DIR)/package.mk
+
+define Package/gperf
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=Perfect hash function generator
+  BUILDONLY:=1
+  URL:=http://www.gnu.org/software/gperf
+endef
+
+define Package/lua/Default/description
+ gperf is a perfect hash function generator
+endef
+
+define Host/Install
+       $(MAKE) -C $(HOST_BUILD_DIR) install
+endef
+
+
+$(eval $(call HostBuild))
+$(eval $(call BuildPackage,gperf))