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

25 lines
866 B
Bash
Raw Normal View History

2017-10-11 02:24:15 +01:00
#!/bin/bash
export MACOSX_DEPLOYMENT_TARGET=10.12
2017-10-17 00:13:09 +01:00
export CMAKE_BUILD_TYPE=Debug
export CMAKE=$PREFIX/bin/cmake
2017-11-11 22:48:09 +00:00
export MAKE=$PREFIX/bin/make
2017-10-17 00:13:09 +01:00
export GENERATOR="-GNinja"
2017-11-11 22:48:09 +00:00
export PATH=$PREFIX/bin:$SYS_PREFIX/bin:$PATH
export PYTHON_INCLUDE_DIRS=$($PYTHON -c "import sysconfig; print(sysconfig.get_config_var('INCLUDEPY'))")
export PYTHON_LIBRARIES=$($PYTHON -c "import sysconfig, os.path; print(os.path.join(sysconfig.get_config_var('LIBDIR'),sysconfig.get_config_var('LDLIBRARY')))")
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-11-15 12:18:19 +00:00
$CMAKE --build=. --target=install \
2019-04-20 09:25:12 +01:00
-DCMAKE_BUILD_TYPE=Debug -GNinja \
2017-11-15 12:18:19 +00:00
-DCMAKE_INSTALL_PREFIX="$PREFIX" \
2019-04-10 18:51:40 +01:00
$RECIPE_DIR/.. -DWITH_CUDD=NO -DWITH_GECODE=NO -DWITH_JAVA=NO -DWITH_RAPTOR=NO
2017-10-17 00:13:09 +01:00
2019-04-20 09:25:12 +01:00
ninja install
2017-11-15 12:18:19 +00:00
# Remove the created lib64 directory
2017-10-11 02:24:15 +01:00
2017-12-05 15:14:57 +00:00
rm -rf $PREFIX/conda