2017-10-11 02:24:15 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-10-17 00:13:09 +01:00
|
|
|
export MACOSX_DEPLOYMENT_TARGET=10.9
|
|
|
|
# export CC=$SYS_PREFIX/bin/clang
|
|
|
|
# export CXX=$SYS_PREFIX/bin/clang++
|
|
|
|
export R_COMMAND=$R
|
|
|
|
export CMAKE_BUILD_TYPE=Debug
|
|
|
|
export CMAKE=$PREFIX/bin/cmake
|
2017-11-11 02:15:59 +00:00
|
|
|
export CMAKE_INCLUDE_PATH=$PREFIX/include
|
|
|
|
export CMAKE_LIBRARY_PATH=$PREFIX/lib
|
2017-10-17 00:13:09 +01:00
|
|
|
export CMAKE_INSTALL_PREFIX=$PREFIX
|
|
|
|
export GENERATOR="-GNinja"
|
|
|
|
export PYTHON_EXECUTABLE="$PYTHON"
|
2017-11-11 02:15:59 +00:00
|
|
|
export PYTHON_LIBRARY="$CMAKE_LIBRARY_PATH/libpython${PY_VER}m$SHLIB_EXT"
|
|
|
|
export PYTHON_INCLUDE_DIR="$CMAKE_INCLUDE_PATH/python$PY_VER"m
|
2017-10-11 02:24:15 +01:00
|
|
|
|
|
|
|
mkdir $PREFIX/conda
|
|
|
|
cd $PREFIX/conda
|
|
|
|
# The datarootdir option places the docs into a temp folder that won't
|
2017-10-17 00:13:09 +01:00
|
|
|
$CMAKE --build=. --target=install\
|
|
|
|
-DCMAKE_INCLUDE_PATH="$CMAKE_INCLUDE_PATH" \
|
|
|
|
-DCMAKE_LIBRARY_PATH="$CMAKE_LIBRARY_PATH" \
|
|
|
|
-DCMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_PREFIX" \
|
|
|
|
-DCMAKE_BUILD_TYPE="$CMAKE_BUILD_TYPE" \
|
|
|
|
-DPYTHON_EXECUTABLE:FILEPATH="$PYTHON_EXECUTABLE" \
|
|
|
|
-DPYTHON_LIBRARY:FILEPATH="$PYTHON_LIBRARY" \
|
|
|
|
-DPYTHON_INCLUDE_DIR:PATH="$PYTHON_INCLUDE_DIR" \
|
2017-10-11 02:24:15 +01:00
|
|
|
$RECIPE_DIR/..
|
2017-10-17 00:13:09 +01:00
|
|
|
|
|
|
|
make -j install CMAKE_INSTALL_PREFIX="$CMAKE_INSTALL_PREFIX"
|
2017-11-10 23:08:35 +00:00
|
|
|
#./yap -B
|
2017-11-11 03:05:36 +00:00
|
|
|
#
|
|
|
|
# Remove the created lib64 directory
|
2017-10-11 02:24:15 +01:00
|
|
|
|
2017-11-11 03:05:36 +00:00
|
|
|
rm -rf $PREFIX/conda
|