community/opencascade to 6.9.1-7

This commit is contained in:
Kevin Mihelich 2016-09-24 18:07:43 +00:00
parent 04c477290f
commit 9e33a2519a

View file

@ -11,7 +11,7 @@ highmem=1
pkgname=opencascade
pkgver=6.9.1
pkgrel=3
pkgrel=7
pkgdesc="Open CASCADE Technology, 3D modeling & numerical simulation"
arch=('i686' 'x86_64')
url="http://www.opencascade.org"
@ -26,6 +26,10 @@ md5sums=('7f2e645b5010d190c9bb35dc457f9a7c'
'88db8e6b9afa132d1893bbb814250350'
'79b004fccfc7bfbe21559a1d52f074c2')
# This works around a bug that is corrected in OCCT 7.0.0
export CCFLAGS+=" -O2 -fno-delete-null-pointer-checks"
export CXXFLAGS+=" -O2 -fno-delete-null-pointer-checks"
prepare() {
cd "$srcdir/$pkgname-$pkgver"
@ -35,6 +39,7 @@ prepare() {
# fix for automake 1.13
sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac
# Included in OCCT 7.0.0
patch -i "$srcdir/salome-occt-6.9.1.patch" -p1
./build_configure
@ -49,7 +54,8 @@ build() {
# fix build with vtk 6.3.0
CXXFLAGS+=' -DvtkFloatingPointType=double'
./configure --disable-debug --enable-production \
# Change to --enable-production with OCCT 7.0.0
./configure --disable-debug --disable-production \
--with-vtk-library=/opt/vtk6/lib/ --with-vtk-include=/opt/vtk6/include/vtk/ \
--prefix=/opt/$pkgname
make