summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/libsdl
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-11-04 16:19:35 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-29 13:46:28 (GMT)
commitfaf8832607a4a5efbbe0d94a094e2c01f2f4cccf (patch)
tree6c0e6b22a62ed8a0257beff6bc6f6002e8f3e470 /meta/recipes-graphics/libsdl
parentee58c9e7092234f496ba96f09adc2eb78a742c58 (diff)
downloadpoky-faf8832607a4a5efbbe0d94a094e2c01f2f4cccf.tar.gz
libsdl: enable cdrom, alsa and tslib, disable rpath and add few fixes from meta-oe
* virtual/libsdl is used in sdl.bbclass but nothing was providing it * rpath disabled because otherwise libtool and ld try to link against ${libdir}/libdl.so.2 on the host (see OE-classic commit af1a2e0e7626e372f22afbcabf08d9ae6b0d7b01) (From OE-Core rev: e00897b93f09f86445af38858d4f61866cd1ce70) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/libsdl')
-rw-r--r--meta/recipes-graphics/libsdl/libsdl_1.2.14.bb18
1 files changed, 12 insertions, 6 deletions
diff --git a/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb b/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb
index 6b23344..17a3103 100644
--- a/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb
+++ b/meta/recipes-graphics/libsdl/libsdl_1.2.14.bb
@@ -10,10 +10,12 @@ SECTION = "libs"
10LICENSE = "LGPLv2.1" 10LICENSE = "LGPLv2.1"
11LIC_FILES_CHKSUM = "file://COPYING;md5=27818cd7fd83877a8e3ef82b82798ef4" 11LIC_FILES_CHKSUM = "file://COPYING;md5=27818cd7fd83877a8e3ef82b82798ef4"
12 12
13DEPENDS = "${@base_contains('DISTRO_FEATURES', 'opengl', 'virtual/libgl', '', d)} virtual/libx11 libxext libxrandr libxrender" 13PROVIDES = "virtual/libsdl"
14
15DEPENDS = "${@base_contains('DISTRO_FEATURES', 'opengl', 'virtual/libgl', '', d)} virtual/libx11 libxext libxrandr libxrender alsa-lib tslib"
14DEPENDS_virtclass-nativesdk = "libx11-nativesdk libxrandr-nativesdk libxrender-nativesdk libxext-nativesdk" 16DEPENDS_virtclass-nativesdk = "libx11-nativesdk libxrandr-nativesdk libxrender-nativesdk libxext-nativesdk"
15 17
16PR = "r0" 18PR = "r1"
17 19
18SRC_URI = "http://www.libsdl.org/release/SDL-${PV}.tar.gz \ 20SRC_URI = "http://www.libsdl.org/release/SDL-${PV}.tar.gz \
19 file://configure_tweak.patch \ 21 file://configure_tweak.patch \
@@ -26,25 +28,29 @@ SRC_URI[sha256sum] = "5d927e287034cb6bb0ebccfa382cb1d185cb113c8ab5115a0759798642
26 28
27inherit autotools binconfig pkgconfig 29inherit autotools binconfig pkgconfig
28 30
29EXTRA_OECONF = "--disable-static --disable-debug --disable-cdrom --enable-threads --enable-timers --enable-endian \ 31EXTRA_OECONF = "--disable-static --disable-debug --enable-cdrom --enable-threads --enable-timers --enable-endian \
30 --enable-file --disable-oss --disable-alsa --disable-esd --disable-arts \ 32 --enable-file --disable-oss --enable-alsa --disable-esd --disable-arts \
31 --disable-diskaudio --disable-nas --disable-esd-shared --disable-esdtest \ 33 --disable-diskaudio --disable-nas --disable-esd-shared --disable-esdtest \
32 --disable-mintaudio --disable-nasm --enable-video-x11 --disable-video-dga \ 34 --disable-mintaudio --disable-nasm --enable-video-x11 --disable-video-dga \
33 --disable-video-fbcon --disable-video-directfb --disable-video-ps2gs --disable-video-ps3 \ 35 --disable-video-fbcon --disable-video-directfb --disable-video-ps2gs --disable-video-ps3 \
34 --disable-video-xbios --disable-video-gem --disable-video-dummy \ 36 --disable-video-xbios --disable-video-gem --disable-video-dummy \
35 --enable-input-events --enable-pthreads \ 37 --enable-input-events --enable-input-tslib --enable-pthreads \
36 ${@base_contains('DISTRO_FEATURES', 'opengl', '--enable-video-opengl', '--disable-video-opengl', d)} \ 38 ${@base_contains('DISTRO_FEATURES', 'opengl', '--enable-video-opengl', '--disable-video-opengl', d)} \
37 --disable-video-svga \ 39 --disable-video-svga \
38 --disable-video-picogui --disable-video-qtopia --enable-dlopen" 40 --disable-video-picogui --disable-video-qtopia --enable-dlopen \
41 --disable-rpath"
39 42
40PARALLEL_MAKE = "" 43PARALLEL_MAKE = ""
41 44
45EXTRA_AUTORECONF += "--include=acinclude --exclude=autoheader"
46
42do_configure_prepend() { 47do_configure_prepend() {
43 # Remove old libtool macros. 48 # Remove old libtool macros.
44 MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4" 49 MACROS="libtool.m4 lt~obsolete.m4 ltoptions.m4 ltsugar.m4 ltversion.m4"
45 for i in ${MACROS}; do 50 for i in ${MACROS}; do
46 rm -f acinclude/$i 51 rm -f acinclude/$i
47 done 52 done
53 export SYSROOT=$PKG_CONFIG_SYSROOT_DIR
48} 54}
49 55
50BBCLASSEXTEND = "nativesdk" 56BBCLASSEXTEND = "nativesdk"