updated on Fri Jan 13 20:02:10 UTC 2012
[aur-mirror.git] / inventor / PKGBUILD
bloba8c6eadbcbecd3580516396df140c112fc3486d5
1 # Contributor: marcus fritzsch <fritschy@googlemail.com>
3 pkgname=inventor
4 pkgver=2.1.5.10
5 pkgrel=1
6 pkgdesc="Open Inventor(TM) is an object-oriented 3D toolkit offering a comprehensive solution to interactive graphics programming problems."
7 url="http://oss.sgi.com/projects/inventor/"
8 license="GPL"
9 depends=('libjpeg' 'libxi' 'mesa' 'lesstif')
10 makedepends=('tcsh')
11 conflicts=('coin')
12 replaces=('coin')
13 backup=()
14 install=
15 source=("ftp://oss.sgi.com/projects/inventor/download/$pkgname-2.1.5-10.src.tar.gz"
16 '00_freetype.patch' '01_SoPath.patch' '02_SoCalcParse.patch' '03_ivcommondefs.patch'
17 '05_freetype.patch' '06_makeManDirs.patch' '07_glw.patch' '08_linkage.patch')
18 md5sums=('82208096f1e0b111160e864e239c3a51' 'efd0472a4c40117ce389f2581bcf73a9'
19 '394563e05cee6c6a14e04dfd84bc43ff' '04cf5538a9987f72c4d7338a6a2245f7'
20 '0ba7ba3d4b117cc2c407d77d0ac3cc63' '8937d031b1db3b401b676353d170a76f'
21 '5c5aee526bac4c71833070503fd098f5' 'a6476c2419cd27c289b25bd2f1ed703f'
22 '9239e5383757d20bf8073ad15406aafc')
24 build() {
25   cd $startdir/src/$pkgname
27   unset LS_COLORS # csh tends to exit when this one is 'ugly'
29   # lots of small patches...
30   patch -p1 < $startdir/00_freetype.patch
31   patch -p1 < $startdir/01_SoPath.patch
32   patch -p1 < $startdir/02_SoCalcParse.patch
33   patch -p1 < $startdir/03_ivcommondefs.patch
34   patch -p1 < $startdir/05_freetype.patch
35   patch -p1 < $startdir/06_makeManDirs.patch
36   patch -p1 < $startdir/07_glw.patch
37   patch -p1 < $startdir/08_linkage.patch
39   export IVROOT="$startdir/pkg"
40   export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":$IVROOT/usr/lib
41   export FREETYPE=1
42   export LLDLIBS="-lInventor -lInventorXt"
43   make DESTDIR=$startdir/pkg install || return 1
44   unset IVROOT FREETYPE LLDLIBS
46   # cleanup installation
47   cd $startdir/pkg/usr/share
48   mkdir -m 755 Inventor
49   mv ../demos Inventor/
50   mv data help Inventor/