summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/ogmrip/files/ogmrip-0.9.0-mplayercvs.patch')
-rw-r--r--media-video/ogmrip/files/ogmrip-0.9.0-mplayercvs.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/media-video/ogmrip/files/ogmrip-0.9.0-mplayercvs.patch b/media-video/ogmrip/files/ogmrip-0.9.0-mplayercvs.patch
new file mode 100644
index 000000000000..f4efbfe119f0
--- /dev/null
+++ b/media-video/ogmrip/files/ogmrip-0.9.0-mplayercvs.patch
@@ -0,0 +1,32 @@
+diff -N -u -r ogmrip-0.9.0/configure.in ogmrip-0.9.0-new/configure.in
+--- ogmrip-0.9.0/configure.in 2005-06-28 13:55:47.000000000 +0200
++++ ogmrip-0.9.0-new/configure.in 2006-03-14 13:46:34.740041528 +0100
+@@ -153,17 +153,19 @@
+ fi
+
+ if $MPLAYER_PROG | grep -q "MPlayer dev-CVS"; then
+- AC_MSG_ERROR(OGMRip does support CVS versions of mplayer. You need an official release. Find it on http://www.mplayerhq.hu)
+-fi
++ AC_DEFINE_UNQUOTED(MPLAYER_PRE, 1, [Mplayer pre version number])
++ AC_DEFINE_UNQUOTED(MPLAYER_PRE, 7, [Mplayer pre version number])
++else
+
+-MPLAYER_MAJOR=`$MPLAYER_PROG | head -n 1 | $SED_PROG -e 's%MPlayer \([[0-1]]\).*%\1%'`
+-AC_DEFINE_UNQUOTED(MPLAYER_MAJOR, $MPLAYER_MAJOR, [Mplayer major version number])
++ MPLAYER_MAJOR=`$MPLAYER_PROG | head -n 1 | $SED_PROG -e 's%MPlayer \([[0-1]]\).*%\1%'`
++ AC_DEFINE_UNQUOTED(MPLAYER_MAJOR, $MPLAYER_MAJOR, [Mplayer major version number])
+
+-if $MPLAYER_PROG | grep -q "MPlayer [[0-1]]\.[[0-9]]\+pre[[0-9]]\+.*"; then
+- MPLAYER_PRE=`$MPLAYER_PROG | head -n 1 | $SED_PROG -e 's%MPlayer [[0-1]]\.[[0-9]]\+pre\([[0-9]]\+\).*%\1%'`
+- AC_DEFINE_UNQUOTED(MPLAYER_PRE, $MPLAYER_PRE, [Mplayer pre version number])
+-else
+- AC_DEFINE_UNQUOTED(MPLAYER_PRE, 0, [Mplayer pre version number])
++ if $MPLAYER_PROG | grep -q "MPlayer [[0-1]]\.[[0-9]]\+pre[[0-9]]\+.*"; then
++ MPLAYER_PRE=`$MPLAYER_PROG | head -n 1 | $SED_PROG -e 's%MPlayer [[0-1]]\.[[0-9]]\+pre\([[0-9]]\+\).*%\1%'`
++ AC_DEFINE_UNQUOTED(MPLAYER_PRE, $MPLAYER_PRE, [Mplayer pre version number])
++ else
++ AC_DEFINE_UNQUOTED(MPLAYER_PRE, 0, [Mplayer pre version number])
++ fi
+ fi
+
+ dnl **************************************************************