new file mode 100644
@@ -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
new file mode 100644
@@ -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
+
new file mode 100644
@@ -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"
+
new file mode 100644
@@ -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
+}
new file mode 100644
@@ -0,0 +1 @@
+9a71915c89ff2414de69fe104ae1016d513afeee pth-2.0.7.tar.gz