boost: add version 1.41.0 and modified boost-14x.inc
authorDenis 'Gnutoo' Carikli <GNUtoo@no-log.org>
Sun, 6 Dec 2009 22:59:11 +0000 (23:59 +0100)
committerDenis 'Gnutoo' Carikli <GNUtoo@no-log.org>
Sun, 6 Dec 2009 23:16:39 +0000 (00:16 +0100)
*1.41.0 fixes a bug with MPI: in 1.40.0 if you don't have the mpi
 libraries installed in your host it fails
*added the dependency on icu because of things like that:
 unicode/utypes.h: No such file or directory
*made it install in ${libdir} instead of ${libdir}/boost-${PV}:
 thanks woglinde for pointing me that a variable existed for that
 that is achieved with -DINSTALL_VERSIONED:BOOL=OFF
*removed an useless like that were here because the recipe was
 copied from the split function was copied from an old boost recipe
 that used bjam

recipes/boost/boost-14x.inc
recipes/boost/boost_1.41.0.bb [new file with mode: 0644]
recipes/boost/files/1.41.0_uclibc.patch [new file with mode: 0644]

index b1a5f6b..0a53001 100644 (file)
@@ -22,6 +22,8 @@ EXTRA_OECMAKE = "-DBUILD_SHARED=ON \
                 -DBUILD_MULTI_THREADED=ON \
                 -DBUILD_RELEASE=ON \
                  -DBUILD_DEBUG=OFF \
+                -DWITH_MPI:BOOL=OFF \
+                -DINSTALL_VERSIONED:BOOL=OFF \
                "
 
 BOOST_LIBS = "\
@@ -64,7 +66,6 @@ python __anonymous () {
             if not bb.data.getVar("FILES_%s" % pkg, d, 1):
                     bb.data.setVar("FILES_%s" % pkg, "${libdir}/libboost_%s*.so*" % lib, d)
     bb.data.setVar("BOOST_PACKAGES", " ".join(packages), d)
-    bb.data.setVar("BJAM_EXTRA", " ".join(extras), d)
 }
 
 # Override the contents of specific packages
diff --git a/recipes/boost/boost_1.41.0.bb b/recipes/boost/boost_1.41.0.bb
new file mode 100644 (file)
index 0000000..a4c9287
--- /dev/null
@@ -0,0 +1,16 @@
+require boost-14x.inc
+
+PR = "r0"
+
+SRC_URI = "http://sodium.resophonic.com/boost-cmake/1.41.0.cmake0/boost-1.41.0.cmake0.tar.gz;name=tarball \
+           file://1.41.0_uclibc.patch;patch=1 \
+          "
+S = "${WORKDIR}/boost-1.41.0.cmake0"
+
+SRC_URI[tarball.md5sum] = "351747d991e3e391fea5623d4b5c038a"
+SRC_URI[tarball.sha256sum] = "78b7e72d34b057847ff99b291719d5bf1b76ed080bebfa3122549c231cc8fbed"
+
+DEPENDS += " icu "
+
+DEFAULT_PREFERENCE = "-1"
+
diff --git a/recipes/boost/files/1.41.0_uclibc.patch b/recipes/boost/files/1.41.0_uclibc.patch
new file mode 100644 (file)
index 0000000..21d12da
--- /dev/null
@@ -0,0 +1,13 @@
+Index: boost-1.41.0.cmake0/libs/thread/src/pthread/thread.cpp
+===================================================================
+--- boost-1.41.0.cmake0.orig/libs/thread/src/pthread/thread.cpp
++++ boost-1.41.0.cmake0/libs/thread/src/pthread/thread.cpp
+@@ -380,7 +380,7 @@ namespace boost
+     {
+ #if defined(PTW32_VERSION) || defined(__hpux)
+         return pthread_num_processors_np();
+-#elif defined(_GNU_SOURCE)
++#elif defined(_GNU_SOURCE) && !defined(__UCLIBC__)
+         return get_nprocs();
+ #elif defined(__APPLE__) || defined(__FreeBSD__)
+         int count;