summaryrefslogtreecommitdiff
path: root/packages/smpeg/smpeg_svn.bb
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2008-09-22 12:29:26 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2008-09-22 12:29:26 +0000
commitcdba23dc285142750361fa95360e8c67d8351c9e (patch)
tree4dfec364aaa2a0cb7b83d83c642596e395437ef0 /packages/smpeg/smpeg_svn.bb
parentda87201253f04e5af788dcd09030f8f0f5114f9d (diff)
smpeg: added SVN version (tested only for building)
Diffstat (limited to 'packages/smpeg/smpeg_svn.bb')
-rw-r--r--packages/smpeg/smpeg_svn.bb50
1 files changed, 50 insertions, 0 deletions
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}"
+