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
797 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 \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX="$PREFIX" \
$RECIPE_DIR/..
2017-10-17 00:13:09 +01:00
2017-11-15 12:18:19 +00:00
make -j install
# 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