From 7341a2218dc7afe0c7709359304d85383578e87a Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sun, 27 Feb 2011 22:53:30 +0100 Subject: Packages: foo dummy package is autotools centric Signed-off-by: Abdoulaye Walsimou Gaye --- packages/misc/foo/foo-autotools.kconfig | 52 ++++++++++++++++++++++++ packages/misc/foo/foo-autotools.mk | 54 +++++++++++++++++++++++++ packages/misc/foo/foo.kconfig | 52 ------------------------ packages/misc/foo/foo.mk | 70 --------------------------------- 4 files changed, 106 insertions(+), 122 deletions(-) create mode 100644 packages/misc/foo/foo-autotools.kconfig create mode 100644 packages/misc/foo/foo-autotools.mk delete mode 100644 packages/misc/foo/foo.kconfig delete mode 100644 packages/misc/foo/foo.mk diff --git a/packages/misc/foo/foo-autotools.kconfig b/packages/misc/foo/foo-autotools.kconfig new file mode 100644 index 0000000..1e3f824 --- /dev/null +++ b/packages/misc/foo/foo-autotools.kconfig @@ -0,0 +1,52 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2009-2011 Abdoulaye Walsimou GAYE. All rights reserved. +# +# 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 foo.kconfig +# \brief foo.kconfig of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \date December 2009 +################################################################################ + +config EMBTK_HAVE_FOO + bool "Have foo" + help + foo description +choice + prompt "foo version you wish" + depends on EMBTK_HAVE_FOO + help + Here you can choose which version of foo you want to use. + + config EMBTK_FOO_VERSION_0_16_4 + bool "foo-0.16.4" + select EMBTK_FOO_PKG_IS_TARGZ +endchoice + +config EMBTK_FOO_VERSION_STRING + string + default "0.16.4" if EMBTK_FOO_VERSION_0_16_4 + +config EMBTK_FOO_NEED_PATCH + bool +config EMBTK_FOO_NEED_AUTORECONF + bool +config EMBTK_FOO_PKG_IS_TARGZ + bool +config EMBTK_FOO_PKG_IS_TARBZ2 + bool diff --git a/packages/misc/foo/foo-autotools.mk b/packages/misc/foo/foo-autotools.mk new file mode 100644 index 0000000..67df0bd --- /dev/null +++ b/packages/misc/foo/foo-autotools.mk @@ -0,0 +1,54 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2009-2011 Abdoulaye Walsimou GAYE. All rights reserved. +# +# 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 foo.mk +# \brief foo.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \date December 2009 +################################################################################ + +FOO_NAME := foo +FOO_VERSION := $(call EMBTK_GET_PKG_VERSION,FOO) +FOO_SITE := http://www.foo.org/download +FOO_SITE_MIRROR3 := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror +FOO_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/foo/$(FOO_VERSION) +FOO_PACKAGE := foo-$(FOO_VERSION).tar.gz +FOO_SRC_DIR := $(PACKAGES_BUILD)/foo-$(FOO_VERSION) +FOO_BUILD_DIR := $(PACKAGES_BUILD)/foo-$(FOO_VERSION) + +FOO_BINS = +FOO_SBINS = +FOO_INCLUDES = +FOO_LIBS = +FOO_LIBEXECS = +FOO_PKGCONFIGS = + +FOO_CONFIGURE_ENV := +FOO_CONFIGURE_OPTS := + +FOO_DEPS := + +foo_install: + $(call EMBTK_INSTALL_PKG,FOO) + +download_foo: + $(call EMBTK_DOWNLOAD_PKG,FOO) + +foo_clean: + $(call EMBTK_CLEANUP_PKG,FOO) diff --git a/packages/misc/foo/foo.kconfig b/packages/misc/foo/foo.kconfig deleted file mode 100644 index 1e3f824..0000000 --- a/packages/misc/foo/foo.kconfig +++ /dev/null @@ -1,52 +0,0 @@ -################################################################################ -# Embtoolkit -# Copyright(C) 2009-2011 Abdoulaye Walsimou GAYE. All rights reserved. -# -# 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 foo.kconfig -# \brief foo.kconfig of Embtoolkit -# \author Abdoulaye Walsimou GAYE -# \date December 2009 -################################################################################ - -config EMBTK_HAVE_FOO - bool "Have foo" - help - foo description -choice - prompt "foo version you wish" - depends on EMBTK_HAVE_FOO - help - Here you can choose which version of foo you want to use. - - config EMBTK_FOO_VERSION_0_16_4 - bool "foo-0.16.4" - select EMBTK_FOO_PKG_IS_TARGZ -endchoice - -config EMBTK_FOO_VERSION_STRING - string - default "0.16.4" if EMBTK_FOO_VERSION_0_16_4 - -config EMBTK_FOO_NEED_PATCH - bool -config EMBTK_FOO_NEED_AUTORECONF - bool -config EMBTK_FOO_PKG_IS_TARGZ - bool -config EMBTK_FOO_PKG_IS_TARBZ2 - bool diff --git a/packages/misc/foo/foo.mk b/packages/misc/foo/foo.mk deleted file mode 100644 index 30410a1..0000000 --- a/packages/misc/foo/foo.mk +++ /dev/null @@ -1,70 +0,0 @@ -################################################################################ -# Embtoolkit -# Copyright(C) 2009-2011 Abdoulaye Walsimou GAYE. All rights reserved. -# -# 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 foo.mk -# \brief foo.mk of Embtoolkit -# \author Abdoulaye Walsimou GAYE -# \date December 2009 -################################################################################ - -FOO_NAME := foo -FOO_VERSION := $(call EMBTK_GET_PKG_VERSION,FOO) -FOO_SITE := http://www.foo.org/download -FOO_SITE_MIRROR3 := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror -FOO_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/foo/$(FOO_VERSION) -FOO_PACKAGE := foo-$(FOO_VERSION).tar.gz -FOO_SRC_DIR := $(PACKAGES_BUILD)/foo-$(FOO_VERSION) -FOO_BUILD_DIR := $(PACKAGES_BUILD)/foo-$(FOO_VERSION) - -FOO_BINS = -FOO_SBINS = -FOO_INCLUDES = -FOO_LIBS = -FOO_LIBEXECS = -FOO_PKGCONFIGS = - -FOO_CONFIGURE_OPTS := - -FOO_DEPS := - -foo_install: - @test -e $(FOO_BUILD_DIR)/.installed || \ - $(MAKE) $(FOO_BUILD_DIR)/.installed - -$(FOO_BUILD_DIR)/.installed: $(FOO_DEPS) download_foo \ - $(FOO_BUILD_DIR)/.decompressed $(FOO_BUILD_DIR)/.configured - $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ - foo-$(FOO_VERSION) in your root filesystem...") - $(Q)$(MAKE) -C $(FOO_BUILD_DIR) $(J) - $(Q)$(MAKE) -C $(FOO_BUILD_DIR) DESTDIR=$(SYSROOT) install - $(Q)$(MAKE) libtool_files_adapt - $(Q)$(MAKE) pkgconfig_files_adapt - @touch $@ - -download_foo: - $(call EMBTK_DOWNLOAD_PKG,FOO) - -$(FOO_BUILD_DIR)/.decompressed: - $(call EMBTK_DECOMPRESS_PKG,FOO) - -$(FOO_BUILD_DIR)/.configured: - $(call EMBTK_CONFIGURE_PKG,FOO) - -foo_clean: - $(call EMBTK_CLEANUP_PKG,FOO) -- cgit v1.2.3