PKGBUILD 1.12 KB
Newer Older
1 2 3 4 5 6 7
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>

pkgname=openscenegraph
_pkgname=OpenSceneGraph
8 9
pkgver=3.2.0
pkgrel=1
10
pkgdesc="FOSS high performance real-time graphics toolkit."
11
arch=('x86_64')
12 13
license=('custom:OSGPL')
url="http://www.openscenegraph.org"
14 15 16
depends=('curl' 'giflib' 'jasper' 'librsvg' 'pth' 'xine-lib')
makedepends=('cmake' 'libvncserver' 'qt' 'ffmpeg' 'mesa')
optdepends=('libvncserver' 'gdal' 'openexr' 'poppler-glib' 'qt')
Giuseppe's avatar
Giuseppe committed
17
categories=('games')
18 19
source=(http://www.openscenegraph.org/downloads/developer_releases/${_pkgname}-$pkgver.zip)
md5sums=('4980f8692712a24d4c99f363f80c6814')
20 21 22

build() {
  cd $srcdir/$_pkgname-$pkgver
23 24

  mkdir -p build && cd build
25
 
26 27
  cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
28
    -DCMAKE_BUILD_TYPE=Release \
29
    -DFFMPEG_LIBAVCODEC_INCLUDE_DIRS=Off \
30
    ..
31

32 33 34 35 36 37
  make
}

package() {
  cd $srcdir/$_pkgname-$pkgver/build
  make DESTDIR=$pkgdir install
38 39

  # Fix installation directory.
40
  mv $pkgdir/usr/lib64 $pkgdir/usr/lib
41 42 43

  # License.
  install -D -m644 ../LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/license.txt
44
}