forked from conda-archive/conda-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
36 lines (31 loc) · 864 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
mkdir build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_RPATH=$LD_RUN_PATH \
-DPYTHON_EXECUTABLE=$PYTHON \
-DLIB_INSTALL_DIR=$PREFIX/lib \
-DShiboken_DIR=$PREFIX \
..
make
make install
exit 0
# ----------------------------------------------------------
LIB=$PREFIX/lib
SP=$LIB/python2.7/site-packages
if [ `uname` == Darwin ]; then
mkdir -p $SP
mkdir $PREFIX/Frameworks
for dn in /Library/Frameworks/Qt*.framework
do
echo $dn
cp -a $dn $PREFIX/Frameworks/
done
find $PREFIX/Frameworks -name "*.h" | xargs rm
find $PREFIX/Frameworks | grep Headers | xargs rm -rf
cp /usr/lib/libshiboken-python2.7.1.1.dylib $LIB
cp /usr/lib/libpyside-python2.7.1.1.dylib $LIB
cp -r /Library/Python/2.7/site-packages/PySide $SP
fi