summaryrefslogtreecommitdiff
path: root/community/openthreads/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/openthreads/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/openthreads/PKGBUILD')
-rw-r--r--community/openthreads/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/openthreads/PKGBUILD b/community/openthreads/PKGBUILD
new file mode 100644
index 000000000..e65ef6aab
--- /dev/null
+++ b/community/openthreads/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 24579 2010-08-26 13:35:34Z lcarlier $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: William Rea <sillywilly@gmail.com>
+
+pkgname=openthreads
+pkgver=2.3.0
+pkgrel=1
+pkgdesc="A minimal & complete Object-Oriented thread interface for C++ programmers"
+arch=('i686' 'x86_64')
+url="http://openthreads.sourceforge.net"
+license=("LGPL")
+depends=('gcc-libs')
+makedepends=('cmake')
+source=(http://www.openscenegraph.org/downloads/developer_releases/OpenThreads-$pkgver.zip)
+md5sums=('ab4899c9d11e3917bd5f1401d6d0af11')
+
+build() {
+ cd "$srcdir/OpenThreads-$pkgver"
+
+ sed -i 's#-lpthreads#-lpthread#' CMakeModules/FindThreads.cmake
+ sed -i 's#SET(CMAKE_REQUIRED_LIBRARIES "${CMAKE_REQUIRED_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}")#SET(CMAKE_REQUIRED_LIBRARIES "${CMAKE_THREAD_LIBS_INIT}")#' src/OpenThreads/pthreads/CMakeLists.txt
+
+ cmake . -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+
+ make
+}
+
+package() {
+ cd "$srcdir/OpenThreads-$pkgver"
+
+ sed -i 's#lib64#lib#' src/OpenThreads/pthreads/cmake_install.cmake
+ make DESTDIR="$pkgdir" install
+
+ install -D packaging/pkg_config/openthreads.pc ${pkgdir}/usr/lib/pkgconfig/openthreads.pc
+}