From c640f8c56c15205e6fac04b08950e3f05e5987a8 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou GAYE Date: Sat, 25 Jun 2011 20:34:23 +0200 Subject: Packages: Add gperf-3.0.4 Signed-off-by: Abdoulaye Walsimou GAYE --- packages/misc/gperf/gperf.kconfig | 77 +++++++++++++++++++++++++++++++++++++++ packages/misc/gperf/gperf.mk | 77 +++++++++++++++++++++++++++++++++++++++ packages/misc/misc.kconfig | 1 + packages/misc/misc.mk | 4 ++ 4 files changed, 159 insertions(+) create mode 100644 packages/misc/gperf/gperf.kconfig create mode 100644 packages/misc/gperf/gperf.mk (limited to 'packages') diff --git a/packages/misc/gperf/gperf.kconfig b/packages/misc/gperf/gperf.kconfig new file mode 100644 index 0000000..eacadaf --- /dev/null +++ b/packages/misc/gperf/gperf.kconfig @@ -0,0 +1,77 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2011 Abdoulaye Walsimou GAYE. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +################################################################################ +# +# \file gperf.kconfig +# \brief gperf.kconfig of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \date June 2011 +################################################################################ + +config EMBTK_HOST_HAVE_GPERF + bool + select EMBTK_GPERF_PKG_IS_TARBZ2 + help + gperf for host development machine. + +config EMBTK_HAVE_GPERF + bool + select EMBTK_GPERF_PKG_IS_TARBZ2 + help + This is GNU gperf. It is a program that generates perfect hash + functions for sets of key words. + A perfect hash function is: + A hash function and a data structure that allows + recognition of a key word in a set of words using + exactly 1 probe into the data structure. +choice + prompt "gperf version you wish" + depends on EMBTK_HAVE_GPERF || EMBTK_HOST_HAVE_GPERF + help + Here you can choose which version of gperf you want to use. + + config EMBTK_GPERF_VERSION_3_0_4 + bool "gperf-3.0.4" + select EMBTK_GPERF_PKG_IS_TARGZ +endchoice + +config EMBTK_GPERF_VERSION_STRING + string + default "3.0.4" if EMBTK_GPERF_VERSION_3_0_4 + +config EMBTK_GPERF_NEED_PATCH + bool + select EMBTK_GPERF_HOST_NEED_PATCH +config EMBTK_GPERF_NEED_AUTORECONF + bool + select EMBTK_GPERF_HOST_NEED_AUTORECONF +config EMBTK_GPERF_PKG_IS_TARGZ + bool + select EMBTK_GPERF_HOST_PKG_IS_TARGZ +config EMBTK_GPERF_PKG_IS_TARBZ2 + bool + select EMBTK_GPERF_HOST_PKG_IS_TARBZ2 + +config EMBTK_GPERF_HOST_NEED_PATCH + bool +config EMBTK_GPERF_HOST_NEED_AUTORECONF + bool +config EMBTK_GPERF_HOST_PKG_IS_TARGZ + bool +config EMBTK_GPERF_HOST_PKG_IS_TARBZ2 + bool diff --git a/packages/misc/gperf/gperf.mk b/packages/misc/gperf/gperf.mk new file mode 100644 index 0000000..dbbdce3 --- /dev/null +++ b/packages/misc/gperf/gperf.mk @@ -0,0 +1,77 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2011 Abdoulaye Walsimou GAYE. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +################################################################################ +# +# \file gperf.mk +# \brief gperf.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \date June 2011 +################################################################################ + +GPERF_NAME := gperf +GPERF_VERSION := $(call EMBTK_GET_PKG_VERSION,GPERF) +GPERF_SITE := http://ftp.gnu.org/gnu/gperf +GPERF_SITE_MIRROR3 := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror +GPERF_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/gperf/$(GPERF_VERSION) +GPERF_PACKAGE := gperf-$(GPERF_VERSION).tar.gz +GPERF_SRC_DIR := $(PACKAGES_BUILD)/gperf-$(GPERF_VERSION) +GPERF_BUILD_DIR := $(PACKAGES_BUILD)/gperf-$(GPERF_VERSION) + +# +# gperf for target +# +GPERF_BINS := +GPERF_SBINS := +GPERF_INCLUDES := +GPERF_LIBS := +GPERF_LIBEXECS := +GPERF_PKGCONFIGS := + +GPERF_CONFIGURE_ENV := +GPERF_CONFIGURE_OPTS := + +GPERF_DEPS := + +gperf_install: + $(call EMBTK_INSTALL_PKG,GPERF) + +gperf_clean: + $(call EMBTK_CLEANUP_PKG,GPERF) + +# +# gperf for for host +# +GPERF_HOST_NAME := $(GPERF_NAME) +GPERF_HOST_VERSION := $(GPERF_VERSION) +GPERF_HOST_SITE := $(GPERF_SITE) +GPERF_HOST_SITE_MIRROR1 := $(GPERF_SITE_MIRROR1) +GPERF_HOST_SITE_MIRROR2 := $(GPERF_SITE_MIRROR2) +GPERF_HOST_SITE_MIRROR3 := $(GPERF_SITE_MIRROR3) +GPERF_HOST_PATCH_SITE := $(GPERF_PATCH_SITE) +GPERF_HOST_PACKAGE := $(GPERF_PACKAGE) +GPERF_HOST_SRC_DIR := $(TOOLS_BUILD)/gperf-$(GPERF_VERSION) +GPERF_HOST_BUILD_DIR := $(TOOLS_BUILD)/gperf-$(GPERF_VERSION) + +# +# common targets +# +gperf_host_install: + $(call EMBTK_INSTALL_HOSTPKG,GPERF_HOST) + +download_gperf download_gperf_host: + $(call EMBTK_DOWNLOAD_PKG,GPERF) diff --git a/packages/misc/misc.kconfig b/packages/misc/misc.kconfig index d5a33c3..2c62f69 100644 --- a/packages/misc/misc.kconfig +++ b/packages/misc/misc.kconfig @@ -27,6 +27,7 @@ source packages/misc/expat/expat.kconfig source packages/misc/gettext/gettext.kconfig source packages/misc/glib/glib.kconfig +source packages/misc/gperf/gperf.kconfig source packages/misc/intltool/intltool.kconfig source packages/misc/libelf/libelf.kconfig source packages/misc/libxml/libxml.kconfig diff --git a/packages/misc/misc.mk b/packages/misc/misc.mk index c71e10d..7133a1a 100644 --- a/packages/misc/misc.mk +++ b/packages/misc/misc.mk @@ -34,6 +34,10 @@ ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_GETTEXT) += gettext_install include $(EMBTK_ROOT)/packages/misc/glib/glib.mk ROOTFS_COMPONENTS-$(CONFIG_EMBTK_HAVE_GLIB) += glib_install +#gperf +include $(EMBTK_ROOT)/packages/misc/gperf/gperf.mk +HOSTTOOLS_COMPONENTS-$(CONFIG_EMBTK_HOST_HAVE_GPERF) += gperf_host_install + # intltool include $(EMBTK_ROOT)/packages/misc/intltool/intltool.mk HOSTTOOLS_COMPONENTS-$(CONFIG_EMBTK_HOST_HAVE_INTLTOOL) += intltool_host_install -- cgit v1.2.3