clearsilver: fix various build issues
[openembedded.git] / recipes / libsdl / libsdl.inc
blob5653925d681fd7ca90f0d6a794bc3001756faa81
1 DESCRIPTION = "Simple DirectMedia Layer - X11 Edition"
2 SECTION = "libs"
3 PRIORITY = "optional"
4 DEPENDS = "alsa-lib mesa virtual/libx11 libxext"
5 DEPENDS_avr32 = "alsa-lib virtual/libx11 libxext"
6 PROVIDES = "virtual/libsdl"
7 LICENSE = "LGPL"
9 SRC_URI = "\
10   http://www.libsdl.org/release/SDL-${PV}.tar.gz \
11   file://extra-keys.patch;patch=1 \
12   file://pagesize.patch;patch=1 \
13   file://remove_path.patch;patch=1 \
14   file://acinclude.m4"
15 S = "${WORKDIR}/SDL-${PV}"
17 inherit autotools binconfig pkgconfig
19 EXTRA_OECONF = "<overwrite me>"
21 FILES_${PN} = "${libdir}/lib*.so.*"
22 FILES_${PN}-dev += "${bindir}/*config"
24 do_configure_prepend() {
25         rm -f ${S}/acinclude.m4
26         cp ${WORKDIR}/acinclude.m4 ${S}/
29 do_configure_append () {
30         cd ${S}
32         # prevent libtool from linking libs against libstdc++, libgcc, ...
33         cat ${TARGET_PREFIX}libtool | sed -e 's/postdeps=".*"/postdeps=""/' > ${TARGET_PREFIX}libtool.tmp
34         mv ${TARGET_PREFIX}libtool.tmp ${TARGET_PREFIX}libtool
37 do_stage() {
38         autotools_stage_all             
39         rm ${STAGING_LIBDIR}/libSDL.la