Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Simple DirectMedia Layer" |
| 2 | DESCRIPTION = "Simple DirectMedia Layer is a cross-platform multimedia \ |
| 3 | library designed to provide low level access to audio, keyboard, mouse, \ |
| 4 | joystick, 3D hardware via OpenGL, and 2D video framebuffer." |
| 5 | HOMEPAGE = "http://www.libsdl.org" |
| 6 | BUGTRACKER = "http://bugzilla.libsdl.org/" |
| 7 | |
| 8 | SECTION = "libs" |
| 9 | |
| 10 | LICENSE = "LGPLv2.1" |
| 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=27818cd7fd83877a8e3ef82b82798ef4" |
| 12 | |
| 13 | PROVIDES = "virtual/libsdl" |
| 14 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | PR = "r3" |
| 16 | |
| 17 | SRC_URI = "http://www.libsdl.org/release/SDL-${PV}.tar.gz \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | file://libsdl-1.2.15-xdata32.patch \ |
| 19 | file://pkgconfig.patch \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 20 | file://0001-build-Pass-tag-CC-explictly-when-using-libtool.patch \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 21 | " |
| 22 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 23 | UPSTREAM_CHECK_REGEX = "SDL-(?P<pver>\d+(\.\d+)+)\.tar" |
| 24 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 25 | S = "${WORKDIR}/SDL-${PV}" |
| 26 | |
| 27 | SRC_URI[md5sum] = "9d96df8417572a2afb781a7c4c811a85" |
| 28 | SRC_URI[sha256sum] = "d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00" |
| 29 | |
| 30 | BINCONFIG = "${bindir}/sdl-config" |
| 31 | |
| 32 | inherit autotools lib_package binconfig-disabled pkgconfig |
| 33 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 34 | CVE_PRODUCT = "simple_directmedia_layer sdl" |
| 35 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 36 | EXTRA_OECONF = "--disable-static --enable-cdrom --enable-threads --enable-timers \ |
| 37 | --enable-file --disable-oss --disable-esd --disable-arts \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 38 | --disable-diskaudio --disable-nas \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 39 | --disable-mintaudio --disable-nasm --disable-video-dga \ |
| 40 | --disable-video-fbcon --disable-video-ps2gs --disable-video-ps3 \ |
| 41 | --disable-xbios --disable-gem --disable-video-dummy \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 42 | --enable-input-events --enable-pthreads \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 43 | --disable-video-svga \ |
| 44 | --disable-video-picogui --disable-video-qtopia --enable-sdl-dlopen \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 45 | --disable-rpath" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 46 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 47 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11', d)} \ |
| 48 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)}" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 49 | PACKAGECONFIG_class-native = "x11" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 50 | PACKAGECONFIG_class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 51 | |
| 52 | PACKAGECONFIG[alsa] = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib" |
| 53 | PACKAGECONFIG[pulseaudio] = "--enable-pulseaudio,--disable-pulseaudio,pulseaudio" |
| 54 | PACKAGECONFIG[tslib] = "--enable-input-tslib, --disable-input-tslib, tslib" |
| 55 | PACKAGECONFIG[directfb] = "--enable-video-directfb, --disable-video-directfb, directfb" |
| 56 | PACKAGECONFIG[opengl] = "--enable-video-opengl, --disable-video-opengl, virtual/libgl libglu" |
| 57 | PACKAGECONFIG[x11] = "--enable-video-x11 --disable-x11-shared, --disable-video-x11, virtual/libx11 libxext libxrandr libxrender" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 58 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 59 | # The following two options should only enabled with mingw support |
| 60 | PACKAGECONFIG[stdio-redirect] = "--enable-stdio-redirect,--disable-stdio-redirect" |
| 61 | PACKAGECONFIG[directx] = "--enable-directx,--disable-directx" |
| 62 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 63 | EXTRA_AUTORECONF += "--include=acinclude --exclude=autoheader" |
| 64 | |
| 65 | do_configure_prepend() { |
| 66 | # Remove old libtool macros. |
| 67 | MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4" |
| 68 | for i in ${MACROS}; do |
| 69 | rm -f ${S}/acinclude/$i |
| 70 | done |
| 71 | export SYSROOT=$PKG_CONFIG_SYSROOT_DIR |
| 72 | } |
| 73 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 74 | BBCLASSEXTEND = "native nativesdk" |