forked from conda-archive/conda-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
22 lines (21 loc) · 1.08 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
mkdir build
cd build
cmake \
-DPYTHON_EXECUTABLE=$PREFIX/bin/python \
-DPYTHON_INCLUDE_DIR=$PREFIX/include/python2.7/ \
-DPYTHON_LIBRARY=$PREFIX/lib/libpython2.7.dylib \
-DPYTHON_PACKAGES_PATH=$PREFIX/lib/python2.7/site-packages/ \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DWITH_CUDA=OFF \
-DWITH_AVFOUNDATION=OFF \
-DWITH_FFMPEG=OFF \
-DJPEG_INCLUDE_DIR:PATH=$PREFIX/include \
-DJPEG_LIBRARY:FILEPATH=$PREFIX/lib/libjpeg.so \
-DPNG_PNG_INCLUDE_DIR:PATH=$PREFIX/include \
-DPNG_LIBRARY:FILEPATH=$PREFIX/lib/libpng.so \
-DZLIB_INCLUDE_DIR:PATH=$PREFIX/include \
-DZLIB_LIBRARY:FILEPATH=$PREFIX/lib/libz.so \
..
make
make install