desktop/openscenegraph/PKGBUILD

45 lines
1.1 KiB
Bash
Raw Normal View History

2011-05-13 09:43:18 +08:00
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=openscenegraph
_pkgname=OpenSceneGraph
2013-09-21 04:34:57 +08:00
pkgver=3.2.0
pkgrel=1
2011-05-13 09:43:18 +08:00
pkgdesc="FOSS high performance real-time graphics toolkit."
2013-09-21 04:34:57 +08:00
arch=('x86_64')
2011-05-13 09:43:18 +08:00
license=('custom:OSGPL')
url="http://www.openscenegraph.org"
2013-09-21 04:34:57 +08:00
depends=('curl' 'giflib' 'jasper' 'librsvg' 'pth' 'xine-lib')
makedepends=('cmake' 'libvncserver' 'qt' 'ffmpeg' 'mesa')
optdepends=('libvncserver' 'gdal' 'openexr' 'poppler-glib' 'qt')
2012-03-07 19:00:46 +08:00
categories=('games')
2013-09-21 04:34:57 +08:00
source=(http://www.openscenegraph.org/downloads/developer_releases/${_pkgname}-$pkgver.zip)
md5sums=('4980f8692712a24d4c99f363f80c6814')
2011-05-13 09:43:18 +08:00
build() {
cd $srcdir/$_pkgname-$pkgver
2012-04-15 03:35:42 +08:00
mkdir -p build && cd build
2013-09-21 04:34:57 +08:00
2011-05-13 09:43:18 +08:00
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
2013-09-21 04:34:57 +08:00
-DFFMPEG_LIBAVCODEC_INCLUDE_DIRS=Off \
2011-05-13 09:43:18 +08:00
..
2012-04-15 03:35:42 +08:00
2011-05-13 09:43:18 +08:00
make
}
package() {
cd $srcdir/$_pkgname-$pkgver/build
make DESTDIR=$pkgdir install
# Fix installation directory.
2013-09-21 04:34:57 +08:00
mv $pkgdir/usr/lib64 $pkgdir/usr/lib
# License.
install -D -m644 ../LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/license.txt
2011-05-13 09:43:18 +08:00
}