mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
community/opencascade to 6.9.1-7
This commit is contained in:
parent
04c477290f
commit
9e33a2519a
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue