From 4862b3872a706f274c635bdf60830bb81588be58 Mon Sep 17 00:00:00 2001 From: Ricardo Crudo Date: Sat, 17 May 2014 16:00:37 +0200 Subject: Packages/compression: New bzip2 v1.0.6 Signed-off-by: Ricardo Crudo Signed-off-by: Abdoulaye Walsimou Gaye --- packages/compression/bzip2/bzip2.kconfig | 52 ++++++++++++++++++++++++++++++++ packages/compression/bzip2/bzip2.mk | 44 +++++++++++++++++++++++++++ packages/compression/compression.kconfig | 9 ++++-- packages/compression/compression.mk | 3 ++ 4 files changed, 105 insertions(+), 3 deletions(-) create mode 100644 packages/compression/bzip2/bzip2.kconfig create mode 100644 packages/compression/bzip2/bzip2.mk (limited to 'packages/compression') diff --git a/packages/compression/bzip2/bzip2.kconfig b/packages/compression/bzip2/bzip2.kconfig new file mode 100644 index 0000000..6c4c8d4 --- /dev/null +++ b/packages/compression/bzip2/bzip2.kconfig @@ -0,0 +1,52 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2010-2014 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 . +# +################################################################################ +# +# \file bzip2.kconfig +# \brief bzip2.kconfig of Embtoolkit. +# \author Ricardo Crudo +# \date May 2014 +################################################################################ + +config EMBTK_HAVE_BZIP2 + bool "Have bzip2" + help + bzip2 is a freely available, patent free (see below), high-quality data + compressor. + It typically compresses files to within 10% to 15% of the best + available techniques (the PPM family of statistical compressors), + whilst being around twice as fast at compression and six times faster + at decompression. + +choice + prompt "bzip2 version to use" + depends on EMBTK_HAVE_BZIP2 + help + bzip2 version to use + + config EMBTK_BZIP2_VERSION_1_0_6 + bool "bzip2-1.0.6" + select EMBTK_BZIP2_NEED_PATCH +endchoice + +config EMBTK_BZIP2_VERSION_STRING + string + default "1.0.6" if EMBTK_BZIP2_VERSION_1_0_6 + +config EMBTK_BZIP2_NEED_PATCH + bool diff --git a/packages/compression/bzip2/bzip2.mk b/packages/compression/bzip2/bzip2.mk new file mode 100644 index 0000000..66030e1 --- /dev/null +++ b/packages/compression/bzip2/bzip2.mk @@ -0,0 +1,44 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2009-2014 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 . +# +################################################################################ +# +# \file bzip2.mk +# \brief bzip2.mk of Embtoolkit. +# \author Ricardo Crudo +# \date May 2014 +################################################################################ + +BZIP2_NAME := bzip2 +BZIP2_VERSION := $(call embtk_get_pkgversion,bzip2) +BZIP2_SITE := http://www.bzip.org/$(BZIP2_VERSION) +BZIP2_PACKAGE := bzip2-$(BZIP2_VERSION).tar.gz +BZIP2_SRC_DIR := $(embtk_pkgb)/bzip2-$(BZIP2_VERSION) +BZIP2_BUILD_DIR := $(embtk_pkgb)/bzip2-$(BZIP2_VERSION) + +BZIP2_BINS := bzip2 bunzip2 bzcat bzip2recover bz*grep bzmore bzless bzdiff +BZIP2_INCLUDES := bzlib.h +BZIP2_LIBS := libbz* + +BZIP2_MAKE_ENV := CC=$(TARGETCC_CACHED) AR=$(TARGETAR) RANLIB=$(TARGETRANLIB) +BZIP2_MAKE_ENV += CFLAGS="$(TARGET_CFLAGS)" PREFIX="$(embtk_sysroot)/usr" +BZIP2_MAKE_ENV += LIBDIR=$(LIBDIR) + +define embtk_install_bzip2 + $(call embtk_makeinstall_pkg,bzip2) +endef + diff --git a/packages/compression/compression.kconfig b/packages/compression/compression.kconfig index ae0cbbf..39be4f1 100644 --- a/packages/compression/compression.kconfig +++ b/packages/compression/compression.kconfig @@ -1,6 +1,6 @@ ################################################################################ # Embtoolkit -# Copyright(C) 2010-2011 Abdoulaye Walsimou GAYE. +# Copyright(C) 2010-2014 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 @@ -23,8 +23,11 @@ # \date August 2010 ################################################################################ -#lzo +# bzip2 +source packages/compression/bzip2/bzip2.kconfig + +# lzo source packages/compression/lzo/lzo.kconfig -#zlib +# zlib source packages/compression/zlib/zlib.kconfig diff --git a/packages/compression/compression.mk b/packages/compression/compression.mk index 1a8068a..200758d 100644 --- a/packages/compression/compression.mk +++ b/packages/compression/compression.mk @@ -25,6 +25,9 @@ embtk_pkgincdir := packages/compression +# bzip2 for target +$(call embtk_include_pkg,bzip2) + # lzo for host and target $(call embtk_include_pkg,lzo) $(call embtk_include_hostpkg,lzo_host) -- cgit v1.2.3