From 93147fae3ee613d07c3b69e340239e6a96c80b29 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 21 Jun 2012 00:17:42 +0200 Subject: [PATCH] libjpeg-turbo: split in host and taget package Signed-off-by: Stephan Raue --- packages/graphics/libjpeg-turbo-host/build | 45 ++++++++++++++++++++++ packages/graphics/libjpeg-turbo-host/meta | 36 +++++++++++++++++ packages/graphics/libjpeg-turbo/build | 17 ++++---- 3 files changed, 90 insertions(+), 8 deletions(-) create mode 100755 packages/graphics/libjpeg-turbo-host/build create mode 100644 packages/graphics/libjpeg-turbo-host/meta diff --git a/packages/graphics/libjpeg-turbo-host/build b/packages/graphics/libjpeg-turbo-host/build new file mode 100755 index 0000000000..26d578e503 --- /dev/null +++ b/packages/graphics/libjpeg-turbo-host/build @@ -0,0 +1,45 @@ +#!/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 libjpeg-turbo + +LIBJPEG_DIR=`ls -d $BUILD/libjpeg-turbo-[0-9]*` + +setup_toolchain host + +CFLAGS="$CFLAGS -fPIC -DPIC" + +cd $LIBJPEG_DIR +mkdir -p .build-host && cd .build-host +../configure --host=$HOST_NAME \ + --build=$HOST_NAME \ + --prefix=$ROOT/$TOOLCHAIN \ + --sysconfdir=$ROOT/$TOOLCHAIN/etc \ + --localstatedir=/var \ + --enable-static \ + --disable-shared \ + --with-jpeg8 + +make +make install diff --git a/packages/graphics/libjpeg-turbo-host/meta b/packages/graphics/libjpeg-turbo-host/meta new file mode 100644 index 0000000000..16cc403fd8 --- /dev/null +++ b/packages/graphics/libjpeg-turbo-host/meta @@ -0,0 +1,36 @@ +################################################################################ +# 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="libjpeg-turbo-host" +PKG_VERSION="" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://libjpeg-turbo.virtualgl.org/" +PKG_URL="" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="graphics" +PKG_SHORTDESC="libjpeg-turbo: a high-speed version of libjpeg for x86 and x86-64 processors which uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression and decompression." +PKG_LONGDESC="libjpeg-turbo is a high-speed version of libjpeg for x86 and x86-64 processors which uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression and decompression. libjpeg-turbo is generally 2-4x as fast as the unmodified version of libjpeg, all else being equal." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no" diff --git a/packages/graphics/libjpeg-turbo/build b/packages/graphics/libjpeg-turbo/build index 33dc6349e5..14ef947016 100755 --- a/packages/graphics/libjpeg-turbo/build +++ b/packages/graphics/libjpeg-turbo/build @@ -25,14 +25,15 @@ CFLAGS="$CFLAGS -fPIC -DPIC" cd $PKG_BUILD -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --enable-static \ - --disable-shared \ - --with-jpeg8 +mkdir -p .build-target && cd .build-target +../configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --enable-static \ + --disable-shared \ + --with-jpeg8 make