DESCRIPTION = "Simple DirectMedia Layer (X11, Framebuffer, +some OMAP support)" SECTION = "libs" PRIORITY = "optional" LICENSE = "LGPL" RDEPENDS = "armhflibc6 armhflibasound2 armhflibx11-6 armhflibxext6" PR = "r0" SRCREV = "d45df001413d714c8995e755f04c9936b18aa44a" SRC_URI = " \ git://notaz.gp2x.de/~notaz/sdl_omap.git;protocol=git;branch=master \ file://sdl.m4 \ " S = "${WORKDIR}/git" inherit autotools binconfig pkgconfig do_configure_prepend() { sh autogen.sh } # assumes armhf (arm-unknown-linux-gnueabihf) cross-compiler is available in PATH # with all required deps do_configure() { unset CPP unset CC unset CXX unset AR unset LD unset NM unset STRIP unset OBJCOPY unset CPPFLAGS unset CFLAGS unset CXXFLAGS unset PKG_CONFIG_DIR unset PKG_CONFIG_PATH unset LDFLAGS export CPPFLAGS="-I`arm-unknown-linux-gnueabihf-gcc -print-sysroot`/usr/local/include" export LDFLAGS="-Wl,--hash-style=gnu" ${S}/configure --host=arm-unknown-linux-gnueabihf --prefix=/usr --libdir=/usr/lib/arm-linux-gnueabihf \ --disable-static --disable-esd --disable-pulseaudio --enable-video-x11 } do_configure_append () { cd ${S} # prevent libtool from linking libs against libstdc++, libgcc, ... cat ${TARGET_PREFIX}libtool | sed -e 's/postdeps=".*"/postdeps=""/' > ${TARGET_PREFIX}libtool.tmp mv ${TARGET_PREFIX}libtool.tmp ${TARGET_PREFIX}libtool # copy new sdl.m4 macrofile to the dir for installing cp ${WORKDIR}/sdl.m4 ${S}/ } do_stage() { autotools_stage_all rm ${STAGING_LIBDIR}/arm-linux-gnueabihf/libSDL.la } FILES_${PN} = "usr/lib/arm-linux-gnueabihf/*.so.*" FILES_${PN}-dbg += "usr/lib/arm-linux-gnueabihf/.debug" # no conflicts with armel files, please FILES_${PN}-dev := ""