First pass of .oe cleanups.
[openembedded.git] / smpeg / smpeg_0.4.4+0.4.5cvs20040311.oe
1 SECTION = "NET"
2 PRIORITY = "optional"
3 MAINTAINER = "Michael Lauer <mickey@Vanille.de>"
4 RDEPENDS = "libc6 libsdl"
5 DEPENDS = "virtual/libc virtual/libsdl"
6 PROVIDES = "smpeg"
7
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"
12
13 inherit autotools libtool
14
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}/.."
20
21 do_configure_prepend () {
22         touch NEWS AUTHORS ChangeLog    
23         rm -f acinclude.m4      
24 }
25
26 do_stage() {
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
29
30         for f in "*.h"
31         do
32                 install -m 0644 ${f} ${STAGING_INCDIR}/SDL
33         done
34
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
40 }
41