mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
zlib: dont build via cmake anymore
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
5283a33567
commit
9a7d0e1a5a
@ -28,14 +28,9 @@ setup_toolchain host
|
|||||||
|
|
||||||
cd $BUILD/zlib-*
|
cd $BUILD/zlib-*
|
||||||
|
|
||||||
# needed for building with cmake
|
cd zlib-host
|
||||||
rm -rf zconf.h
|
|
||||||
|
|
||||||
mkdir -p .build-host && cd .build-host
|
./configure --prefix=$ROOT/$TOOLCHAIN
|
||||||
|
|
||||||
cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=$ROOT/$TOOLCHAIN \
|
|
||||||
..
|
|
||||||
|
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
@ -26,7 +26,7 @@ PKG_LICENSE="OSS"
|
|||||||
PKG_SITE="http://www.zlib.net"
|
PKG_SITE="http://www.zlib.net"
|
||||||
PKG_URL=""
|
PKG_URL=""
|
||||||
PKG_DEPENDS=""
|
PKG_DEPENDS=""
|
||||||
PKG_BUILD_DEPENDS="ccache cmake"
|
PKG_BUILD_DEPENDS="ccache"
|
||||||
PKG_PRIORITY="optional"
|
PKG_PRIORITY="optional"
|
||||||
PKG_SECTION="compress"
|
PKG_SECTION="compress"
|
||||||
PKG_SHORTDESC="zlib: A general purpose (ZIP) data compression library"
|
PKG_SHORTDESC="zlib: A general purpose (ZIP) data compression library"
|
||||||
|
@ -24,14 +24,8 @@
|
|||||||
|
|
||||||
cd $PKG_BUILD
|
cd $PKG_BUILD
|
||||||
|
|
||||||
# needed for building with cmake
|
./configure --prefix=/usr
|
||||||
rm -rf zconf.h
|
|
||||||
|
|
||||||
mkdir -p .build-target && cd .build-target
|
|
||||||
|
|
||||||
cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
||||||
..
|
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
$MAKEINSTALL
|
$MAKEINSTALL
|
||||||
|
@ -23,4 +23,4 @@
|
|||||||
. config/options $1
|
. config/options $1
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/lib
|
mkdir -p $INSTALL/usr/lib
|
||||||
cp -R $PKG_BUILD/.build-target/*.so* $INSTALL/usr/lib
|
cp -R $PKG_BUILD/*.so* $INSTALL/usr/lib
|
||||||
|
@ -26,7 +26,7 @@ PKG_LICENSE="OSS"
|
|||||||
PKG_SITE="http://www.zlib.net"
|
PKG_SITE="http://www.zlib.net"
|
||||||
PKG_URL="http://www.zlib.net/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
PKG_URL="http://www.zlib.net/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
||||||
PKG_DEPENDS=""
|
PKG_DEPENDS=""
|
||||||
PKG_BUILD_DEPENDS="toolchain cmake"
|
PKG_BUILD_DEPENDS="toolchain"
|
||||||
PKG_PRIORITY="optional"
|
PKG_PRIORITY="optional"
|
||||||
PKG_SECTION="compress"
|
PKG_SECTION="compress"
|
||||||
PKG_SHORTDESC="zlib: A general purpose (ZIP) data compression library"
|
PKG_SHORTDESC="zlib: A general purpose (ZIP) data compression library"
|
||||||
|
28
packages/compress/zlib/unpack
Executable file
28
packages/compress/zlib/unpack
Executable 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"
|
@ -25,4 +25,4 @@
|
|||||||
ZLIB_DIR="$BUILD/zlib-*"
|
ZLIB_DIR="$BUILD/zlib-*"
|
||||||
|
|
||||||
mkdir -p $INSTALL/lib
|
mkdir -p $INSTALL/lib
|
||||||
cp -R $ZLIB_DIR/.build-target/*.so* $INSTALL/lib
|
cp -R $ZLIB_DIR/*.so* $INSTALL/lib
|
||||||
|
Loading…
x
Reference in New Issue
Block a user