diff --git a/packages/multimedia/SDL_image-host/build b/packages/multimedia/SDL_image-host/build new file mode 100755 index 0000000000..cebc3ab95c --- /dev/null +++ b/packages/multimedia/SDL_image-host/build @@ -0,0 +1,59 @@ +#!/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 SDL_image + +SDL_IMAGE_DIR=`ls -d $BUILD/SDL_image-[0-9]*` + +setup_toolchain host + +cd $SDL_IMAGE_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-shared \ + --disable-static \ + --disable-bmp \ + --disable-gif \ + --disable-jpg \ + --disable-jpg-shared \ + --disable-lbm \ + --disable-pcx \ + --enable-png \ + --enable-png-shared \ + --disable-pnm \ + --disable-tga \ + --disable-tif \ + --disable-tif-shared \ + --disable-xcf \ + --disable-xpm \ + --disable-xv \ + --with-sdl-prefix=$ROOT/$TOOLCHAIN \ + +make +make install diff --git a/packages/multimedia/SDL_image-host/meta b/packages/multimedia/SDL_image-host/meta new file mode 100644 index 0000000000..c47f6bc223 --- /dev/null +++ b/packages/multimedia/SDL_image-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="SDL_image" +PKG_VERSION="" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://www.libsdl.org/" +PKG_URL="" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="toolchain SDL-host libpng-host" +PKG_PRIORITY="optional" +PKG_SECTION="multimedia" +PKG_SHORTDESC="libsdl_image: A cross-platform Graphic API" +PKG_LONGDESC="SDL_image is an image loading library that is used with the SDL library, and almost as portable. It allows a programmer to use multiple image formats without having to code all the loading and conversion algorithms themselves." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no" diff --git a/packages/multimedia/SDL_image/build b/packages/multimedia/SDL_image/build index ff80a7311c..6b663f6419 100755 --- a/packages/multimedia/SDL_image/build +++ b/packages/multimedia/SDL_image/build @@ -28,29 +28,30 @@ cd $PKG_BUILD touch NEWS AUTHORS ChangeLog do_autoreconf -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --enable-shared \ - --disable-static \ - --enable-bmp \ - --enable-gif \ - --enable-jpg \ - --enable-jpg-shared \ - --disable-lbm \ - --enable-pcx \ - --enable-png \ - --enable-png-shared \ - --enable-pnm \ - --enable-tga \ - --enable-tif \ - --enable-tif-shared \ - --enable-xcf \ - --enable-xpm \ - --enable-xv \ - --with-sdl-prefix=$SYSROOT_PREFIX/usr \ +mkdir -p .build-target && cd .build-target +../configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --enable-shared \ + --disable-static \ + --enable-bmp \ + --enable-gif \ + --enable-jpg \ + --enable-jpg-shared \ + --disable-lbm \ + --enable-pcx \ + --enable-png \ + --enable-png-shared \ + --enable-pnm \ + --enable-tga \ + --enable-tif \ + --enable-tif-shared \ + --enable-xcf \ + --enable-xpm \ + --enable-xv \ + --with-sdl-prefix=$SYSROOT_PREFIX/usr \ make diff --git a/packages/multimedia/SDL_image/install b/packages/multimedia/SDL_image/install index daa7a781f4..84e8c88ab2 100755 --- a/packages/multimedia/SDL_image/install +++ b/packages/multimedia/SDL_image/install @@ -23,5 +23,5 @@ . config/options $1 mkdir -p $INSTALL/usr/lib - cp -P $PKG_BUILD/.libs/*.so* $INSTALL/usr/lib + cp -P $PKG_BUILD/.build-target/.libs/*.so* $INSTALL/usr/lib