desktop/coin/PKGBUILD

63 lines
1.6 KiB
Bash
Raw Normal View History

2011-06-25 21:49:54 +08:00
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=coin
_pkgname=Coin
pkgver=3.1.3
pkgrel=2
2011-06-25 21:49:54 +08:00
pkgdesc='Coin3D is a high-level 3D graphics toolkit on top of OpenGL.'
url='http://www.coin3d.org/'
license=('GPL')
arch=('x86_64')
2011-06-25 21:49:54 +08:00
depends=('mesa' 'expat')
makedepends=('doxygen')
optdepends=('openal: sound/dynamic linking support'
'fontconfig: dynamic linking support'
'zlib: dynamic linking support'
'freetype2: dynamic linking support'
'spidermonkey: dynamic linking support')
options=('!libtool')
categories=('graphics')
2011-06-25 21:49:54 +08:00
changelog=ChangeLog
source=("https://bitbucket.org/Coin3D/coin/downloads/Coin-${pkgver}.tar.gz")
2011-06-25 21:49:54 +08:00
md5sums=('1538682f8d92cdf03e845c786879fbea')
build() {
cd $_pkgname-$pkgver
# fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=667139
sed -i "/#include <Inventor\/C\/basic.h>/i #include <Inventor/C/errors/debugerror.h>" include/Inventor/SbBasic.h
2011-06-25 21:49:54 +08:00
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--enable-optimization \
--enable-3ds-import \
--enable-javascript-api \
--enable-threadsafe \
--enable-exceptions \
--enable-man \
--with-mesa \
--disable-debug \
--enable-shared \
--disable-maintainer-mode \
--disable-dependency-tracking \
--enable-system-expat
make
}
package() {
cd $_pkgname-$pkgver
make DESTDIR=$pkgdir install
# Final adjustments.
for _FILE in threads deprecated
do
mv $pkgdir/usr/share/man/man3/$_FILE.3 $pkgdir/usr/share/man/man3/$pkgname-$_FILE.3
done
}