SDL_image: split to host and target package

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-06-18 13:52:32 +02:00
parent 2027433d00
commit 8871c30735
4 changed files with 120 additions and 24 deletions

View File

@ -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

View File

@ -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"

View File

@ -28,29 +28,30 @@ cd $PKG_BUILD
touch NEWS AUTHORS ChangeLog touch NEWS AUTHORS ChangeLog
do_autoreconf do_autoreconf
./configure --host=$TARGET_NAME \ mkdir -p .build-target && cd .build-target
--build=$HOST_NAME \ ../configure --host=$TARGET_NAME \
--prefix=/usr \ --build=$HOST_NAME \
--sysconfdir=/etc \ --prefix=/usr \
--localstatedir=/var \ --sysconfdir=/etc \
--enable-shared \ --localstatedir=/var \
--disable-static \ --enable-shared \
--enable-bmp \ --disable-static \
--enable-gif \ --enable-bmp \
--enable-jpg \ --enable-gif \
--enable-jpg-shared \ --enable-jpg \
--disable-lbm \ --enable-jpg-shared \
--enable-pcx \ --disable-lbm \
--enable-png \ --enable-pcx \
--enable-png-shared \ --enable-png \
--enable-pnm \ --enable-png-shared \
--enable-tga \ --enable-pnm \
--enable-tif \ --enable-tga \
--enable-tif-shared \ --enable-tif \
--enable-xcf \ --enable-tif-shared \
--enable-xpm \ --enable-xcf \
--enable-xv \ --enable-xpm \
--with-sdl-prefix=$SYSROOT_PREFIX/usr \ --enable-xv \
--with-sdl-prefix=$SYSROOT_PREFIX/usr \
make make

View File

@ -23,5 +23,5 @@
. config/options $1 . config/options $1
mkdir -p $INSTALL/usr/lib 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