diff options
author | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-07-14 17:17:52 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-07-14 17:17:52 +0200 |
commit | b40837a7fcabe040648018bb7d4bdab3811a3c94 (patch) | |
tree | a298343c243869dc49b5be18cca3c47cb448add4 /mk/termcap.mk | |
parent | 0052ce47a61e255c21371ac8ba6bf7170d6b1cce (diff) | |
download | embtoolkit-b40837a7fcabe040648018bb7d4bdab3811a3c94.tar.gz embtoolkit-b40837a7fcabe040648018bb7d4bdab3811a3c94.tar.bz2 embtoolkit-b40837a7fcabe040648018bb7d4bdab3811a3c94.tar.xz |
Packages: add termcap Makefile for target
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
Diffstat (limited to 'mk/termcap.mk')
-rw-r--r-- | mk/termcap.mk | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/mk/termcap.mk b/mk/termcap.mk new file mode 100644 index 0000000..0052696 --- /dev/null +++ b/mk/termcap.mk @@ -0,0 +1,59 @@ +################################################################################ +# GAYE Abdoulaye Walsimou, <walsimou@walsimou.com> +# Copyright(C) 2009 GAYE Abdoulaye Walsimou. 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 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. +# +# 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 termcap.mk +# \brief termcap.mk of Embtoolkit. +# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com> +# \date July 2009 +################################################################################ + +TERMCAP_VERSION := 1.3.1 +TERMCAP_SITE := ftp://ftp.gnu.org/gnu/termcap/ +TERMCAP_PACKAGE := termcap-$(TERMCAP_VERSION).tar.gz +TERMCAP_TARGET_BUILD_DIR :=$(PACKAGES_BUILD)/termcap + +termcap_target_install: $(TERMCAP_TARGET_BUILD_DIR)/.installed + +$(TERMCAP_TARGET_BUILD_DIR)/.installed: termcap_download \ +$(TERMCAP_TARGET_BUILD_DIR)/.decompressed \ +$(TERMCAP_TARGET_BUILD_DIR)/.configured + @cd $(TERMCAP_TARGET_BUILD_DIR); make; make install + +$(TERMCAP_TARGET_BUILD_DIR)/.configured: + $(call EMBTK_GENERIC_MESSAGE,"Configuring termcap-$(TERMCAP_VERSION) \ + for $(STRICT_GNU_TARGET) ...") + @cd $(TERMCAP_TARGET_BUILD_DIR); \ + CC=$(TARGETCC_CACHED) RANLIB=$(TARGETRANLIB) AR=$(TARGETAR) \ + $(PACKAGES_BUILD)/termcap-$(TERMCAP_VERSION)/configure \ + --host=$(STRICT_GNU_TARGET) --target=$(STRICT_GNU_TARGET) \ + --prefix=$(SYSROOT)/usr + @touch $@ + +termcap_download: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(TERMCAP_PACKAGE) \ + if necessary ...") + @test -e $(DOWNLOAD_DIR)/$(TERMCAP_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(TERMCAP_PACKAGE) \ + $(TERMCAP_SITE)/$(TERMCAP_PACKAGE) + +$(TERMCAP_TARGET_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(TERMCAP_PACKAGE)") + @cd $(PACKAGES_BUILD); test -e termcap-$(TERMCAP_VERSION) || \ + tar xzf $(DOWNLOAD_DIR)/$(TERMCAP_PACKAGE) + @mkdir $(TERMCAP_TARGET_BUILD_DIR) + @touch $@ |