diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2011-01-16 15:54:07 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2011-01-16 15:54:07 +0100 |
commit | 12a5cf6c5e55275aad4e09bb9a36da690997c37d (patch) | |
tree | b2e2ece6a4116d4b683a9c62d23ee9960322f2c8 /mk | |
parent | 3cb2be00faf1eb6e2b7600e8064978cbda6c6e52 (diff) | |
download | embtoolkit-12a5cf6c5e55275aad4e09bb9a36da690997c37d.tar.gz embtoolkit-12a5cf6c5e55275aad4e09bb9a36da690997c37d.tar.bz2 embtoolkit-12a5cf6c5e55275aad4e09bb9a36da690997c37d.tar.xz |
Toolchain: autotools: use generic macros
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk')
-rw-r--r-- | mk/autoconf.mk | 41 | ||||
-rw-r--r-- | mk/automake.mk | 41 | ||||
-rw-r--r-- | mk/libtool.mk | 20 | ||||
-rw-r--r-- | mk/m4.mk | 20 |
4 files changed, 54 insertions, 68 deletions
diff --git a/mk/autoconf.mk b/mk/autoconf.mk index 2b0ba83..9180a4c 100644 --- a/mk/autoconf.mk +++ b/mk/autoconf.mk @@ -2,18 +2,19 @@ # Embtoolkit # Copyright(C) 2010-2011 Abdoulaye Walsimou GAYE. All rights reserved. # -# This program is free software; you can distribute it and/or modify it -# under the terms of the GNU General Public License -# (Version 2 or later) published by the Free Software Foundation. +# 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 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. +# 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/>. # -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. ################################################################################ # # \file autoconf.mk @@ -22,12 +23,16 @@ # \date February 2010 ################################################################################ -AUTOCONF_VERSION := 2.68 +AUTOCONF_NAME := autoconf +AUTOCONF_VERSION := $(call EMBTK_GET_PKG_VERSION,AUTOCONF) AUTOCONF_SITE := http://ftp.gnu.org/gnu/autoconf +AUTOCONF_SITE_MIRROR3 := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror +AUTOCONF_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/autoconf/$(AUTOCONF_VERSION) AUTOCONF_PACKAGE := autoconf-$(AUTOCONF_VERSION).tar.bz2 +AUTOCONF_SRC_DIR := $(TOOLS_BUILD)/autoconf-$(AUTOCONF_VERSION) AUTOCONF_BUILD_DIR := $(TOOLS_BUILD)/autoconf-$(AUTOCONF_VERSION) -AUTOCONF_DIR := $(HOSTTOOLS)/usr +AUTOCONF_DIR := $(HOSTTOOLS)/usr AUTOCONF := $(AUTOCONF_DIR)/bin/autoconf AUTOHEADER := $(AUTOCONF_DIR)/bin/autoheader AUTOM4TE := $(AUTOCONF_DIR)/bin/autom4te @@ -47,18 +52,10 @@ $(AUTOCONF_BUILD_DIR)/.installed: download_autoconf \ @touch $@ download_autoconf: - $(call EMBTK_GENERIC_MESSAGE,"Downloading $(AUTOCONF_PACKAGE) if \ - necessary...") - @test -e $(DOWNLOAD_DIR)/$(AUTOCONF_PACKAGE) || \ - wget -O $(DOWNLOAD_DIR)/$(AUTOCONF_PACKAGE) \ - $(AUTOCONF_SITE)/$(AUTOCONF_PACKAGE) + $(call EMBTK_DOWNLOAD_PKG,AUTOCONF) $(AUTOCONF_BUILD_DIR)/.decompressed: - $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(AUTOCONF_PACKAGE)...") - @tar -C $(TOOLS_BUILD) -xjf $(DOWNLOAD_DIR)/$(AUTOCONF_PACKAGE) - @mkdir -p $(AUTOCONF_BUILD_DIR) - @mkdir -p $(AUTOCONF_DIR) - @touch $@ + $(call EMBTK_DECOMPRESS_HOSTPKG,AUTOCONF) $(AUTOCONF_BUILD_DIR)/.configured: $(call EMBTK_GENERIC_MESSAGE,"Configuring \ diff --git a/mk/automake.mk b/mk/automake.mk index 73ec7bd..80ed0fa 100644 --- a/mk/automake.mk +++ b/mk/automake.mk @@ -2,18 +2,19 @@ # Embtoolkit # Copyright(C) 2010-2011 Abdoulaye Walsimou GAYE. All rights reserved. # -# This program is free software; you can distribute it and/or modify it -# under the terms of the GNU General Public License -# (Version 2 or later) published by the Free Software Foundation. +# 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 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. +# 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/>. # -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. ################################################################################ # # \file automake.mk @@ -22,12 +23,16 @@ # \date February 2010 ################################################################################ -AUTOMAKE_VERSION := 1.11.1 +AUTOMAKE_NAME := automake +AUTOMAKE_VERSION := $(call EMBTK_GET_PKG_VERSION,AUTOMAKE) AUTOMAKE_SITE := http://ftp.gnu.org/gnu/automake +AUTOMAKE_SITE_MIRROR3 := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror +AUTOMAKE_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/automake/$(AUTOMAKE_VERSION) AUTOMAKE_PACKAGE := automake-$(AUTOMAKE_VERSION).tar.bz2 +AUTOMAKE_SRC_DIR := $(TOOLS_BUILD)/automake-$(AUTOMAKE_VERSION) AUTOMAKE_BUILD_DIR := $(TOOLS_BUILD)/automake-$(AUTOMAKE_VERSION) -AUTOMAKE_DIR := $(HOSTTOOLS)/usr +AUTOMAKE_DIR := $(HOSTTOOLS)/usr ACLOCAL := $(AUTOMAKE_DIR)/bin/aclocal AUTOMAKE := $(AUTOMAKE_DIR)/bin/automake @@ -42,18 +47,10 @@ $(AUTOMAKE_BUILD_DIR)/.installed: download_automake \ @touch $@ download_automake: - $(call EMBTK_GENERIC_MESSAGE,"Downloading $(AUTOMAKE_PACKAGE) if \ - necessary...") - @test -e $(DOWNLOAD_DIR)/$(AUTOMAKE_PACKAGE) || \ - wget -O $(DOWNLOAD_DIR)/$(AUTOMAKE_PACKAGE) \ - $(AUTOMAKE_SITE)/$(AUTOMAKE_PACKAGE) + $(call EMBTK_DOWNLOAD_PKG,AUTOMAKE) $(AUTOMAKE_BUILD_DIR)/.decompressed: - $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(AUTOMAKE_PACKAGE)...") - @tar -C $(TOOLS_BUILD) -xjf $(DOWNLOAD_DIR)/$(AUTOMAKE_PACKAGE) - @mkdir -p $(AUTOMAKE_BUILD_DIR) - @mkdir -p $(AUTOMAKE_DIR) - @touch $@ + $(call EMBTK_DECOMPRESS_HOSTPKG,AUTOMAKE) $(AUTOMAKE_BUILD_DIR)/.configured: $(call EMBTK_GENERIC_MESSAGE,"Configuring \ diff --git a/mk/libtool.mk b/mk/libtool.mk index da23884..d320265 100644 --- a/mk/libtool.mk +++ b/mk/libtool.mk @@ -23,12 +23,16 @@ # \date March 2010 ################################################################################ -LIBTOOL_VERSION := 2.4 +LIBTOOL_NAME := libtool +LIBTOOL_VERSION := $(call EMBTK_GET_PKG_VERSION,LIBTOOL) LIBTOOL_SITE := http://ftp.gnu.org/gnu/libtool +LIBTOOL_SITE_MIRROR3 := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror +LIBTOOL_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/libtool/$(LIBTOOL_VERSION) LIBTOOL_PACKAGE := libtool-$(LIBTOOL_VERSION).tar.gz +LIBTOOL_SRC_DIR := $(TOOLS_BUILD)/libtool-$(LIBTOOL_VERSION) LIBTOOL_BUILD_DIR := $(TOOLS_BUILD)/libtool-$(LIBTOOL_VERSION) -LIBTOOL_DIR := $(HOSTTOOLS)/usr +LIBTOOL_DIR := $(HOSTTOOLS)/usr LIBTOOL := $(LIBTOOL_DIR)/bin/libtool LIBTOOLIZE := $(LIBTOOL_DIR)/bin/libtoolize @@ -43,18 +47,10 @@ $(LIBTOOL_BUILD_DIR)/.installed: download_libtool \ @touch $@ download_libtool: - $(call EMBTK_GENERIC_MESSAGE,"Downloading $(LIBTOOL_PACKAGE) if \ - necessary...") - @test -e $(DOWNLOAD_DIR)/$(LIBTOOL_PACKAGE) || \ - wget -O $(DOWNLOAD_DIR)/$(LIBTOOL_PACKAGE) \ - $(LIBTOOL_SITE)/$(LIBTOOL_PACKAGE) + $(call EMBTK_DOWNLOAD_PKG,LIBTOOL) $(LIBTOOL_BUILD_DIR)/.decompressed: - $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(LIBTOOL_PACKAGE)...") - @tar -C $(TOOLS_BUILD) -xzf $(DOWNLOAD_DIR)/$(LIBTOOL_PACKAGE) - @mkdir -p $(LIBTOOL_BUILD_DIR) - @mkdir -p $(LIBTOOL_DIR) - @touch $@ + $(call EMBTK_DECOMPRESS_HOSTPKG,LIBTOOL) $(LIBTOOL_BUILD_DIR)/.configured: $(call EMBTK_GENERIC_MESSAGE,"Configuring \ @@ -23,13 +23,17 @@ # \date February 2010 ################################################################################ -M4_VERSION := 1.4.15 +M4_NAME := m4 +M4_VERSION := $(call EMBTK_GET_PKG_VERSION,M4) M4_SITE := http://ftp.gnu.org/gnu/m4 +M4_SITE_MIRROR3 := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror +M4_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/m4/$(M4_VERSION) M4_PACKAGE := m4-$(M4_VERSION).tar.bz2 +M4_SRC_DIR := $(TOOLS_BUILD)/m4-$(M4_VERSION) M4_BUILD_DIR := $(TOOLS_BUILD)/m4-$(M4_VERSION) + M4_DIR := $(HOSTTOOLS)/usr M4_BIN := $(M4_DIR)/bin/m4 - M4 := $(M4_BIN) export M4 @@ -42,18 +46,10 @@ $(M4_BUILD_DIR)/.installed: download_m4 \ @touch $@ download_m4: - $(call EMBTK_GENERIC_MESSAGE,"Downloading $(M4_PACKAGE) if \ - necessary...") - @test -e $(DOWNLOAD_DIR)/$(M4_PACKAGE) || \ - wget -O $(DOWNLOAD_DIR)/$(M4_PACKAGE) \ - $(M4_SITE)/$(M4_PACKAGE) + $(call EMBTK_DOWNLOAD_PKG,M4) $(M4_BUILD_DIR)/.decompressed: - $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(M4_PACKAGE)...") - @tar -C $(TOOLS_BUILD) -xjf $(DOWNLOAD_DIR)/$(M4_PACKAGE) - @mkdir -p $(M4_BUILD_DIR) - @mkdir -p $(M4_DIR) - @touch $@ + $(call EMBTK_DECOMPRESS_HOSTPKG,M4) $(M4_BUILD_DIR)/.configured: $(call EMBTK_GENERIC_MESSAGE,"Configuring \ |