From 58cb0444361a8882e22464e33331c281bdc780c3 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 12 Feb 2012 21:35:10 +0100 Subject: [PATCH] lzo: split in host and target package Signed-off-by: Stephan Raue --- packages/compress/lzo/build | 18 +++++---- packages/compress/lzo/install | 2 +- packages/toolchain/archivers/lzo-host/build | 43 +++++++++++++++++++++ 3 files changed, 54 insertions(+), 9 deletions(-) create mode 100755 packages/toolchain/archivers/lzo-host/build diff --git a/packages/compress/lzo/build b/packages/compress/lzo/build index 4c3ce5525d..a98924913f 100755 --- a/packages/compress/lzo/build +++ b/packages/compress/lzo/build @@ -23,14 +23,16 @@ . config/options $1 cd $PKG_BUILD -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --exec-prefix=/usr \ - --sysconfdir=/etc \ - --datadir=/usr/share \ - --enable-shared \ - --disable-static \ + +mkdir -p .build-target && cd .build-target +../configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --exec-prefix=/usr \ + --sysconfdir=/etc \ + --datadir=/usr/share \ + --enable-shared \ + --disable-static \ make diff --git a/packages/compress/lzo/install b/packages/compress/lzo/install index fd3516759f..7ba56ad3c8 100755 --- a/packages/compress/lzo/install +++ b/packages/compress/lzo/install @@ -23,5 +23,5 @@ . config/options $1 mkdir -p $INSTALL/usr/lib - cp -PR $PKG_BUILD/src/.libs/*.so* $INSTALL/usr/lib + cp -PR $PKG_BUILD/.build-target/src/.libs/*.so* $INSTALL/usr/lib diff --git a/packages/toolchain/archivers/lzo-host/build b/packages/toolchain/archivers/lzo-host/build new file mode 100755 index 0000000000..15ff03ca91 --- /dev/null +++ b/packages/toolchain/archivers/lzo-host/build @@ -0,0 +1,43 @@ +#!/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 + +$SCRIPTS/unpack lzo + +LZO_DIR=`ls -d $BUILD/lzo-[0-9]*` + +setup_toolchain host + +cd $LZO_DIR + +mkdir -p .build-host && cd .build-host +../configure --host=$HOST_NAME \ + --build=$HOST_NAME \ + --prefix=$ROOT/$TOOLCHAIN \ + --sysconfdir=$ROOT/$TOOLCHAIN/etc \ + --datadir=/usr/share \ + --enable-shared \ + --disable-static \ + +make +make install