blob: 9c0ec541e31f4f6ef0e89a2c4ca498bdd3bd01c3 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Simple DirectMedia Layer"
2DESCRIPTION = "Simple DirectMedia Layer is a cross-platform multimedia \
3library designed to provide low level access to audio, keyboard, mouse, \
4joystick, 3D hardware via OpenGL, and 2D video framebuffer."
5HOMEPAGE = "http://www.libsdl.org"
6BUGTRACKER = "http://bugzilla.libsdl.org/"
7
8SECTION = "libs"
9
10LICENSE = "LGPLv2.1"
11LIC_FILES_CHKSUM = "file://COPYING;md5=27818cd7fd83877a8e3ef82b82798ef4"
12
13PROVIDES = "virtual/libsdl"
14
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015PR = "r3"
16
17SRC_URI = "http://www.libsdl.org/release/SDL-${PV}.tar.gz \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018 file://libsdl-1.2.15-xdata32.patch \
19 file://pkgconfig.patch \
20 "
21
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050022UPSTREAM_CHECK_REGEX = "SDL-(?P<pver>\d+(\.\d+)+)\.tar"
23
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024S = "${WORKDIR}/SDL-${PV}"
25
26SRC_URI[md5sum] = "9d96df8417572a2afb781a7c4c811a85"
27SRC_URI[sha256sum] = "d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00"
28
29BINCONFIG = "${bindir}/sdl-config"
30
31inherit autotools lib_package binconfig-disabled pkgconfig
32
33EXTRA_OECONF = "--disable-static --enable-cdrom --enable-threads --enable-timers \
34 --enable-file --disable-oss --disable-esd --disable-arts \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050035 --disable-diskaudio --disable-nas \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050036 --disable-mintaudio --disable-nasm --disable-video-dga \
37 --disable-video-fbcon --disable-video-ps2gs --disable-video-ps3 \
38 --disable-xbios --disable-gem --disable-video-dummy \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050039 --enable-input-events --enable-pthreads \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050040 --disable-video-svga \
41 --disable-video-picogui --disable-video-qtopia --enable-sdl-dlopen \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050042 --disable-rpath"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050043
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050044PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \
45 ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)} \
46 ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \
47 ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)} \
48 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
49PACKAGECONFIG_class-native = "x11"
50PACKAGECONFIG_class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
51
52PACKAGECONFIG[alsa] = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib"
53PACKAGECONFIG[pulseaudio] = "--enable-pulseaudio,--disable-pulseaudio,pulseaudio"
54PACKAGECONFIG[tslib] = "--enable-input-tslib, --disable-input-tslib, tslib"
55PACKAGECONFIG[directfb] = "--enable-video-directfb, --disable-video-directfb, directfb"
56PACKAGECONFIG[opengl] = "--enable-video-opengl, --disable-video-opengl, virtual/libgl libglu"
57PACKAGECONFIG[x11] = "--enable-video-x11 --disable-x11-shared, --disable-video-x11, virtual/libx11 libxext libxrandr libxrender"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050058
59EXTRA_AUTORECONF += "--include=acinclude --exclude=autoheader"
60
61do_configure_prepend() {
62 # Remove old libtool macros.
63 MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4"
64 for i in ${MACROS}; do
65 rm -f ${S}/acinclude/$i
66 done
67 export SYSROOT=$PKG_CONFIG_SYSROOT_DIR
68}
69
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050070BBCLASSEXTEND = "native nativesdk"