summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorRicardo Crudo <ricardo.crudo@gmail.com>2014-05-17 16:00:37 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-05-17 16:01:35 +0200
commit4862b3872a706f274c635bdf60830bb81588be58 (patch)
tree7a9c943afa4080aa56bc2526d3ff2781398633de /packages
parent89929dac9a770c1c0d17358bc37be1fd8cab2195 (diff)
downloadembtoolkit-4862b3872a706f274c635bdf60830bb81588be58.tar.gz
embtoolkit-4862b3872a706f274c635bdf60830bb81588be58.tar.bz2
embtoolkit-4862b3872a706f274c635bdf60830bb81588be58.tar.xz
Packages/compression: New bzip2 v1.0.6
Signed-off-by: Ricardo Crudo <ricardo.crudo@gmail.com> Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/compression/bzip2/bzip2.kconfig52
-rw-r--r--packages/compression/bzip2/bzip2.mk44
-rw-r--r--packages/compression/compression.kconfig9
-rw-r--r--packages/compression/compression.mk3
4 files changed, 105 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file bzip2.kconfig
+# \brief bzip2.kconfig of Embtoolkit.
+# \author Ricardo Crudo <ricardo.crudo@gmail.com>
+# \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 <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file bzip2.mk
+# \brief bzip2.mk of Embtoolkit.
+# \author Ricardo Crudo <ricardo.crudo@gmail.com>
+# \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)