mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
community/openscenegraph to 3.4.1-1
This commit is contained in:
parent
9e880e16d3
commit
b489b59587
1 changed files with 13 additions and 14 deletions
|
@ -9,8 +9,8 @@
|
|||
# - upstream patch for signed char
|
||||
|
||||
pkgname=openscenegraph
|
||||
pkgver=3.4.0
|
||||
pkgrel=5
|
||||
pkgver=3.4.1
|
||||
pkgrel=1
|
||||
pkgdesc="An Open Source, high performance real-time graphics toolkit"
|
||||
arch=('i686' 'x86_64')
|
||||
license=('custom:OSGPL')
|
||||
|
@ -20,21 +20,22 @@ makedepends=('cmake' 'libvncserver' 'qt5-base' 'ffmpeg' 'mesa')
|
|||
optdepends=('libvncserver' 'gdal' 'openexr' 'poppler-glib' 'qt5-base' 'ffmpeg')
|
||||
conflicts=('openthreads')
|
||||
provides=('openthreads')
|
||||
source=(http://trac.openscenegraph.org/downloads/developer_releases/OpenSceneGraph-$pkgver.zip openscenegraph-ffmpeg3.patch
|
||||
https://github.com/openscenegraph/OpenSceneGraph/commit/01c712e85195803993acb1d7712796cf494943c6.patch)
|
||||
md5sums=('a5e762c64373a46932e444f6f7332496'
|
||||
'f8151db111ad492ea3bf93971f9a32a9'
|
||||
'fa5d9d8369d93a02c6c7b4a2f5fd24e2')
|
||||
source=(https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-$pkgver.tar.gz
|
||||
openscenegraph-ffmpeg3.patch
|
||||
https://github.com/openscenegraph/OpenSceneGraph/commit/01c712e85195803993acb1d7712796cf494943c6.patch)
|
||||
sha256sums=('930eb46f05781a76883ec16c5f49cfb29a059421db131005d75bec4d78401fd5'
|
||||
'a65fc1ac0538fddb8d11ef1ab2322a782715f8d2b42e0bb01a191212a0612477'
|
||||
'b58fd51b1934a4bc00ece9de6737bff70b10fb0155879ac75fc0e8116b47077b')
|
||||
|
||||
prepare() {
|
||||
cd OpenSceneGraph-$pkgver
|
||||
# Fix build with ffmpeg 3.0 (Debian)
|
||||
patch -p2 -i ../openscenegraph-ffmpeg3.patch
|
||||
cd OpenSceneGraph-OpenSceneGraph-$pkgver
|
||||
# Fix build with ffmpeg 3.0 (Debian)
|
||||
# patch -p2 -i ../openscenegraph-ffmpeg3.patch
|
||||
patch -p1 -i ../01c712e85195803993acb1d7712796cf494943c6.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd OpenSceneGraph-$pkgver
|
||||
cd OpenSceneGraph-OpenSceneGraph-$pkgver
|
||||
# CFLAGS="$CFLAGS -D__STDC_CONSTANT_MACROS"
|
||||
# CXXFLAGS="$CXXFLAGS -D__STDC_CONSTANT_MACROS"
|
||||
|
||||
|
@ -61,13 +62,11 @@ build() {
|
|||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
${GLES_ONLY[@]}
|
||||
|
||||
# sed -i 's|#include <curl/types.h>|//#include <curl/types.h>|' src/osgPlugins/curl/ReaderWriterCURL.cpp
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd OpenSceneGraph-$pkgver
|
||||
cd OpenSceneGraph-OpenSceneGraph-$pkgver
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
[ -d "$pkgdir/usr/lib64" ] && mv "$pkgdir/usr/lib64" "$pkgdir/usr/lib" || true
|
||||
|
|
Loading…
Reference in a new issue