upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / openscenegraph / trunk / PKGBUILD
blob9a13ebbb8364ae3c04e29f8e6ba8eac114aa47ab
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: Hans Janssen <janserv@gmail.com>
4 # Contributor: my64 <packages@obordes.com>
5 # Contributor: Colin Pitrat <colin.pitrat@gmail.com>
7 pkgname=openscenegraph
8 pkgver=3.6.5
9 pkgrel=19
10 pkgdesc='Open Source, high performance real-time graphics toolkit'
11 url='http://www.openscenegraph.org'
12 arch=('x86_64')
13 license=('custom:OSGPL')
14 depends=('fontconfig' 'libglvnd' 'libxinerama' 'libxrandr')
15 makedepends=('cmake' 'ffmpeg4.4' 'gdal' 'gst-plugins-base-libs' 'jasper' 'librsvg' 'libvncserver' 'openexr' 'poppler-glib')
16 optdepends=('ffmpeg4.4' 'gdal' 'gst-plugins-base-libs' 'jasper' 'librsvg' 'libvncserver' 'openexr' 'poppler-glib')
17 conflicts=('openthreads')
18 provides=('openthreads')
19 source=(https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-${pkgver}.tar.gz
20         openscenegraph-openexr3.patch
21         ffmpeg4.4.patch)
22 sha256sums=('aea196550f02974d6d09291c5d83b51ca6a03b3767e234a8c0e21322927d1e12'
23             '680ea7cd1b1681fb42137dd1510c64862507b889286d8788d3f017d9d307792d'
24             '64a492d266e49aec611fd609251fa7dd08f75e86b25120a1abaf0328223c921a')
25 sha512sums=('7002fa30a3bcf6551d2e1050b4ca75a3736013fd190e4f50953717406864da1952deb09f530bc8c5ddf6e4b90204baec7dbc283f497829846d46d561f66feb4b'
26             '0788e87bf17adf586d5041c5b565d0a09fe38f7c5e96a843e69f5171737aef68bd277b240ccf860cfb78e36ea6d7d7c599ecff104bb78de513d1b3edb70358ef'
27             '9c6d63d3e38a4045b891ccf2f0a2876a52ce8b033214ef9a24072e2ebcde4d1ce12be6d420a37e3b2cb0bdbd5d7d5a808c45d3b207c20a54cfa1114dcfcd1ada')
29 prepare() {
30   cd OpenSceneGraph-OpenSceneGraph-${pkgver}
31   patch -p1 < ../openscenegraph-openexr3.patch # Fix build with openEXR 3
32   patch -p1 < ../ffmpeg4.4.patch # Find ffmpeg 4.4 headers
35 build() {
36   mkdir -p OpenSceneGraph-OpenSceneGraph-${pkgver}/build
37   cd OpenSceneGraph-OpenSceneGraph-${pkgver}/build
38   export PKG_CONFIG_PATH='/usr/lib/ffmpeg4.4/pkgconfig'
39   cmake \
40     -DCMAKE_INSTALL_PREFIX=/usr \
41     -DCMAKE_BUILD_TYPE=Release \
42   ..
43   VERBOSE=1 make
46 package() {
47   cd OpenSceneGraph-OpenSceneGraph-${pkgver}
48   make -C build DESTDIR="${pkgdir}" install
49   install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
52 # vim: ts=2 sw=2 et: