summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/pigz/files/ldflags.patch17
-rw-r--r--meta/recipes-extended/pigz/pigz.inc21
-rw-r--r--meta/recipes-extended/pigz/pigz_2.2.4.bb9
3 files changed, 47 insertions, 0 deletions
diff --git a/meta/recipes-extended/pigz/files/ldflags.patch b/meta/recipes-extended/pigz/files/ldflags.patch
new file mode 100644
index 0000000000..928c3a5770
--- /dev/null
+++ b/meta/recipes-extended/pigz/files/ldflags.patch
@@ -0,0 +1,17 @@
1Link using the bitbake LDFLAGS.
2
3Signed-off-by: Björn Stenberg <bjst@enea.com>
4
5Upstream-Status: Pending
6
7--- pigz-2.2.4/Makefile.orig 2012-01-01 02:46:58.000000000 +0100
8+++ pigz-2.2.4/Makefile 2012-03-09 08:47:40.025094863 +0100
9@@ -2,7 +2,7 @@
10 CFLAGS=-O3 -Wall -Wextra
11
12 pigz: pigz.o yarn.o
13- $(CC) -o pigz pigz.o yarn.o -lpthread -lz
14+ $(CC) $(LDFLAGS) -o pigz pigz.o yarn.o -lpthread -lz
15 ln -f pigz unpigz
16
17 pigz.o: pigz.c yarn.h
diff --git a/meta/recipes-extended/pigz/pigz.inc b/meta/recipes-extended/pigz/pigz.inc
new file mode 100644
index 0000000000..acf1b71134
--- /dev/null
+++ b/meta/recipes-extended/pigz/pigz.inc
@@ -0,0 +1,21 @@
1SUMMARY = "A parallel implementation of gzip"
2DESCRIPTION = "pigz, which stands for parallel implementation of gzip, is a \
3fully functional replacement for gzip that exploits multiple processors and \
4multiple cores to the hilt when compressing data. pigz was written by Mark \
5Adler, and uses the zlib and pthread libraries."
6HOMEPAGE = "http://zlib.net/pigz/"
7SECTION = "console/utils"
8LICENSE = "Zlib"
9
10SRC_URI = "http://zlib.net/pigz/pigz-${PV}.tar.gz \
11 file://ldflags.patch"
12
13PROVIDES_virtclass-native += "gzip-native"
14
15DEPENDS_virtclass-native = "zlib-native"
16
17do_install () {
18 install -d ${D}${bindir}
19 install ${B}/pigz ${D}${bindir}/gzip
20 install ${B}/unpigz ${D}${bindir}/gunzip
21}
diff --git a/meta/recipes-extended/pigz/pigz_2.2.4.bb b/meta/recipes-extended/pigz/pigz_2.2.4.bb
new file mode 100644
index 0000000000..598bbe35ba
--- /dev/null
+++ b/meta/recipes-extended/pigz/pigz_2.2.4.bb
@@ -0,0 +1,9 @@
1require pigz.inc
2
3PR = "r0"
4
5BBCLASSEXTEND = "native"
6
7SRC_URI[md5sum] = "9df2a3c742524446fa4e797c17e8fd85"
8SRC_URI[sha256sum] = "7e7967c47f66c07be97cbfa25c8816b72f9d35258466ea31eddc7666c914160e"
9LIC_FILES_CHKSUM = "file://pigz.c;md5=53f47c097bbf11b937a421b1816a8dc5"