diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2011-03-27 16:31:28 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2011-03-27 16:31:28 +0200 |
commit | a395c878b57bc58f0ae8d007a1c6b59bc1d4d84e (patch) | |
tree | c403dc1e9065710cacb02585d1b9bc7f520c49f4 | |
parent | 4db0c2f319dee161d3d68f6148d573a218337398 (diff) | |
download | embtoolkit-a395c878b57bc58f0ae8d007a1c6b59bc1d4d84e.tar.gz embtoolkit-a395c878b57bc58f0ae8d007a1c6b59bc1d4d84e.tar.bz2 embtoolkit-a395c878b57bc58f0ae8d007a1c6b59bc1d4d84e.tar.xz |
Host tools: fakeroot: convert to use generic macros
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r-- | kconfig/fakeroot.kconfig | 44 | ||||
-rw-r--r-- | kconfig/toolchain.kconfig | 5 | ||||
-rw-r--r-- | mk/fakeroot.mk | 42 |
3 files changed, 59 insertions, 32 deletions
diff --git a/kconfig/fakeroot.kconfig b/kconfig/fakeroot.kconfig new file mode 100644 index 0000000..e019315 --- /dev/null +++ b/kconfig/fakeroot.kconfig @@ -0,0 +1,44 @@ +################################################################################ +# 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 <http://www.gnu.org/licenses/>. +# +################################################################################ +# +# \file fakeroot.kconfig +# \brief fakeroot.kconfig of Embtoolkit. +# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org> +# \date March 2011 +################################################################################ + +config EMBTK_HAVE_FAKEROOT + bool + select EMBTK_FAKEROOT_PKG_IS_TARGZ + default y + help + fakeroot for host tools. + +config EMBTK_FAKEROOT_VERSION_STRING + string + default "1.12.4" + +config EMBTK_FAKEROOT_NEED_PATCH + bool +config EMBTK_FAKEROOT_NEED_AUTORECONF + bool +config EMBTK_FAKEROOT_PKG_IS_TARGZ + bool +config EMBTK_FAKEROOT_PKG_IS_TARBZ2 + bool diff --git a/kconfig/toolchain.kconfig b/kconfig/toolchain.kconfig index d577acc..86f7259 100644 --- a/kconfig/toolchain.kconfig +++ b/kconfig/toolchain.kconfig @@ -90,3 +90,8 @@ source kconfig/automake.kconfig # pkg-config # source kconfig/pkgconfig.kconfig + +# +# fakeroot +# +source kconfig/fakeroot.kconfig diff --git a/mk/fakeroot.mk b/mk/fakeroot.mk index f95c229..d912daa 100644 --- a/mk/fakeroot.mk +++ b/mk/fakeroot.mk @@ -24,44 +24,22 @@ # \date June 2009 ################################################################################ -FAKEROOT_VERSION := 1.12.4 +FAKEROOT_NAME := fakeroot +FAKEROOT_VERSION := $(call EMBTK_GET_PKG_VERSION,FAKEROOT) FAKEROOT_SITE := http://ftp.debian.org/debian/pool/main/f/fakeroot +FAKEROOT_SITE_MIRROR3 := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror +FAKEROOT_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/fakeroot/$(FAKEROOT_VERSION) FAKEROOT_PACKAGE := fakeroot_$(FAKEROOT_VERSION).tar.gz +FAKEROOT_SRC_DIR := $(TOOLS_BUILD)/fakeroot-$(FAKEROOT_VERSION) FAKEROOT_BUILD_DIR := $(TOOLS_BUILD)/fakeroot-build -FAKEROOT_DIR := $(HOSTTOOLS)/usr/local/fakeroot -FAKEROOT_BIN := $(FAKEROOT_DIR)/bin/fakeroot -FAKEROOT_ENV_FILE := $(EMBTK_ROOT)/.fakeroot.001 +# fakeroot binaries and env +FAKEROOT_BIN := $(HOSTTOOLS)/usr/bin/fakeroot +FAKEROOT_ENV_FILE := $(EMBTK_ROOT)/.fakeroot.001 export FAKEROOT_BIN FAKEROOT_ENV_FILE fakeroot_install: - @test -e $(FAKEROOT_BUILD_DIR)/.installed || \ - $(MAKE) $(FAKEROOT_BUILD_DIR)/.installed - -$(FAKEROOT_BUILD_DIR)/.installed: download_fakeroot \ - $(FAKEROOT_BUILD_DIR)/.decompressed $(FAKEROOT_BUILD_DIR)/.configured - @$(MAKE) -C $(FAKEROOT_BUILD_DIR) $(J) - $(MAKE) -C $(FAKEROOT_BUILD_DIR) install - @touch $@ + $(call EMBTK_INSTALL_HOSTPKG,FAKEROOT) download_fakeroot: - $(call EMBTK_GENERIC_MESSAGE,"Downloading $(FAKEROOT_PACKAGE) if \ - necessary...") - @test -e $(DOWNLOAD_DIR)/$(FAKEROOT_PACKAGE) || \ - wget -O $(DOWNLOAD_DIR)/$(FAKEROOT_PACKAGE) \ - $(FAKEROOT_SITE)/$(FAKEROOT_PACKAGE) - -$(FAKEROOT_BUILD_DIR)/.decompressed: - $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(FAKEROOT_PACKAGE)...") - @tar -C $(TOOLS_BUILD) -xzf $(DOWNLOAD_DIR)/$(FAKEROOT_PACKAGE) - @mkdir -p $(FAKEROOT_BUILD_DIR) - @mkdir -p $(FAKEROOT_DIR) - @touch $@ - -$(FAKEROOT_BUILD_DIR)/.configured: - $(call EMBTK_GENERIC_MESSAGE,"Configuring \ - fakeroot_$(FAKEROOT_VERSION)...") - @cd $(FAKEROOT_BUILD_DIR); \ - $(TOOLS_BUILD)/fakeroot-$(FAKEROOT_VERSION)/configure \ - --prefix=$(FAKEROOT_DIR) --build=$(HOST_BUILD) --host=$(HOST_ARCH) - @touch $@ + $(call EMBTK_DOWNLOAD_PKG,FAKEROOT) |