[oe-commits] Thomas Zimmermann : shr/merge: mplayer: fix ivtv build problem

git version control git at git.openembedded.org
Thu Nov 19 08:15:59 UTC 2009


Module: openembedded.git
Branch: shr/merge
Commit: 26bb9d71306bb1011cdeb50e3911970828a35cd8
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=26bb9d71306bb1011cdeb50e3911970828a35cd8

Author: Thomas Zimmermann <zimmermann at vdm-design.de>
Date:   Fri Oct 16 21:24:02 2009 +0000

shr/merge: mplayer: fix ivtv build problem

Signed-off-by: Klaus Kurzmann <mok at fluxnetz.de>

---

 recipes/mplayer/mplayer-0.0+1.0rc2/ivtv-fix.patch |   26 +++++++++++++++++++++
 recipes/mplayer/mplayer_0.0+1.0rc2.bb             |    5 ++-
 2 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/recipes/mplayer/mplayer-0.0+1.0rc2/ivtv-fix.patch b/recipes/mplayer/mplayer-0.0+1.0rc2/ivtv-fix.patch
new file mode 100644
index 0000000..25635bc
--- /dev/null
+++ b/recipes/mplayer/mplayer-0.0+1.0rc2/ivtv-fix.patch
@@ -0,0 +1,26 @@
+--- MPlayer-1.0rc2/configure~	2009-10-17 00:08:35.000000000 +0200
++++ MPlayer-1.0rc2/configure	2009-10-17 00:08:35.000000000 +0200
+@@ -4965,7 +4965,7 @@
+ echores "$_dxr3"
+ 
+ 
+-echocheck "IVTV TV-Out"
++echocheck "IVTV TV-Out (pre linux-2.6.24)"
+ if test "$_ivtv" = auto ; then
+   cat > $TMPC << EOF
+ #include <stdlib.h>
+@@ -4973,7 +4973,13 @@
+ #include <linux/types.h>
+ #include <linux/videodev2.h>
+ #include <linux/ivtv.h>
+-int main(void) { return 0; }
++#include <sys/ioctl.h>
++int main(void) {
++struct ivtv_cfg_stop_decode sd;
++struct ivtv_cfg_start_decode sd1;
++ioctl (0, IVTV_IOC_START_DECODE, &sd1);
++ioctl (0, IVTV_IOC_STOP_DECODE, &sd);
++return 0; }
+ EOF
+   _ivtv=no
+   cc_check && _ivtv=yes
diff --git a/recipes/mplayer/mplayer_0.0+1.0rc2.bb b/recipes/mplayer/mplayer_0.0+1.0rc2.bb
index 481acce..9a16dad 100644
--- a/recipes/mplayer/mplayer_0.0+1.0rc2.bb
+++ b/recipes/mplayer/mplayer_0.0+1.0rc2.bb
@@ -28,7 +28,8 @@ SRC_URI = "http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2 \
            file://imageon-video_out.patch;patch=1 \
            file://pxa_configure.patch;patch=1 \
            file://pxa-video_out.patch;patch=1 \
-           file://motion-comp-pld.patch;patch=1 "
+           file://motion-comp-pld.patch;patch=1 \
+	   file://ivtv-fix.patch;patch=1 "
 
 # This is required for the collie machine only as all stacks in that
 # machine seem to be set to executable by the toolchain. If someone
@@ -45,7 +46,7 @@ ARM_INSTRUCTION_SET = "ARM"
 RCONFLICTS_${PN} = "mplayer-atty"
 RREPLACES_${PN} = "mplayer-atty"
 
-PR = "r12"
+PR = "r13"
 
 PARALLEL_MAKE = ""
 





More information about the Openembedded-commits mailing list