From cdba23dc285142750361fa95360e8c67d8351c9e Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Mon, 22 Sep 2008 12:29:26 +0000 Subject: smpeg: added SVN version (tested only for building) --- packages/smpeg/smpeg_svn.bb | 50 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 packages/smpeg/smpeg_svn.bb (limited to 'packages/smpeg/smpeg_svn.bb') diff --git a/packages/smpeg/smpeg_svn.bb b/packages/smpeg/smpeg_svn.bb new file mode 100644 index 0000000000..e6c0f6444a --- /dev/null +++ b/packages/smpeg/smpeg_svn.bb @@ -0,0 +1,50 @@ +DESCRIPTION = "SMPEG is a general purpose MPEG video/audio \ +player for Linux based on the mpeg_play and SPLAY MPEG decoders." +LICENSE = "LGPL" +SECTION = "libs/multimedia" +DEPENDS = "virtual/libsdl" +PROVIDES = "smpeg" +PV = "0.4.5+rsvn${SRCREV}" +SRCREV = "370" + +SRC_URI = "svn://svn.icculus.org/smpeg/;module=trunk \ + file://m4.patch;patch=1 \ + file://as-fix.patch;patch=1" + +S = "${WORKDIR}/trunk" + +inherit autotools + +export SDL_CONFIG = "${STAGING_BINDIR_CROSS}/sdl-config" + +CFLAGS_append = " -I${STAGING_INCDIR}/SDL" +EXTRA_OECONF = "--disable-gtktest --disable-opengl-player --without-x \ + --without-gtk --disable-gtk-player" + +do_configure_prepend () { + touch NEWS AUTHORS ChangeLog + rm -f acinclude.m4 +} + +do_stage() { + oe_libinstall -so -C .libs libsmpeg-0.4 ${STAGING_LIBDIR} + ln -sf libsmpeg-0.4.so ${STAGING_LIBDIR}/libsmpeg.so + + for f in "*.h" + do + install -m 0644 ${f} ${STAGING_INCDIR}/SDL + done + + cat smpeg-config | sed -e "s,-I/usr/include/SDL,-I${STAGING_INCDIR}/SDL," \ + | sed -e "s,-I/usr/include/smpeg, ," \ + | sed -e "s,libdirs ,mickey_is_cool ," \ + | sed -e "s,-lSDL ,-lSDL-1.2 , "> ${STAGING_BINDIR_CROSS}/smpeg-config + chmod a+rx ${STAGING_BINDIR_CROSS}/smpeg-config +} + +PACKAGES =+ "plaympeg " +SECTION_plaympeg = "console/multimedia" +FILES_${PN} = "${libdir}" +FILES_plaympeg = "${bindir}/plaympeg" +FILES_${PN}-dev += "${bindir}" + -- cgit v1.2.3