mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
32 lines
1.2 KiB
Bash
32 lines
1.2 KiB
Bash
|
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
|
||
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
||
|
# Contributor: William Rea <sillywilly@gmail.com>
|
||
|
|
||
|
pkgname=openthreads
|
||
|
pkgver=2.2.1
|
||
|
pkgrel=2
|
||
|
pkgdesc="A minimal & complete Object-Oriented thread interface for C++ programmers"
|
||
|
arch=('i686' 'x86_64')
|
||
|
url="http://openthreads.sourceforge.net"
|
||
|
license=("LGPL")
|
||
|
depends=('libstdc++5')
|
||
|
makedepends=('cmake')
|
||
|
source=(http://www.openscenegraph.org/downloads/developer_releases/OpenThreads-$pkgver.zip)
|
||
|
md5sums=('17f320d0e750ad5564b4854aceeb7b59')
|
||
|
|
||
|
build() {
|
||
|
cd $startdir/src/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
|
||
|
|
||
|
./configure --prefix=/usr
|
||
|
make || return 1
|
||
|
sed -i 's#lib64#lib#' src/OpenThreads/pthreads/cmake_install.cmake install_manifest.txt
|
||
|
make DESTDIR=$startdir/pkg install || return 1
|
||
|
|
||
|
mv $startdir/pkg/usr/local/* $startdir/pkg/usr && \
|
||
|
install -D Make/openthreads.pc $startdir/pkg/usr/lib/pkgconfig/openthreads.pc && \
|
||
|
rm -rf $startdir/pkg/usr/local
|
||
|
}
|