10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-09 07:33:53 +01:00
quantum_package/install/scripts/install_zlib.sh

22 lines
561 B
Bash
Raw Normal View History

2015-06-05 22:33:19 +02:00
#!/bin/bash -x
TARGET=zlib
function _install()
{
2015-06-08 14:49:10 +02:00
rm -rf -- ${TARGET}
2015-06-05 22:33:19 +02:00
mkdir ${TARGET} || exit 1
cd ..
2015-06-08 14:49:10 +02:00
QP_ROOT=$PWD
2015-06-05 22:33:19 +02:00
cd -
cd ${BUILD}
./configure && make || exit 1
2015-06-08 14:49:10 +02:00
make install prefix=$QP_ROOT/install/${TARGET} || exit 1
2015-06-08 20:46:36 +02:00
ln -s -f $QP_ROOT/install/${TARGET}/lib/libz.so $QP_ROOT/lib || exit 1
ln -s -f $QP_ROOT/install/${TARGET}/lib/libz.a $QP_ROOT/lib || exit 1
2015-06-17 10:49:43 +02:00
ln -s -f $QP_ROOT/install/${TARGET}/include/zlib.h $QP_ROOT/lib || exit 1
ln -s -f $QP_ROOT/install/${TARGET}/include/zconf.h $QP_ROOT/lib || exit 1
2015-06-05 22:33:19 +02:00
}
2015-06-08 20:46:36 +02:00
source scripts/build.sh