SDL: 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:50:04 +02:00
parent 99a30adb1d
commit 2027433d00
4 changed files with 225 additions and 77 deletions

View File

@ -0,0 +1,115 @@
#!/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
SDL_DIR=`ls -d $BUILD/SDL-[0-9]*`
setup_toolchain host
cd $SDL_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-rpath \
--enable-libc \
--disable-audio \
--disable-events \
--disable-joystick \
--disable-cdrom \
--enable-threads \
--enable-timers \
--enable-file \
--enable-loadso \
--enable-cpuinfo \
--enable-assembly \
--disable-oss \
--disable-alsa \
--disable-alsatest \
--disable-alsa-shared \
--disable-esd \
--disable-esdtest \
--disable-esd-shared \
--disable-pulseaudio \
--disable-pulseaudio-shared \
--disable-arts \
--disable-arts-shared \
--disable-nas \
--disable-diskaudio \
--disable-dummyaudio \
--disable-mintaudio \
--enable-nasm \
--disable-altivec \
--disable-ipod \
--disable-video \
--disable-x11-shared \
--disable-video-x11-dgamouse \
--disable-video-x11-xinerama \
--disable-video-x11-xme \
--disable-video-x11-xrandr \
--disable-video-x11 \
--disable-video-x11-vm \
--disable-video-x11-xv \
--without-x \
--disable-video-opengl \
--disable-video-nanox \
--disable-nanox-debug \
--disable-nanox-share-memory \
--disable-nanox-direct-fb \
--disable-dga \
--disable-video-dga \
--disable-video-photon \
--disable-video-carbon \
--disable-video-cocoa \
--disable-video-fbcon \
--disable-video-directfb \
--disable-video-ps2gs \
--disable-video-ggi \
--disable-video-svga \
--disable-video-vgl \
--disable-video-wscons \
--disable-video-aalib \
--disable-video-qtopia \
--disable-video-picogui \
--disable-video-dummy \
--disable-osmesa-shared \
--disable-input-events \
--disable-input-tslib \
--disable-pth \
--enable-pthreads \
--enable-pthread-sem \
--disable-stdio-redirect \
--disable-directx \
--enable-sdl-dlopen \
--disable-atari-ldg \
--disable-clock_gettime \
make
make install

View File

@ -0,0 +1,37 @@
################################################################################
# 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"
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 yasm"
PKG_PRIORITY="optional"
PKG_SECTION="multimedia"
PKG_SHORTDESC="libsdl: A cross-platform Graphic API"
PKG_LONGDESC="Simple DirectMedia Layer is a cross-platform multimedia library designed to provide fast access to the graphics framebuffer and audio device. It is used by MPEG playback software, emulators, and many popular games, including the award winning Linux port of 'Civilization: Call To Power.' Simple DirectMedia Layer supports Linux, Win32, BeOS, MacOS, Solaris, IRIX, and FreeBSD."
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"

View File

@ -53,87 +53,83 @@ rm -f acinclude/alsa.m4
# Added include directory 'acinclude' because SDL 1.2.14 has no Makefile.am in which to specify it.
AUTOHEADER="true" autoreconf --verbose --install --force -I $SYSROOT_PREFIX/usr/share/aclocal -I acinclude
./configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-shared \
--disable-static \
--disable-rpath \
--enable-libc \
--enable-audio \
--enable-events \
--enable-joystick \
--enable-cdrom \
--enable-threads \
--enable-timers \
--enable-file \
--enable-loadso \
--enable-cpuinfo \
--enable-assembly \
--disable-oss \
--enable-alsa \
--disable-alsatest \
--enable-alsa-shared \
--with-alsa-prefix=$SYSROOT_PREFIX/usr/lib \
--with-alsa-inc-prefix=$SYSROOT_PREFIX/usr/include \
--disable-esd \
--disable-esdtest \
--disable-esd-shared \
$SDL_PULSEAUDIO \
--disable-arts \
--disable-arts-shared \
--disable-nas \
--disable-diskaudio \
--disable-dummyaudio \
--disable-mintaudio \
--enable-nasm \
--disable-altivec \
--disable-ipod \
$SDL_X11 \
$SDL_OPENGL \
--disable-video-nanox \
--disable-nanox-debug \
--disable-nanox-share-memory \
--disable-nanox-direct-fb \
--disable-dga \
--disable-video-dga \
--disable-video-photon \
--disable-video-carbon \
--disable-video-cocoa \
--disable-video-fbcon \
--disable-video-directfb \
--disable-video-ps2gs \
--disable-video-ggi \
--disable-video-svga \
--disable-video-vgl \
--disable-video-wscons \
--disable-video-aalib \
--disable-video-qtopia \
--disable-video-picogui \
--disable-video-dummy \
--disable-osmesa-shared \
--enable-input-events \
--disable-input-tslib \
--disable-pth \
--enable-pthreads \
--enable-pthread-sem \
--disable-stdio-redirect \
--disable-directx \
--enable-sdl-dlopen \
--disable-atari-ldg \
--disable-clock_gettime \
mkdir -p .build-target && cd .build-target
../configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-shared \
--disable-static \
--disable-rpath \
--enable-libc \
--enable-audio \
--enable-events \
--enable-joystick \
--enable-cdrom \
--enable-threads \
--enable-timers \
--enable-file \
--enable-loadso \
--enable-cpuinfo \
--enable-assembly \
--disable-oss \
--enable-alsa \
--disable-alsatest \
--enable-alsa-shared \
--with-alsa-prefix=$SYSROOT_PREFIX/usr/lib \
--with-alsa-inc-prefix=$SYSROOT_PREFIX/usr/include \
--disable-esd \
--disable-esdtest \
--disable-esd-shared \
$SDL_PULSEAUDIO \
--disable-arts \
--disable-arts-shared \
--disable-nas \
--disable-diskaudio \
--disable-dummyaudio \
--disable-mintaudio \
--enable-nasm \
--disable-altivec \
--disable-ipod \
$SDL_X11 \
$SDL_OPENGL \
--disable-video-nanox \
--disable-nanox-debug \
--disable-nanox-share-memory \
--disable-nanox-direct-fb \
--disable-dga \
--disable-video-dga \
--disable-video-photon \
--disable-video-carbon \
--disable-video-cocoa \
--disable-video-fbcon \
--disable-video-directfb \
--disable-video-ps2gs \
--disable-video-ggi \
--disable-video-svga \
--disable-video-vgl \
--disable-video-wscons \
--disable-video-aalib \
--disable-video-qtopia \
--disable-video-picogui \
--disable-video-dummy \
--disable-osmesa-shared \
--enable-input-events \
--disable-input-tslib \
--disable-pth \
--enable-pthreads \
--enable-pthread-sem \
--disable-stdio-redirect \
--disable-directx \
--enable-sdl-dlopen \
--disable-atari-ldg \
--disable-clock_gettime \
make
$MAKEINSTALL
mkdir -p $SYSROOT_PREFIX/usr/lib/pkgconfig
# cp sdl.pc $SYSROOT_PREFIX/usr/lib/pkgconfig
#$SED "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" $SYSROOT_PREFIX/usr/bin/sdl-config
mkdir -p $ROOT/$TOOLCHAIN/bin
cp $SYSROOT_PREFIX/usr/bin/sdl-config $ROOT/$TOOLCHAIN/bin
$SED "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" $ROOT/$TOOLCHAIN/bin/sdl-config

View File

@ -23,4 +23,4 @@
. config/options $1
mkdir -p $INSTALL/usr/lib
cp -P $PKG_BUILD/build/.libs/*.so* $INSTALL/usr/lib
cp -P $PKG_BUILD/.build-target/build/.libs/*.so* $INSTALL/usr/lib