zlib: dont build via cmake anymore

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-11-04 19:50:31 +01:00
parent 5283a33567
commit 9a7d0e1a5a
7 changed files with 36 additions and 19 deletions

View File

@ -28,14 +28,9 @@ setup_toolchain host
cd $BUILD/zlib-*
# needed for building with cmake
rm -rf zconf.h
cd zlib-host
mkdir -p .build-host && cd .build-host
cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \
-DCMAKE_INSTALL_PREFIX=$ROOT/$TOOLCHAIN \
..
./configure --prefix=$ROOT/$TOOLCHAIN
make
make install

View File

@ -26,7 +26,7 @@ PKG_LICENSE="OSS"
PKG_SITE="http://www.zlib.net"
PKG_URL=""
PKG_DEPENDS=""
PKG_BUILD_DEPENDS="ccache cmake"
PKG_BUILD_DEPENDS="ccache"
PKG_PRIORITY="optional"
PKG_SECTION="compress"
PKG_SHORTDESC="zlib: A general purpose (ZIP) data compression library"

View File

@ -24,14 +24,8 @@
cd $PKG_BUILD
# needed for building with cmake
rm -rf zconf.h
mkdir -p .build-target && cd .build-target
cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \
-DCMAKE_INSTALL_PREFIX=/usr \
..
./configure --prefix=/usr
make
$MAKEINSTALL

View File

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

View File

@ -26,7 +26,7 @@ PKG_LICENSE="OSS"
PKG_SITE="http://www.zlib.net"
PKG_URL="http://www.zlib.net/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS=""
PKG_BUILD_DEPENDS="toolchain cmake"
PKG_BUILD_DEPENDS="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="compress"
PKG_SHORTDESC="zlib: A general purpose (ZIP) data compression library"

28
packages/compress/zlib/unpack Executable file
View File

@ -0,0 +1,28 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This Program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC.tv; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
. config/options $1
ZLIB_DIR=`ls -d $PKG_BUILD`
cp -r "$ZLIB_DIR" "$BUILD/zlib-host" || rm -rf "$BUILD/zlib-host"
mv "$BUILD/zlib-host" "$ZLIB_DIR"

View File

@ -25,4 +25,4 @@
ZLIB_DIR="$BUILD/zlib-*"
mkdir -p $INSTALL/lib
cp -R $ZLIB_DIR/.build-target/*.so* $INSTALL/lib
cp -R $ZLIB_DIR/*.so* $INSTALL/lib