Merges.
[vuplus_openembedded] / smpeg / smpeg_0.4.4+0.4.5cvs20040311.oe
1 SECTION = "NET"
2 PRIORITY = "optional"
3 MAINTAINER = "Michael Lauer <mickey@Vanille.de>"
4 DEPENDS = "virtual/libc virtual/libsdl"
5 PROVIDES = "smpeg"
6 DESCRIPTION = "SMPEG is a general purpose MPEG video/audio \
7 player for Linux based on the mpeg_play and SPLAY \
8 MPEG decoders."
9
10 SRC_URI = "cvs://anonymous:anonymous@cvs.icculus.org/cvs/cvsroot;module=smpeg;date=20040311 \
11            file://m4.patch;patch=1 \
12            file://compile.patch;patch=1"
13 S = "${WORKDIR}/smpeg"
14
15 inherit autotools 
16
17 CFLAGS_append = " -I${STAGING_INCDIR}/SDL"
18 EXTRA_OECONF = "--disable-gtktest --disable-opengl-player --without-x \
19                 --without-gtk --disable-gtk-player \
20                 --with-sdl-prefix=${STAGING_LIBDIR}/.. \
21                 --with-sdl-exec-prefix=${STAGING_BINDIR}/.."
22
23 do_configure_prepend () {
24         touch NEWS AUTHORS ChangeLog
25         rm -f acinclude.m4
26 }
27
28 do_stage() {
29         oe_libinstall libsmpeg-0.4 ${STAGING_LIBDIR}
30         ln -sf libsmpeg-0.4.so ${STAGING_LIBDIR}/libsmpeg.so
31
32         for f in "*.h"
33         do
34                 install -m 0644 ${f} ${STAGING_INCDIR}/SDL
35         done
36
37         cat smpeg-config | sed -e "s,-I/usr/include/SDL,-I${STAGING_INCDIR}/SDL," \
38                          | sed -e "s,-I/usr/include/smpeg, ," \
39                          | sed -e "s,libdirs ,mickey_is_cool ," \
40                          | sed -e "s,-lSDL ,-lSDL-1.2 , "> ${STAGING_BINDIR}/smpeg-config
41         chmod a+rx ${STAGING_BINDIR}/smpeg-config
42 }
43