This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/info/build.sh

35 lines
1.1 KiB
Bash
Raw Normal View History

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
export CMAKE_INCLUDE_PATH=$SYS_PREFIX/include
export CMAKE_LIBRARY_PATH=$SYS_PREFIX/lib
export CMAKE_INSTALL_PREFIX=$PREFIX
export GENERATOR="-GNinja"
export PYTHON_EXECUTABLE="$PYTHON"
export PYTHON_LIBRARY="$STDLIB_DIR/../libPython${PY_VER}m$SHLIB_EXT"
export PYTHON_INCLUDE_DIR="$STDLIB_DIR/../../include/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-10-11 02:24:15 +01:00
# Remove the created lib64 directory
2017-10-17 00:13:09 +01:00
# rm -rf $PREFIX/conda