summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/pixz/pixz/936d8068ae19d95260d3058f41dd6cf718101cd6.patch68
-rw-r--r--meta/recipes-extended/pixz/pixz_1.0.6.bb24
2 files changed, 92 insertions, 0 deletions
diff --git a/meta/recipes-extended/pixz/pixz/936d8068ae19d95260d3058f41dd6cf718101cd6.patch b/meta/recipes-extended/pixz/pixz/936d8068ae19d95260d3058f41dd6cf718101cd6.patch
new file mode 100644
index 0000000000..e3489db5b8
--- /dev/null
+++ b/meta/recipes-extended/pixz/pixz/936d8068ae19d95260d3058f41dd6cf718101cd6.patch
@@ -0,0 +1,68 @@
1From 936d8068ae19d95260d3058f41dd6cf718101cd6 Mon Sep 17 00:00:00 2001
2From: Christian Krause <kizkizzbangbang@googlemail.com>
3Date: Sat, 26 Dec 2015 14:36:17 +0100
4Subject: [PATCH] option to not build man page
5
6fixes #56
7---
8 configure.ac | 23 +++++++++++++++++++----
9 src/Makefile.am | 2 ++
10 2 files changed, 21 insertions(+), 4 deletions(-)
11
12Upstream-Status: Backport
13RP 2016/01/22
14
15diff --git a/configure.ac b/configure.ac
16index b437e56..4cb56bc 100644
17--- a/configure.ac
18+++ b/configure.ac
19@@ -20,13 +20,28 @@ AC_CHECK_FILE(
20 [src/pixz.1],
21 [],
22 [
23- AC_CHECK_PROG(A2X, a2x, a2x, [])
24- if test "x$A2X" = x ; then
25- AC_MSG_ERROR([AsciiDoc not found, not able to generate the man page.])
26- fi
27+ AC_ARG_WITH(
28+ [manpage],
29+ [ --without-manpage don't build man page],
30+ [case ${withval} in
31+ yes) manpage=true ;;
32+ no) manpage=false ;;
33+ *) AC_MSG_ERROR([bad value ${withval} for --with-manpage]) ;;
34+ esac],
35+ [manpage=true]
36+ )
37 ]
38 )
39
40+AM_CONDITIONAL([MANPAGE], [test x$manpage = xtrue])
41+
42+if test x$manpage = xtrue ; then
43+ AC_CHECK_PROG(A2X, a2x, a2x, [])
44+ if test "x$A2X" = x ; then
45+ AC_MSG_ERROR([AsciiDoc not found, not able to generate the man page.])
46+ fi
47+fi
48+
49 # Checks for libraries.
50 AC_CHECK_LIB([m], [ceil])
51 AX_PTHREAD
52diff --git a/src/Makefile.am b/src/Makefile.am
53index 600ec90..b98f450 100644
54--- a/src/Makefile.am
55+++ b/src/Makefile.am
56@@ -15,6 +15,7 @@ pixz_SOURCES = \
57 read.c \
58 write.c
59
60+if MANPAGE
61 # TODO remove when possible: This is a hack because a2x is not able to output the man pages to a
62 # specific directory, only to where the source is.
63 pixz.1: pixz.1.asciidoc
64@@ -26,3 +27,4 @@ man_MANS = pixz.1
65 CLEANFILES = pixz.1
66
67 EXTRA_DIST = $(man_MANS) pixz.1.asciidoc
68+endif
diff --git a/meta/recipes-extended/pixz/pixz_1.0.6.bb b/meta/recipes-extended/pixz/pixz_1.0.6.bb
new file mode 100644
index 0000000000..492b7ef611
--- /dev/null
+++ b/meta/recipes-extended/pixz/pixz_1.0.6.bb
@@ -0,0 +1,24 @@
1SUMMARY = "Parallel, indexed xz compressor"
2
3DEPENDS = "xz libarchive"
4DEEPNDS_class-native = "xz-replacement-native libarchive-native"
5
6SRC_URI = "https://github.com/vasi/pixz/releases/download/v${PV}/${BPN}-${PV}.tar.xz"
7SRC_URI[md5sum] = "f6dc5909c9a31b192f69aa397ae8df48"
8SRC_URI[sha256sum] = "02c50746b134fa1b1aae41fcc314d7c6f1919b3d48bcdea01bf11769f83f72e8"
9
10LICENSE = "BSD-2-Clause"
11LIC_FILES_CHKSUM = "file://LICENSE;md5=5cf6d164086105f1512ccb81bfff1926"
12
13SRC_URI += "file://936d8068ae19d95260d3058f41dd6cf718101cd6.patch"
14
15EXTRA_OECONF += "--without-manpage"
16
17CACHED_CONFIGUREVARS += "ac_cv_file_src_pixz_1=no"
18
19inherit autotools pkgconfig
20
21PKG_CONFIG_PATH_append_class-native = ":${STAGING_DIR_HOST}${libdir}/xz-native/pkgconfig"
22BUILD_LDFLAGS_append_class-native = " -Wl,-rpath,${STAGING_DIR_HOST}${libdir}/xz-native/"
23
24BBCLASSEXTEND = "native"