[oe-commits] Martin Jansa : libpthread-stubs: add .inc file, INC_PR, native and nativesdk BBCLASSEXTEND

git version control git at git.openembedded.org
Tue Sep 28 20:36:16 UTC 2010


Module: openembedded.git
Branch: master
Commit: bce1c1b96d01b4c86bfad694f03773d9f16ffc47
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=bce1c1b96d01b4c86bfad694f03773d9f16ffc47

Author: Martin Jansa <Martin.Jansa at gmail.com>
Date:   Tue Sep 28 17:47:39 2010 +0200

libpthread-stubs: add .inc file, INC_PR, native and nativesdk BBCLASSEXTEND

* needed for libxcb-native

Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 recipes/xcb/libpthread-stubs.inc    |   14 ++++++++++++++
 recipes/xcb/libpthread-stubs_0.1.bb |   16 ++--------------
 recipes/xcb/libpthread-stubs_0.2.bb |   16 ++--------------
 recipes/xcb/libpthread-stubs_0.3.bb |   16 ++--------------
 4 files changed, 20 insertions(+), 42 deletions(-)

diff --git a/recipes/xcb/libpthread-stubs.inc b/recipes/xcb/libpthread-stubs.inc
new file mode 100644
index 0000000..9c65496
--- /dev/null
+++ b/recipes/xcb/libpthread-stubs.inc
@@ -0,0 +1,14 @@
+DESCRIPTION = "This library provides weak aliases for pthread functions \
+not provided in libc or otherwise available by default."
+SECTION = "x11/libs"
+LICENSE = "MIT-X"
+HOMEPAGE = "http://xcb.freedesktop.org"
+INC_PR = "r2"
+
+BBCLASSEXTEND = "native nativesdk"
+
+PARALLEL_MAKE = ""
+
+SRC_URI = "http://xcb.freedesktop.org/dist/${BPN}-${PV}.tar.bz2"
+
+inherit autotools pkgconfig
diff --git a/recipes/xcb/libpthread-stubs_0.1.bb b/recipes/xcb/libpthread-stubs_0.1.bb
index 0f2dd10..38d05d8 100644
--- a/recipes/xcb/libpthread-stubs_0.1.bb
+++ b/recipes/xcb/libpthread-stubs_0.1.bb
@@ -1,17 +1,5 @@
-DESCRIPTION = "This library provides weak aliases for pthread functions \
-not provided in libc or otherwise available by default."
-SECTION = "x11/libs"
-LICENSE = "MIT-X"
-HOMEPAGE = "http://xcb.freedesktop.org"
-PR = "r1"
-
-PARALLEL_MAKE = ""
-#DEPENDS = "xcb-proto xproto libxau libxslt-native"
-# DEPENDS += "xsltproc-native gperf-native"
-
-SRC_URI = "http://xcb.freedesktop.org/dist/libpthread-stubs-${PV}.tar.bz2"
-
-inherit autotools pkgconfig
+require libpthread-stubs.inc
+PR = "${INC_PR}.0"
 
 SRC_URI[md5sum] = "774eabaf33440d534efe108ef9130a7d"
 SRC_URI[sha256sum] = "004dae11e11598584939d66d26a5ab9b48d08a00ca2d00ae8d38ee3ac7a15d65"
diff --git a/recipes/xcb/libpthread-stubs_0.2.bb b/recipes/xcb/libpthread-stubs_0.2.bb
index 068c667..f0cdd2f 100644
--- a/recipes/xcb/libpthread-stubs_0.2.bb
+++ b/recipes/xcb/libpthread-stubs_0.2.bb
@@ -1,17 +1,5 @@
-DESCRIPTION = "This library provides weak aliases for pthread functions \
-not provided in libc or otherwise available by default."
-SECTION = "x11/libs"
-LICENSE = "MIT-X"
-HOMEPAGE = "http://xcb.freedesktop.org"
-PR = "r1"
-
-PARALLEL_MAKE = ""
-#DEPENDS = "xcb-proto xproto libxau libxslt-native"
-# DEPENDS += "xsltproc-native gperf-native"
-
-SRC_URI = "http://xcb.freedesktop.org/dist/libpthread-stubs-${PV}.tar.bz2"
-
-inherit autotools pkgconfig
+require libpthread-stubs.inc
+PR = "${INC_PR}.0"
 
 SRC_URI[md5sum] = "2ba9ce2d46da0a2a1090384ece3387ff"
 SRC_URI[sha256sum] = "d4c47c24e5ec07e974a7ef8f55b2907dd7fa8de82e291a02b15f8c4a7028bf48"
diff --git a/recipes/xcb/libpthread-stubs_0.3.bb b/recipes/xcb/libpthread-stubs_0.3.bb
index bad516e..3f477e6 100644
--- a/recipes/xcb/libpthread-stubs_0.3.bb
+++ b/recipes/xcb/libpthread-stubs_0.3.bb
@@ -1,20 +1,8 @@
-DESCRIPTION = "This library provides weak aliases for pthread functions \
-not provided in libc or otherwise available by default."
-SECTION = "x11/libs"
-LICENSE = "MIT-X"
-HOMEPAGE = "http://xcb.freedesktop.org"
-PR = "r1"
+require libpthread-stubs.inc
+PR = "${INC_PR}.0"
 
 # For unknown reason doesn't create libpthread-stubs.la
 DEFAULT_PREFERENCE = "-1"
 
-PARALLEL_MAKE = ""
-#DEPENDS = "xcb-proto xproto libxau libxslt-native"
-# DEPENDS += "xsltproc-native gperf-native"
-
-SRC_URI = "http://xcb.freedesktop.org/dist/libpthread-stubs-${PV}.tar.bz2"
-
-inherit autotools pkgconfig
-
 SRC_URI[md5sum] = "e8fa31b42e13f87e8f5a7a2b731db7ee"
 SRC_URI[sha256sum] = "35b6d54e3cc6f3ba28061da81af64b9a92b7b757319098172488a660e3d87299"





More information about the Openembedded-commits mailing list