diff options
Diffstat (limited to 'meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb')
-rw-r--r-- | meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb new file mode 100644 index 0000000000..38304a96a4 --- /dev/null +++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb | |||
@@ -0,0 +1,56 @@ | |||
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 = "Zlib" | ||
11 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=67dcb7fae16952557bc5f96e9eb5d188" | ||
12 | |||
13 | PROVIDES = "virtual/libsdl2" | ||
14 | |||
15 | DEPENDS = "${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \ | ||
16 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virtual/libgl', '', d)} \ | ||
17 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxext libxrandr libxrender', '', d)} \ | ||
18 | tslib" | ||
19 | DEPENDS_class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/nativesdk-libx11 nativesdk-libxrandr nativesdk-libxrender nativesdk-libxext', '', d)}" | ||
20 | |||
21 | SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \ | ||
22 | " | ||
23 | |||
24 | S = "${WORKDIR}/SDL2-${PV}" | ||
25 | |||
26 | SRC_URI[md5sum] = "fe6c61d2e9df9ef570e7e80c6e822537" | ||
27 | SRC_URI[sha256sum] = "a5a69a6abf80bcce713fa873607735fe712f44276a7f048d60a61bb2f6b3c90c" | ||
28 | |||
29 | inherit autotools lib_package binconfig pkgconfig | ||
30 | |||
31 | EXTRA_OECONF = "--disable-oss --disable-esd --disable-arts \ | ||
32 | --disable-diskaudio --disable-nas --disable-esd-shared --disable-esdtest \ | ||
33 | --disable-video-dummy \ | ||
34 | --enable-input-tslib --enable-pthreads \ | ||
35 | ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', '--enable-video-directfb', '--disable-video-directfb', d)} \ | ||
36 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '--enable-video-opengl', '--disable-video-opengl', d)} \ | ||
37 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '--enable-video-x11', '--disable-video-x11', d)} \ | ||
38 | --enable-sdl-dlopen \ | ||
39 | --disable-rpath \ | ||
40 | --disable-pulseaudio" | ||
41 | |||
42 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)}" | ||
43 | PACKAGECONFIG[alsa] = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib," | ||
44 | |||
45 | PARALLEL_MAKE = "" | ||
46 | |||
47 | EXTRA_AUTORECONF += "--include=acinclude --exclude=autoheader" | ||
48 | |||
49 | do_configure_prepend() { | ||
50 | # Remove old libtool macros. | ||
51 | MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4" | ||
52 | for i in ${MACROS}; do | ||
53 | rm -f ${S}/acinclude/$i | ||
54 | done | ||
55 | export SYSROOT=$PKG_CONFIG_SYSROOT_DIR | ||
56 | } | ||