diff mbox

[114/131] pth: Add new recipe (version 2.0.7) needed for upgraded gnupg

Message ID 45f0cb05be78100ed44b26b42e44f62a680e5e5f.1389702652.git.christian.braunersorensen@prevas.dk
State Accepted
Delegated to: Esben Haabendal
Headers show

Commit Message

christian.braunersorensen@prevas.dk Jan. 14, 2014, 12:34 p.m. UTC
From: Christian Sørensen <christian.braunersorensen@prevas.dk>

Signed-off-by: Christian Sørensen <christian.braunersorensen@prevas.dk>
---
 recipes/pth/files/fix_for_3x_kernels.patch        | 22 ++++++++++++++++++++
 recipes/pth/files/pth-add-pkgconfig-support.patch | 22 ++++++++++++++++++++
 recipes/pth/pth.inc                               | 25 +++++++++++++++++++++++
 recipes/pth/pth_2.0.7.oe                          |  9 ++++++++
 recipes/pth/pth_2.0.7.oe.sig                      |  1 +
 5 files changed, 79 insertions(+)
 create mode 100644 recipes/pth/files/fix_for_3x_kernels.patch
 create mode 100644 recipes/pth/files/pth-add-pkgconfig-support.patch
 create mode 100644 recipes/pth/pth.inc
 create mode 100644 recipes/pth/pth_2.0.7.oe
 create mode 100644 recipes/pth/pth_2.0.7.oe.sig
diff mbox

Patch

diff --git a/recipes/pth/files/fix_for_3x_kernels.patch b/recipes/pth/files/fix_for_3x_kernels.patch
new file mode 100644
index 0000000..cc5cde5
--- /dev/null
+++ b/recipes/pth/files/fix_for_3x_kernels.patch
@@ -0,0 +1,22 @@ 
+--- pth-2.0.7/aclocal.m4	2006-06-08 19:54:01.000000000 +0200
++++ pth-2.0.7/aclocal.m4	2012-05-30 18:44:42.000000000 +0200
+@@ -1074,7 +1074,7 @@ case $PLATFORM in
+         braindead=no
+         case "x`uname -r`" in
+ changequote(, )dnl
+-            x2.[23456789]* ) ;;
++            x2.[23456789]* | x3.[0-9]* ) ;;
+ changequote([, ])
+             * ) braindead=yes ;;
+         esac
+--- pth-2.0.7/configure	2006-06-08 20:14:48.000000000 +0200
++++ pth-2.0.7/configure	2012-05-30 18:45:03.000000000 +0200
+@@ -22512,7 +22512,7 @@ case $PLATFORM in
+     *-*-linux* )
+         braindead=no
+         case "x`uname -r`" in
+-            x2.[23456789]* ) ;;
++            x2.[23456789]* | x3.[0-9]* ) ;;
+ 
+             * ) braindead=yes ;;
+         esac
diff --git a/recipes/pth/files/pth-add-pkgconfig-support.patch b/recipes/pth/files/pth-add-pkgconfig-support.patch
new file mode 100644
index 0000000..82889b3
--- /dev/null
+++ b/recipes/pth/files/pth-add-pkgconfig-support.patch
@@ -0,0 +1,22 @@ 
+--- /dev/null
++++ b/pth.pc
+@@ -0,0 +1,16 @@
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++libdir=@libdir@
++includedir=@includedir@
++bindir=@bindir@
++mandir=@mandir@
++datadir=@datadir@
++acdir=@datadir@/aclocal
++
++Name: pth
++Description: GNU Portable Threads
++Requires:
++Version: @PTH_VERSION@
++Libs: -L${libdir} -lpth
++Libs.private: 
++Cflags: -I${includedir}
+-- 
+1.7.5.4
+
diff --git a/recipes/pth/pth.inc b/recipes/pth/pth.inc
new file mode 100644
index 0000000..6b8e376
--- /dev/null
+++ b/recipes/pth/pth.inc
@@ -0,0 +1,25 @@ 
+SUMMARY = "GNU Portable Threads library"
+HOMEPAGE = "http://www.gnu.org/software/pth/"
+LICENSE = "GPLv2+"
+
+inherit autotools pkgconfig library auto-package-utils binconfig
+
+require conf/fetch/gnu.conf
+SRC_URI = "${GNU_MIRROR}/pth/pth-${PV}.tar.gz"
+SRC_URI += "file://fix_for_3x_kernels.patch"
+SRC_URI += "file://pth-add-pkgconfig-support.patch"
+
+PARALLEL_MAKE = ""
+
+# pth.pc is added locally and thus installed here
+do_install[postfuncs] += "do_install_pc"
+do_install_pc() {
+	install -d ${D}/${libdir}/pkgconfig
+	install -m 0644 ${S}/pth.pc ${D}/${libdir}/pkgconfig/
+}
+
+AUTO_PACKAGE_UTILS += "pth-config"
+
+DEPENDS_${PN} += "libc"
+RDEPENDS_${PN} += "libc"
+
diff --git a/recipes/pth/pth_2.0.7.oe b/recipes/pth/pth_2.0.7.oe
new file mode 100644
index 0000000..a54a7b5
--- /dev/null
+++ b/recipes/pth/pth_2.0.7.oe
@@ -0,0 +1,9 @@ 
+require pth.inc
+
+LIBRARY_VERSION = "20"
+
+do_install[postfuncs] += "do_install_fix_path_error"
+do_install_fix_path_error() {
+	sed -i -e 's#\(.*output=\"\$output\)\( -I\$pth_includedir\"\)#\1\"#' \
+			${D}${bindir}/pth-config
+}
diff --git a/recipes/pth/pth_2.0.7.oe.sig b/recipes/pth/pth_2.0.7.oe.sig
new file mode 100644
index 0000000..12e5a76
--- /dev/null
+++ b/recipes/pth/pth_2.0.7.oe.sig
@@ -0,0 +1 @@ 
+9a71915c89ff2414de69fe104ae1016d513afeee  pth-2.0.7.tar.gz