3 MAINTAINER = "Michael Lauer <mickey@Vanille.de>"
4 RDEPENDS = "libc6 libsdl"
5 DEPENDS = "virtual/libc virtual/libsdl"
8 SRC_URI=cvs://anonymous:anonymous@cvs.icculus.org/cvs/cvsroot;module=smpeg;date=20040311 \
9 file://${FILESDIR}/m4.patch;patch=1 \
10 file://${FILESDIR}/compile.patch;patch=1
11 S = "${WORKDIR}/smpeg"
13 inherit autotools libtool
15 CFLAGS_append = " -I${STAGING_INCDIR}/SDL"
16 EXTRA_OECONF = "--disable-gtktest --disable-opengl-player --without-x \
17 --without-gtk --disable-gtk-player \
18 --with-sdl-prefix=${STAGING_LIBDIR}/.. \
19 --with-sdl-exec-prefix=${STAGING_BINDIR}/.."
21 do_configure_prepend () {
22 touch NEWS AUTHORS ChangeLog
27 oe_soinstall .libs/libsmpeg-0.4.so.0.1.4 ${STAGING_LIBDIR}
28 ln -sf libsmpeg-0.4.so.0.1.4 ${STAGING_LIBDIR}/libsmpeg.so
32 install -m 0644 ${f} ${STAGING_INCDIR}/SDL
35 cat smpeg-config | sed -e "s,-I/usr/include/SDL,-I${STAGING_INCDIR}/SDL," \
36 | sed -e "s,-I/usr/include/smpeg, ," \
37 | sed -e "s,libdirs ,mickey_is_cool ," \
38 | sed -e "s,-lSDL ,-lSDL-1.2 , "> ${STAGING_BINDIR}/smpeg-config
39 chmod a+rx ${STAGING_BINDIR}/smpeg-config