summaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
Diffstat (limited to 'recipes')
-rw-r--r--recipes/regularizers/bld.bat21
-rw-r--r--recipes/regularizers/build.sh17
-rw-r--r--recipes/regularizers/meta.yaml40
3 files changed, 78 insertions, 0 deletions
diff --git a/recipes/regularizers/bld.bat b/recipes/regularizers/bld.bat
new file mode 100644
index 0000000..6f2f7e7
--- /dev/null
+++ b/recipes/regularizers/bld.bat
@@ -0,0 +1,21 @@
+IF NOT DEFINED CIL_VERSION (
+ECHO CIL_VERSION Not Defined.
+exit 1
+)
+
+mkdir "%SRC_DIR%\build"
+ROBOCOPY /E "%RECIPE_DIR%\..\..\Core" "%SRC_DIR%\build"
+::ROBOCOPY /E "%RECIPE_DIR%\..\..\Wrappers\python\src" "%SRC_DIR%\build\module"
+cd "%SRC_DIR%\build"
+
+echo "we should be in %SRC_DIR%\build"
+
+cmake -G "NMake Makefiles" -DLIBRARY_LIB="%CONDA_PREFIX%\lib" -DLIBRARY_INC="%CONDA_PREFIX%" -DCMAKE_INSTALL_PREFIX="%PREFIX%\Library" "%SRC_DIR%\build"
+
+::-DBOOST_LIBRARYDIR="%CONDA_PREFIX%\Library\lib" -DBOOST_INCLUDEDIR="%CONDA_PREFIX%\Library\include" -DBOOST_ROOT="%CONDA_PREFIX%\Library\lib"
+
+:: Build C library
+nmake install
+if errorlevel 1 exit 1
+
+:: Install step
diff --git a/recipes/regularizers/build.sh b/recipes/regularizers/build.sh
new file mode 100644
index 0000000..ab5474b
--- /dev/null
+++ b/recipes/regularizers/build.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+
+mkdir build
+cd build
+
+#configure
+BUILD_CONFIG=Release
+echo `pwd`
+cmake .. -G "Ninja" \
+ -Wno-dev \
+ -DCMAKE_BUILD_TYPE=$BUILD_CONFIG \
+ -DCMAKE_PREFIX_PATH:PATH="${PREFIX}" \
+ -DCMAKE_INSTALL_PREFIX:PATH="${PREFIX}" \
+ -DCMAKE_INSTALL_RPATH:PATH="${PREFIX}/lib"
+
+# compile & install
+ninja install
diff --git a/recipes/regularizers/meta.yaml b/recipes/regularizers/meta.yaml
new file mode 100644
index 0000000..37e447e
--- /dev/null
+++ b/recipes/regularizers/meta.yaml
@@ -0,0 +1,40 @@
+package:
+ name: cil_regularizer
+ version: {{ environ['CIL_VERSION'] }}
+
+#source:
+ # path: ../
+
+build:
+ preserve_egg_dir: False
+ script_env:
+ - CIL_VERSION
+
+requirements:
+ build:
+ - boost ==1.64.0
+ - boost-cpp ==1.64.0
+# - toolchain
+ - python 3.5 # [py35]
+ - python 2.7 # [py27]
+ - cmake >=3.1
+# - zlib 1.2.11
+ - vc 14 # [win and py35]
+ - vc 9 # [win and py27]
+# - libtiff
+ - numpy
+
+ run:
+ - boost ==1.64.0
+# - libtiff
+ - vc 14 # [win and py35]
+ - vc 9 # [win and py27]
+ - python 3.5 # [py35]
+ - python 2.7 # [py27]
+ - numpy
+
+
+about:
+ home: http://www.ccpi.ac.uk
+ license: Apache v2.0
+ summary: Regularizer package from CCPi