Merge branch 'vuplus-1.6k' of code.vuplus.com:/opt/repository/openembedded into vuplu...
[vuplus_openembedded] / recipes / libsdl / libsdl-native.inc
1 DESCRIPTION = "Simple DirectMedia Layer - native Edition"
2 HOMEPAGE = "http://www.libsdl.org"
3 SECTION = "libs"
4 LICENSE = "LGPL"
5 INC_PR = "r2"
6
7 SRC_URI = "http://www.libsdl.org/release/SDL-${PV}.tar.gz \
8 "
9
10 S = "${WORKDIR}/SDL-${PV}"
11
12 inherit autotools binconfig pkgconfig native
13
14 PARALLEL_MAKE = ""
15
16 EXTRA_OECONF = "--disable-debug --disable-cdrom --enable-threads --enable-timers --enable-endian \
17                 --enable-file --disable-oss --disable-alsa --disable-esd --disable-arts \
18                 --disable-diskaudio --disable-nas --disable-esd-shared --disable-esdtest \
19                 --disable-mintaudio --disable-nasm --disable-video-x11 --disable-video-dga \
20                 --disable-video-fbcon --disable-video-directfb --disable-video-ps2gs \
21                 --disable-video-xbios --disable-video-gem --disable-video-dummy \
22                 --disable-video-opengl --enable-input-events --enable-pthreads \
23                 --disable-video-picogui --disable-video-qtopia --enable-dlopen"
24
25 do_configure() {
26         gnu-configize
27         oe_runconf
28         cd ${S}
29         # prevent libtool from linking libs against libstdc++, libgcc, ...
30         cat ${TARGET_PREFIX}libtool | sed -e 's/postdeps=".*"/postdeps=""/' > ${TARGET_PREFIX}libtool.tmp
31         mv ${TARGET_PREFIX}libtool.tmp ${TARGET_PREFIX}libtool
32 }
33
34 do_stage() {
35         autotools_stage_all
36         install -m 0644 build/libSDLmain.a ${STAGING_LIBDIR}
37 }