From e19ec04f78d4ee7f2c6426aa8df8c657ddc56b1f Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Wed, 17 Jul 2013 19:04:34 +0200 Subject: [PATCH] zlib: convert to new package format Signed-off-by: Stephan Raue --- packages/compress/zlib-host/build | 39 --------------------- packages/compress/zlib-host/meta | 36 ------------------- packages/compress/zlib/build | 31 ---------------- packages/compress/zlib/install | 26 -------------- packages/compress/zlib/{meta => package.mk} | 20 +++++++++-- packages/compress/zlib/unpack | 28 --------------- 6 files changed, 17 insertions(+), 163 deletions(-) delete mode 100755 packages/compress/zlib-host/build delete mode 100644 packages/compress/zlib-host/meta delete mode 100755 packages/compress/zlib/build delete mode 100755 packages/compress/zlib/install rename packages/compress/zlib/{meta => package.mk} (79%) delete mode 100755 packages/compress/zlib/unpack diff --git a/packages/compress/zlib-host/build b/packages/compress/zlib-host/build deleted file mode 100755 index 9185bfb21d..0000000000 --- a/packages/compress/zlib-host/build +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -$SCRIPTS/unpack zlib - -# dont build parallel - MAKEFLAGS=-j1 - -setup_toolchain host - -cd $BUILD/zlib-* - -cd zlib-host - -./configure --prefix=$ROOT/$TOOLCHAIN - -make -make install diff --git a/packages/compress/zlib-host/meta b/packages/compress/zlib-host/meta deleted file mode 100644 index f89c54d853..0000000000 --- a/packages/compress/zlib-host/meta +++ /dev/null @@ -1,36 +0,0 @@ -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -PKG_NAME="zlib-host" -PKG_VERSION="" -PKG_REV="1" -PKG_ARCH="any" -PKG_LICENSE="OSS" -PKG_SITE="http://www.zlib.net" -PKG_URL="" -PKG_DEPENDS="" -PKG_BUILD_DEPENDS="ccache" -PKG_PRIORITY="optional" -PKG_SECTION="compress" -PKG_SHORTDESC="zlib: A general purpose (ZIP) data compression library" -PKG_LONGDESC="zlib is a general purpose data compression library. All the code is thread safe. The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files ftp://ds.internic.net/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format)." -PKG_IS_ADDON="no" - -PKG_AUTORECONF="no" diff --git a/packages/compress/zlib/build b/packages/compress/zlib/build deleted file mode 100755 index 9f49cd7dcd..0000000000 --- a/packages/compress/zlib/build +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -cd $PKG_BUILD - -./configure --prefix=/usr - -make - -$MAKEINSTALL diff --git a/packages/compress/zlib/install b/packages/compress/zlib/install deleted file mode 100755 index b54f4412a3..0000000000 --- a/packages/compress/zlib/install +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -mkdir -p $INSTALL/usr/lib - cp -R $PKG_BUILD/*.so* $INSTALL/usr/lib diff --git a/packages/compress/zlib/meta b/packages/compress/zlib/package.mk similarity index 79% rename from packages/compress/zlib/meta rename to packages/compress/zlib/package.mk index d24d2a6b6e..15495c00c7 100644 --- a/packages/compress/zlib/meta +++ b/packages/compress/zlib/package.mk @@ -24,13 +24,27 @@ PKG_REV="1" PKG_ARCH="any" PKG_LICENSE="OSS" PKG_SITE="http://www.zlib.net" -PKG_URL="http://www.zlib.net/$PKG_NAME-$PKG_VERSION.tar.xz" +PKG_URL="http://www.zlib.net/$PKG_NAME-$PKG_VERSION.tar.bz2" PKG_DEPENDS="" -PKG_BUILD_DEPENDS="toolchain" +PKG_BUILD_DEPENDS_TARGET="toolchain" +PKG_BUILD_DEPENDS_HOST="" PKG_PRIORITY="optional" PKG_SECTION="compress" PKG_SHORTDESC="zlib: A general purpose (ZIP) data compression library" PKG_LONGDESC="zlib is a general purpose data compression library. All the code is thread safe. The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files ftp://ds.internic.net/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format)." -PKG_IS_ADDON="no" +PKG_IS_ADDON="no" PKG_AUTORECONF="no" + +TARGET_CONFIGURE_OPTS="--prefix=/usr" +HOST_CONFIGURE_OPTS="--prefix=$ROOT/$TOOLCHAIN" + +pre_build_target() { + mkdir -p $PKG_BUILD/.$TARGET_NAME + cp -RP $PKG_BUILD/* $PKG_BUILD/.$TARGET_NAME +} + +pre_build_host() { + mkdir -p $PKG_BUILD/.$HOST_NAME + cp -RP $PKG_BUILD/* $PKG_BUILD/.$HOST_NAME +} diff --git a/packages/compress/zlib/unpack b/packages/compress/zlib/unpack deleted file mode 100755 index aa9d15868d..0000000000 --- a/packages/compress/zlib/unpack +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 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, 51 Franklin Street, Suite 500, Boston, MA 02110, 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"