diff options
author | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-06-18 22:41:26 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-06-18 22:43:39 +0200 |
commit | c969a721b8dee88f9b4aa85762a5a1b238b9fc63 (patch) | |
tree | 2ce316cde04f89afdbf726fadb544357552dfb33 | |
parent | f7d0c5902cc9291e906bf44ed3bc82e0b31da3b5 (diff) | |
download | embtoolkit-c969a721b8dee88f9b4aa85762a5a1b238b9fc63.tar.gz embtoolkit-c969a721b8dee88f9b4aa85762a5a1b238b9fc63.tar.bz2 embtoolkit-c969a721b8dee88f9b4aa85762a5a1b238b9fc63.tar.xz |
Rootfs: add lzo Makefile
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
-rw-r--r-- | mk/lzo.mk | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/mk/lzo.mk b/mk/lzo.mk new file mode 100644 index 0000000..3899593 --- /dev/null +++ b/mk/lzo.mk @@ -0,0 +1,54 @@ +######################################################################################### +# 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 lzo.mk +# \brief lzo.mk of Embtoolkit. +# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com> +# \date June 2009 +######################################################################################### + +LZO_VERSION := 2.03 +LZO_SITE := http://www.oberhumer.com/opensource/lzo/download +LZO_PACKAGE := lzo-$(LZO_VERSION).tar.gz +LZO_BUILD_DIR := $(TOOLS_BUILD)/lzo-build + +lzo_install: $(LZO_BUILD_DIR)/.installed + +$(LZO_BUILD_DIR)/.installed: download_lzo $(LZO_BUILD_DIR)/.decompressed \ + $(LZO_BUILD_DIR)/.configured + $(MAKE) -C $(LZO_BUILD_DIR) && $(MAKE) -C $(LZO_BUILD_DIR) install + @touch $@ + +download_lzo: + $(call EMBTK_GENERIC_MESSAGE,"Downloading $(LZO_PACKAGE) if necessary...") + @test -e $(DOWNLOAD_DIR)/$(LZO_PACKAGE) || \ + wget -O $(DOWNLOAD_DIR)/$(LZO_PACKAGE) $(LZO_SITE)/$(LZO_PACKAGE) + +$(LZO_BUILD_DIR)/.decompressed: + $(call EMBTK_GENERIC_MESSAGE,"Decompressing $(LZO_PACKAGE)...") + @tar -C $(TOOLS_BUILD) -xzf $(DOWNLOAD_DIR)/$(LZO_PACKAGE) + @mkdir -p $(LZO_BUILD_DIR) + @touch $@ + +$(LZO_BUILD_DIR)/.configured: + $(call EMBTK_GENERIC_MESSAGE,"Configuring lzo-$(LZO_VERSION)...") + @cd $(LZO_BUILD_DIR); \ + $(TOOLS_BUILD)/lzo-$(LZO_VERSION)/configure \ + --prefix=$(HOSTTOOLS)/usr/local --build=$(HOST_BUILD) --host=$(HOST_ARCH) + @touch $@ + |