diff options
author | Marko Lindqvist <cazfi74@gmail.com> | 2013-08-15 05:18:07 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-22 18:30:05 +0100 |
commit | 068069bb1a07b19d531ba47019f68b5d9234962c (patch) | |
tree | b2cb4e2f29c1c13e08f548b806b4efb96e2978c2 /meta/recipes-graphics | |
parent | fef7b40aa9fcfd8f8f696b9938fa82279d05449b (diff) | |
download | poky-068069bb1a07b19d531ba47019f68b5d9234962c.tar.gz |
libsdl2: add recipe
(From OE-Core rev: 41e0d3ed02017ad9d652275b7083b5b85cf49acc)
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/libsdl2/libsdl2_2.0.0.bb | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.0.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.0.bb new file mode 100644 index 0000000000..f393e33b0f --- /dev/null +++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.0.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=0605ca7e995ab1217e0bb988731a87fe" | ||
12 | |||
13 | PROVIDES = "virtual/libsdl2" | ||
14 | |||
15 | DEPENDS = "${@base_contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \ | ||
16 | ${@base_contains('DISTRO_FEATURES', 'opengl', 'virtual/libgl', '', d)} \ | ||
17 | ${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxext libxrandr libxrender', '', d)} \ | ||
18 | tslib" | ||
19 | DEPENDS_class-nativesdk = "${@base_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] = "beec89afb6edcc6f0abc4114f2e6bcf7" | ||
27 | SRC_URI[sha256sum] = "6f6ac8153d90e06a118474d5400624ae82b3d3e080915505db27cebc52b27178" | ||
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 | ${@base_contains('DISTRO_FEATURES', 'directfb', '--enable-video-directfb', '--disable-video-directfb', d)} \ | ||
36 | ${@base_contains('DISTRO_FEATURES', 'opengl', '--enable-video-opengl', '--disable-video-opengl', d)} \ | ||
37 | ${@base_contains('DISTRO_FEATURES', 'x11', '--enable-video-x11', '--disable-video-x11', d)} \ | ||
38 | --enable-sdl-dlopen \ | ||
39 | --disable-rpath \ | ||
40 | --disable-pulseaudio" | ||
41 | |||
42 | PACKAGECONFIG ??= "${@base_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 | } | ||