zlib: use cmake for building zlib library

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-03-06 10:03:46 +01:00
parent d223095bc9
commit 3ba6ca9586
2 changed files with 18 additions and 3 deletions

View File

@ -23,8 +23,23 @@
. config/options $1
cd $PKG_BUILD
./configure --prefix=/usr --shared
rm -rf ./zconf.h # as requested from zlib cmake config
mkdir -p .build-shared && cd .build-shared
cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=on \
..
make
$MAKEINSTALL
# build static library too, because we need this for plymouth-lite
cd ..
mkdir -p .build-static && cd .build-static
cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=off \
..
make
cp libz.a $SYSROOT_PREFIX/usr/lib

View File

@ -23,4 +23,4 @@
. config/options $1
mkdir -p $INSTALL/usr/lib
cp -R $PKG_BUILD/*.so* $INSTALL/usr/lib
cp -R $PKG_BUILD/.build-shared/*.so* $INSTALL/usr/lib