motion: fix ffmpeg support
authorKoen Kooi <koen@openembedded.org>
Sun, 22 Feb 2009 18:22:45 +0000 (19:22 +0100)
committerKoen Kooi <koen@openembedded.org>
Sun, 22 Feb 2009 18:22:45 +0000 (19:22 +0100)
packages/motion/motion-3.2.11/ffmpeg-0.4.9.15594svn-20081010.diff [new file with mode: 0644]
packages/motion/motion_3.2.11.bb

diff --git a/packages/motion/motion-3.2.11/ffmpeg-0.4.9.15594svn-20081010.diff b/packages/motion/motion-3.2.11/ffmpeg-0.4.9.15594svn-20081010.diff
new file mode 100644 (file)
index 0000000..af85599
--- /dev/null
@@ -0,0 +1,14 @@
+Index: ffmpeg.c
+===================================================================
+--- trunk/ffmpeg.c     (revision 434)
++++ trunk/ffmpeg.c     (working copy)
+@@ -164,7 +164,8 @@
+     return write(fd, buf, size);
+ }
+-static offset_t file_seek(URLContext *h, offset_t pos, int whence)
++
++static int64_t file_seek(URLContext *h, int64_t pos, int whence)
+ {
+     int fd = (size_t)h->priv_data;
+     return lseek(fd, pos, whence);
index dc7c0ec..999a0ab 100644 (file)
@@ -7,13 +7,14 @@ DEPENDS = "jpeg ffmpeg mysql postgresql"
 
 RSUGGESTS = "mysql-client postgresql-client"
 
-PR = "r0"
+PR = "r1"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/${PN}/${PN}-${PV}.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/${PN}/${PN}-${PV}.tar.gz \
+           file://ffmpeg-0.4.9.15594svn-20081010.diff;patch=1 "
 
 inherit autotools
 
-EXTRA_OECONF = " --with-ffmpeg=${STAGING_LIBDIR} \
+EXTRA_OECONF = " --with-ffmpeg=${STAGING_LIBDIR}/../ \
                  --with-mysql-lib=${STAGING_LIBDIR} \
                  --with-mysql-include=${STAGING_INCDIR}/mysql \
                  --with-pgsql-lib=${STAGING_LIBDIR} \