Skip to content

Commit 64114f0

Browse files
committed
ocl, pivy
1 parent dd61ad9 commit 64114f0

File tree

7 files changed

+173
-0
lines changed

7 files changed

+173
-0
lines changed

ocl/bld.bat

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
mkdir build
2+
cd build
3+
4+
cmake ..\src -G "Ninja" ^
5+
-DCMAKE_BUILD_TYPE="Release" ^
6+
-DCMAKE_PREFIX_PATH:FILEPATH="%PREFIX%" ^
7+
-DCMAKE_INSTALL_PREFIX:FILEPATH="%LIBRARY_PREFIX%"
8+
9+
if errorlevel 1 exit 1
10+
ninja install
11+
if errorlevel 1 exit 1

ocl/boost.patch

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
commit c415d65a2c86a73ceec270e4bc44973858a2be10
2+
Author: looooo <[email protected]>
3+
Date: Sat Jul 8 17:58:42 2017 +0200
4+
5+
boost: patch
6+
7+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
8+
index 06ad288..9f1bcab 100644
9+
--- a/src/CMakeLists.txt
10+
+++ b/src/CMakeLists.txt
11+
@@ -306,6 +306,7 @@ message(STATUS "Python modules will be installed to: " ${Python_site_packages})
12+
message(STATUS "Python libraries will be installed to: " ${Python_arch_packages})
13+
14+
if (BUILD_PY_LIB)
15+
+ link_directories(${Boost_LIBRARY_DIRS})
16+
# this makes the ocl Python module
17+
add_library(
18+
ocl

ocl/boost_py3.patch

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2+
index 9f1bcab..9ae7065 100644
3+
--- a/src/CMakeLists.txt
4+
+++ b/src/CMakeLists.txt
5+
@@ -127,12 +127,12 @@ endif(NOT BUILD_TYPE)
6+
include_directories(${CMAKE_CURRENT_BINARY_DIR})
7+
8+
# find BOOST and boost-python
9+
-find_package( Boost COMPONENTS python REQUIRED)
10+
+find_package( Boost COMPONENTS python3 REQUIRED)
11+
if(Boost_FOUND)
12+
include_directories(${Boost_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS})
13+
message(STATUS "found Boost: " ${Boost_LIB_VERSION})
14+
message(STATUS "boost-incude dirs are: " ${Boost_INCLUDE_DIRS})
15+
- message(STATUS "boost-python lib is: " ${Boost_PYTHON_LIBRARY})
16+
+ message(STATUS "boost-python lib is: " ${Boost_PYTHON3_LIBRARY})
17+
message(STATUS "boost_LIBRARY_DIRS is: " ${Boost_LIBRARY_DIRS})
18+
message(STATUS "Boost_LIBRARIES is: " ${Boost_LIBRARIES})
19+
endif()
20+
@@ -319,8 +319,8 @@ if (BUILD_PY_LIB)
21+
22+
)
23+
24+
- message(STATUS "linking python binary ocl.so with boost: " ${Boost_PYTHON_LIBRARY})
25+
- target_link_libraries(ocl ocl_common ocl_dropcutter ocl_cutters ocl_geo ocl_algo ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} -lboost_python -lboost_system)
26+
+ message(STATUS "linking python binary ocl.so with boost: " ${Boost_PYTHON3_LIBRARY})
27+
+ target_link_libraries(ocl ocl_common ocl_dropcutter ocl_cutters ocl_geo ocl_algo ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} -lboost_python3 -lboost_system)
28+
#
29+
# this makes the lib name ocl.so and not libocl.so
30+
set_target_properties(ocl PROPERTIES PREFIX "")

ocl/build.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
mkdir build -p
2+
cd build
3+
4+
cmake -DCMAKE_BUILD_TYPE=Release \
5+
-DCMAKE_PREFIX_PATH=$PREFIX \
6+
-DCMAKE_INSTALL_PREFIX=$PREFIX \
7+
-DBOOST_LIBRARYDIR=$PREFIX/lib \
8+
../src
9+
10+
make -j4 2>&1 | tee output.txt
11+
make install

ocl/meta.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
package:
2+
name: ocl
3+
version: 0.0.1
4+
5+
source:
6+
git_url: https://github.com/aewallin/opencamlib
7+
git_tag: master
8+
9+
patches:
10+
- boost.patch
11+
- boost_py3.patch # [py != 27]
12+
13+
build:
14+
number: 4
15+
features:
16+
- vc14 # [win and py>=35]
17+
- occt7.1.0
18+
19+
track_features:
20+
- vc14 # [win and py>=35]
21+
- occt7.1.0
22+
23+
requirements:
24+
build:
25+
- cmake
26+
- vc 14 # [win and py>=35]
27+
- ninja # [win and py>=35]
28+
- boost
29+
- python
30+
- doxygen
31+
- nomkl # [unix]
32+
run:
33+
- vc 14 # [win and py>=35]
34+
- boost
35+
- python
36+
about:
37+
home: http://www.anderswallin.net/CAM/
38+
license: GPL3.0
39+
license_family: GPL
40+
summary: OpenCAMLib (ocl)
41+
description: OpenCAMLib (ocl) is a c++ library for creating toolpaths for cnc-machines
42+
such as mills and lathes.
43+
doc_url: http://www.anderswallin.net/CAM/
44+
dev_url: https://github.com/aewallin/opencamlib

pivy/build_all.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
conda build . --python=2.7
2+
conda build . --python=3.5
3+
conda build . --python=3.6

pivy/meta.yaml.orig

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
package:
2+
name: pivy
3+
version: 0.6.2
4+
5+
source:
6+
git_url: https://github.com/looooo/pivy
7+
git_tag: master
8+
# fn: pivy.tar.gz
9+
# url: https://github.com/looooo/pivy/archive/v0.6.1-0.tar.gz
10+
# sha256: 9def3f8d19f90fa66e4511da1d301ee921005fb6b0e114a1bb604e4360462f23
11+
12+
build:
13+
string: py35_dev_3 # [py==35]
14+
string: py36_dev_3 # [py>35]
15+
string: py27_dev_3 # [py<35]
16+
features:
17+
- vc14 # [win]
18+
19+
track_features:
20+
- vc14 # [win]
21+
22+
requirements:
23+
build:
24+
- python
25+
<<<<<<< HEAD
26+
- swig 3.0.8
27+
=======
28+
- swig
29+
>>>>>>> c4819842007a9f538d1ac99d2f15ff63b537dd06
30+
- coin3d
31+
- vc 14 # [win]
32+
- colorama
33+
- soqt
34+
run:
35+
- python
36+
- coin3d
37+
- soqt
38+
- vc 14 # [win]
39+
40+
test:
41+
imports:
42+
- pivy.coin
43+
- pivy.gui.soqt
44+
45+
about:
46+
home: https://github.com/looooo/pivy
47+
license: ISC License
48+
license_family: BSD
49+
license_file: LICENSE
50+
summary: python bindings to coin3d.
51+
doc_url: https://github.com/looooo/pivy
52+
dev_url: https://github.com/looooo/pivy
53+
54+
extra:
55+
recipe-maintainers:
56+
- looooo

0 commit comments

Comments
 (0)