fix build

This commit is contained in:
Grey Christoforo 2018-10-18 00:03:07 +01:00
parent 113c565db6
commit 46613dbe35
2 changed files with 12 additions and 21 deletions

View file

@ -1,6 +1,6 @@
pkgbase = freecad-git pkgbase = freecad-git
pkgdesc = A general purpose 3D CAD modeler - git checkout pkgdesc = A general purpose 3D CAD modeler - git checkout
pkgver = 0.17pre.r4505.gbc6a52ee9 pkgver = 0.17.r1484.g1e6818b6f
pkgrel = 1 pkgrel = 1
epoch = 1 epoch = 1
url = http://www.freecadweb.org/ url = http://www.freecadweb.org/
@ -20,7 +20,7 @@ pkgbase = freecad-git
depends = curl depends = curl
depends = hicolor-icon-theme depends = hicolor-icon-theme
depends = libspnav depends = libspnav
depends = opencascade7 depends = opencascade
depends = med depends = med
depends = xerces-c depends = xerces-c
depends = python2-pivy depends = python2-pivy
@ -28,9 +28,7 @@ pkgbase = freecad-git
depends = qtwebkit depends = qtwebkit
depends = libtheora depends = libtheora
depends = shared-mime-info depends = shared-mime-info
depends = vtk-qt4
depends = jsoncpp depends = jsoncpp
depends = netgen-nogui-occ7
optdepends = python2-matplotlib optdepends = python2-matplotlib
optdepends = pycollada-git: Create, edit and load COLLADA documents. optdepends = pycollada-git: Create, edit and load COLLADA documents.
provides = freecad provides = freecad

View file

@ -1,18 +1,17 @@
# Maintainer: Markus Hovorka <m.hovorka@live.de> # Maintainer: Grey Christoforo <first name at last name dot net>
# Contributer: Christian Hesse <mail@eworm.de>
_appname=freecad _appname=freecad
pkgname="${_appname}-git" pkgname="${_appname}-git"
pkgver=0.17pre.r4505.gbc6a52ee9 pkgver=0.17.r1484.g1e6818b6f
pkgrel=1 pkgrel=1
epoch=1 epoch=1
pkgdesc='A general purpose 3D CAD modeler - git checkout' pkgdesc='A general purpose 3D CAD modeler - git checkout'
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url='http://www.freecadweb.org/' url='http://www.freecadweb.org/'
license=('LGPL') license=('LGPL')
depends=('boost-libs' 'curl' 'hicolor-icon-theme' 'libspnav' 'opencascade7' depends=('boost-libs' 'curl' 'hicolor-icon-theme' 'libspnav' 'opencascade'
'med' 'xerces-c' 'python2-pivy' 'python2-pyside' 'qtwebkit' 'med' 'xerces-c' 'python2-pivy' 'python2-pyside' 'qtwebkit'
'libtheora' 'shared-mime-info' 'vtk-qt4' 'jsoncpp' 'netgen-nogui-occ7') 'libtheora' 'shared-mime-info' 'jsoncpp' )
makedepends=('git' 'boost' 'cmake' 'coin' 'python2-pyside-tools' makedepends=('git' 'boost' 'cmake' 'coin' 'python2-pyside-tools'
'desktop-file-utils' 'eigen' 'gcc-fortran' 'swig') 'desktop-file-utils' 'eigen' 'gcc-fortran' 'swig')
optdepends=('python2-matplotlib' optdepends=('python2-matplotlib'
@ -36,18 +35,12 @@ build() {
cmake -DCMAKE_BUILD_TYPE=Release \ cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/opt/${_appname}" \ -DCMAKE_INSTALL_PREFIX="/opt/${_appname}" \
-DOCC_INCLUDE_DIR="/opt/opencascade7/include/opencascade" \ -DFREECAD_USE_OCC_VARIANT="Official Version" \
-DOCC_LIBRARY_DIR="/opt/opencascade7/lib" \ -DFREECAD_USE_EXTERNAL_PIVY=ON \
-DVTK_DIR="/opt/vtk-qt4/lib/cmake/vtk-7.0" \ -DBUILD_QT5=ON \
-DCMAKE_PREFIX_PATH="/opt/opencascade7" \ -DBUILD_QT5_WEBKIT=OFF \
-DCMAKE_INCLUDE_PATH="/opt/opencascade7/include/opencascade" \ -DPYTHON_EXECUTABLE=/usr/bin/python2 \
-DCMAKE_LIBRARY_PATH="/opt/opencascade7/lib" \ -DBUILD_WEB=OFF
-DCMAKE_INSTALL_RPATH="/opt/opencascade7/lib;/opt/vtk-qt4/lib" \
-DPYTHON_EXECUTABLE="/usr/bin/python2" \
-DPYTHON_SUFFIX="-python2.7" \
-DPYTHON_BASENAME="-python2.7" \
-DPYSIDEUIC4BINARY="/usr/bin/python2-pyside-uic" \
-DBUILD_FEM_NETGEN=1
make make
} }