1 # Contributor: marcus fritzsch <fritschy@googlemail.com>
6 pkgdesc="Coin3D is a high-level 3D graphics toolkit on top of OpenGL."
7 url="http://www.coin3d.org/"
9 depends=('coin' 'libxi' 'libxmu' 'libxpm' 'lesstif')
10 makedepends=('gcc' 'doxygen' 'coin')
16 source=("http://ftp.coin3d.org/coin/src/all/SoXt-$pkgver.tar.gz" 00_linkage.patch)
17 md5sums=('25f7d18998e6cc1403e0f3ae0c235500' '7cd3792d0f38520a3add48263cb47f8c')
23 cd SoXt-$pkgver && patch -p1 < $startdir/00_linkage.patch && cd .. || return 1
25 export CXXFLAGS="-O3 -march=i686 -funroll-loops -fomit-frame-pointer -pipe"
26 export CFLAGS="$CXXFLAGS"
30 ../SoXt-$pkgver/configure --prefix=/usr --enable-optimization \
31 --enable-threadsafe --enable-html --enable-man --enable-exceptions \
32 --disable-debug --disable-maintainer-mode --disable-dependency-tracking \
33 --enable-shared --disable-static
35 make DESTDIR=$startdir/pkg install || return 1
36 rm -f $startdir/pkg/usr/lib/libSoXt.la
38 cd $startdir/pkg/usr/man/man3
41 awk '{ if (NR==1) sub(" 3 ", " 3iv "); print }' < $i > ${i%3}3iv || return 1