diff options
author | Grey Christoforo | 2017-02-25 18:00:35 +0000 |
---|---|---|
committer | Grey Christoforo | 2017-02-25 18:00:35 +0000 |
commit | c16bd6f9a2696955738e7c15496542371d934345 (patch) | |
tree | baa9b762965cf61d338325e010da1f1ca0e3984c | |
parent | 0a728907ef8bc8a19a43549e953ef1a538d8772c (diff) | |
download | aur-c16bd6f9a2696955738e7c15496542371d934345.tar.gz |
switch to oce and fix hardcoded calls to python
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 7 insertions, 6 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Mon Feb 20 16:35:10 UTC 2017 +# Sat Feb 25 18:00:23 UTC 2017 pkgbase = heekscad-git pkgdesc = HeeksCNC is an open source, 3D CAD/CAM software pkgver = 1449.008d7b6f @@ -8,8 +8,8 @@ pkgbase = heekscad-git arch = x86_64 license = custom:BSD3 makedepends = cmake - depends = python - depends = opencascade + depends = python2 + depends = oce depends = wxgtk depends = libarea-git optdepends = heekscnc-git @@ -6,7 +6,7 @@ pkgdesc="HeeksCNC is an open source, 3D CAD/CAM software" arch=('x86_64') url="http://heeks.net" license=('custom:BSD3') -depends=('python' 'opencascade' 'wxgtk' 'libarea-git') +depends=('python2' 'oce' 'wxgtk' 'libarea-git') optdepends=('heekscnc-git') makedepends=('cmake') provides=('heekscad') @@ -20,17 +20,18 @@ pkgver() { } prepare() { + # fix the hardcoded calls to python sed -i 's,#find OCE or OpenCASCADE,set( CMAKE_CXX_FLAGS "-std=c++11" )\n#find OCE or OpenCASCADE,g' "${srcdir}/heekscad/CMakeLists.txt" sed -i 's,#find OCE or OpenCASCADE,set( CMAKE_CXX_FLAGS "-std=c++11" )\n#find OCE or OpenCASCADE,g' "${srcdir}/heekscad/src/CMakeLists.txt" } build() { msg "Starting build..." - export CASROOT=/opt/opencascade cd "${srcdir}/heekscad" mkdir -p build cd build - cmake -DCMAKE_INSTALL_PREFIX=/usr .. + export OCE_DIR="/opt/oce/lib/oce-0.18" + cmake -DPYTHON_EXECUTABLE="/usr/bin/python2" -DPYTHON_LIBRARY="/usr/lib/libpython2.7.so" -DPYTHON_INCLUDE_DIR="/usr/include/python2.7" -DCMAKE_INSTALL_PREFIX=/usr .. } package() { |