2022-02-05 14:23:32 +00:00
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
#
# OpenELEC 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 of the License, or
# (at your option) any later version.
#
# OpenELEC 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. If not, see <http://www.gnu.org/licenses/>.
################################################################################
PKG_NAME = "SDL"
PKG_VERSION = "92927a9b689c55c5879add79378e24f9443f56f4"
PKG_ARCH = "any"
PKG_LICENSE = "GPL"
PKG_SITE = "https://www.libsdl.org/"
PKG_URL = " https://github.com/libsdl-org/SDL-1.2/archive/ $PKG_VERSION .tar.gz "
PKG_DEPENDS_TARGET = "toolchain yasm:host alsa-lib systemd dbus SDL:host"
PKG_SECTION = "multimedia"
PKG_SHORTDESC = "SDL: 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_USE_CMAKE = "no"
PKG_AUTORECONF = "no"
PKG_CONFIGURE_OPTS_TARGET = " --enable-shared \
--enable-libc \
--enable-gcc-atomics \
--enable-atomic \
--enable-audio \
--enable-render \
--enable-events \
--enable-joystick \
--enable-haptic \
--enable-power \
--enable-filesystem \
--enable-threads \
--enable-timers \
--enable-file \
--enable-loadso \
--enable-cpuinfo \
--enable-assembly \
--disable-altivec \
--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 \
--disable-arts --disable-arts-shared \
--disable-nas --enable-nas-shared \
--disable-sndio --enable-sndio-shared \
--disable-diskaudio \
--disable-dummyaudio \
--disable-video-wayland --enable-video-wayland-qt-touch --disable-wayland-shared \
--disable-video-mir --disable-mir-shared \
--disable-video-cocoa \
--enable-video-directfb --enable-directfb-shared \
--disable-fusionsound --disable-fusionsound-shared \
--disable-video-dummy \
--enable-libudev \
--enable-dbus \
--disable-input-tslib \
--enable-pthreads --enable-pthread-sem \
--disable-directx \
--enable-sdl-dlopen \
--disable-clock_gettime \
--disable-rpath \
--disable-render-d3d \
--enable-arm-neon"
i f [ ! "$OPENGL" = "no" ] ; t h e n
PKG_DEPENDS_TARGET = " $PKG_DEPENDS_TARGET $OPENGL glu "
PKG_CONFIGURE_OPTS_TARGET = " $PKG_CONFIGURE_OPTS_TARGET --enable-video-opengl --disable-video-opengles "
e l s e
PKG_CONFIGURE_OPTS_TARGET = " $PKG_CONFIGURE_OPTS_TARGET --disable-video-opengl --enable-video-opengles --enable-video-fbcon "
f i
2022-09-02 12:04:24 +00:00
if [ " ${ DISPLAYSERVER } " = "wl" ] ; then
PKG_DEPENDS_TARGET += " wayland ${ WINDOWMANAGER } "
PKG_CONFIGURE_OPTS_TARGET += " --enable-video-wayland --enable-video-wayland-qt-touch --enable-wayland-shared"
fi
2022-02-05 14:23:32 +00:00
i f [ "$PULSEAUDIO_SUPPORT" = y e s ] ; t h e n
PKG_DEPENDS_TARGET = " $PKG_DEPENDS_TARGET pulseaudio "
PKG_CONFIGURE_OPTS_TARGET = " $PKG_CONFIGURE_OPTS_TARGET --enable-pulseaudio --enable-pulseaudio-shared "
e l s e
PKG_CONFIGURE_OPTS_TARGET = " $PKG_CONFIGURE_OPTS_TARGET --disable-pulseaudio --disable-pulseaudio-shared "
f i
p r e _ m a k e _ t a r g e t ( ) {
# dont build parallel
MAKEFLAGS = -j1
}
p o s t _ m a k e i n s t a l l _ t a r g e t ( ) {
sed -i " s:\(['=\" ]\)/usr:\\1 $SYSROOT_PREFIX /usr:g " $SYSROOT_PREFIX /usr/bin/sdl-config
rm -rf $INSTALL /usr/bin
}