PKGBUILDs/community/openscenegraph/PKGBUILD

52 lines
1.9 KiB
Bash
Raw Normal View History

2015-12-20 01:24:16 +00:00
# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Hans Janssen <janserv@gmail.com>
# Contributor: my64 <packages@obordes.com>
# Contributor: Colin Pitrat <colin.pitrat@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2016-12-08 01:11:44 +00:00
# - upstream patch for signed char
2015-12-20 01:24:16 +00:00
pkgname=openscenegraph
2017-09-04 19:30:03 +00:00
pkgver=3.4.1
pkgrel=1
2015-12-20 01:24:16 +00:00
pkgdesc="An Open Source, high performance real-time graphics toolkit"
arch=('i686' 'x86_64')
license=('custom:OSGPL')
url="http://www.openscenegraph.org"
depends=('giflib' 'jasper' 'librsvg' 'xine-lib' 'curl' 'pth')
2016-02-06 00:30:59 +00:00
makedepends=('cmake' 'libvncserver' 'qt5-base' 'ffmpeg' 'mesa')
optdepends=('libvncserver' 'gdal' 'openexr' 'poppler-glib' 'qt5-base' 'ffmpeg')
2015-12-20 01:24:16 +00:00
conflicts=('openthreads')
provides=('openthreads')
2017-09-04 19:30:03 +00:00
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')
2016-02-27 15:08:15 +00:00
prepare() {
2017-09-04 19:30:03 +00:00
cd OpenSceneGraph-OpenSceneGraph-$pkgver
# Fix build with ffmpeg 3.0 (Debian)
# patch -p2 -i ../openscenegraph-ffmpeg3.patch
2016-12-08 01:11:44 +00:00
patch -p1 -i ../01c712e85195803993acb1d7712796cf494943c6.patch
2016-02-27 15:08:15 +00:00
}
2015-12-20 01:24:16 +00:00
build() {
2017-09-04 19:30:03 +00:00
cd OpenSceneGraph-OpenSceneGraph-$pkgver
2016-02-06 00:30:59 +00:00
# CFLAGS="$CFLAGS -D__STDC_CONSTANT_MACROS"
# CXXFLAGS="$CXXFLAGS -D__STDC_CONSTANT_MACROS"
2015-12-20 01:24:16 +00:00
[ $NOEXTRACT -eq 1 ] || cmake . \
-DCMAKE_INSTALL_PREFIX=/usr \
2017-09-04 21:49:45 +00:00
-DCMAKE_BUILD_TYPE=Release
2015-12-20 01:24:16 +00:00
make
}
package() {
2017-09-04 19:30:03 +00:00
cd OpenSceneGraph-OpenSceneGraph-$pkgver
2015-12-20 01:24:16 +00:00
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
}