summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorMarko Lindqvist <cazfi74@gmail.com>2013-08-15 05:18:07 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-22 18:30:05 +0100
commit068069bb1a07b19d531ba47019f68b5d9234962c (patch)
treeb2cb4e2f29c1c13e08f548b806b4efb96e2978c2 /meta/recipes-graphics
parentfef7b40aa9fcfd8f8f696b9938fa82279d05449b (diff)
downloadpoky-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.bb56
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 @@
1SUMMARY = "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 = "Zlib"
11LIC_FILES_CHKSUM = "file://COPYING.txt;md5=0605ca7e995ab1217e0bb988731a87fe"
12
13PROVIDES = "virtual/libsdl2"
14
15DEPENDS = "${@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"
19DEPENDS_class-nativesdk = "${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/nativesdk-libx11 nativesdk-libxrandr nativesdk-libxrender nativesdk-libxext', '', d)}"
20
21SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \
22 "
23
24S = "${WORKDIR}/SDL2-${PV}"
25
26SRC_URI[md5sum] = "beec89afb6edcc6f0abc4114f2e6bcf7"
27SRC_URI[sha256sum] = "6f6ac8153d90e06a118474d5400624ae82b3d3e080915505db27cebc52b27178"
28
29inherit autotools lib_package binconfig pkgconfig
30
31EXTRA_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
42PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)}"
43PACKAGECONFIG[alsa] = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib,"
44
45PARALLEL_MAKE = ""
46
47EXTRA_AUTORECONF += "--include=acinclude --exclude=autoheader"
48
49do_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}