Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94135 - 3GP Audio support patch for mplayer-1.0_pre7.ebuild
Summary: 3GP Audio support patch for mplayer-1.0_pre7.ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-26 20:21 UTC by Rick Harris
Modified: 2006-08-30 15:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
amr patch for mplayer-1.0_pre7.ebuild (mplayer-1.0_pre7-amr.patch,2.20 KB, patch)
2005-07-09 12:57 UTC, Thomas Loeber
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Harris 2005-05-26 20:21:47 UTC
3GP audio support (amr_nb) is missing in MPlayer.

Added yet another USE flag (as if they're isn't enough already ;), called '3gp'.

Patch attached...
Comment 1 Rick Harris 2005-05-26 20:42:25 UTC
OK, bugs.gentoo.org is broken again & presently can't accept attachment
submissions so here it is in text format:

--- mplayer-1.0_pre7.ebuild.orig        2005-05-27 12:47:15.000000000 +0930
+++ mplayer-1.0_pre7.ebuild     2005-05-27 12:49:36.000000000 +0930
@@ -5,7 +5,7 @@
 inherit eutils flag-o-matic kernel-mod

 RESTRICT="nostrip"
-IUSE="3dfx 3dnow 3dnowext aac aalib alsa altivec arts bidi bl cpudetection
+IUSE="3dfx 3dnow 3dnowext 3gp aac aalib alsa altivec arts bidi bl cpudetection
 custom-cflags debug dga divx4linux doc dts dvb cdparanoia directfb dvd dv
 dvdread edl encode esd fbcon gif ggi gtk i8x0 ipv6 jack joystick jpeg libcaca
 lirc live lzo mad matroska matrox mmx mmxext mythtv nas nls nvidia vorbis opengl
@@ -24,7 +24,11 @@
        mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2
        mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2
        svga? ( http://mplayerhq.hu/~alex/svgalib_helper-${SVGV}-mplayer.tar.bz2 )
-       gtk? ( mirror://mplayer/Skin/Blue-${BLUV}.tar.bz2 )"
+       gtk? ( mirror://mplayer/Skin/Blue-${BLUV}.tar.bz2 )
+       3gp? ( ftp://ftp.3gpp.org/specs/2005-03/Rel-5/26_series/26073-530.zip
+                ftp://ftp.3gpp.org/specs/2005-03/Rel-5/26_series/26104-540.zip
+                ftp://ftp.3gpp.org/specs/2005-03/Rel-5/26_series/26204-530.zip )"
+

 # Only install Skin if GUI should be build (gtk as USE flag)
 DESCRIPTION="Media Player for Linux"
@@ -149,6 +153,28 @@

        cd ${S}

+        if use 3gp; then
+       unpack 26073-530.zip
+       unpack 26104-540.zip
+       unpack 26204-530.zip
+        cd libavcodec
+        mkdir amr
+        mkdir amr_float
+        mkdir amrwb_float
+        cd amr
+        unzip ${S}/26073-530_ANSI_C_source_code.zip > /dev/null
+        mv c-code/* ./
+        cd ../amr_float
+        unzip ${S}/26104-540_ANSI_C_source_code.zip > /dev/null
+        mv c-code/* ./
+        cd ../amrwb_float
+        unzip ${S}/26204-530_ANSI-C_source_code.zip > /dev/null
+        mv c-code/* ./
+        cd ../../
+        sed -e 's:-pedantic-errors -I. $(CFLAGS_$(MODE)) -D$(VAD):-I.
$(CFLAGS_$(MODE)) -D$(VAD) -DMMS_IO:' \
+                -i 'libavcodec/amr/makefile' || die "enable 3gp/amr sed failed"
+        fi
+
        #adds mythtv support to mplayer
        use mythtv && epatch ${FILESDIR}/mplayer-mythtv.patch
Comment 2 Thomas Loeber 2005-07-09 12:57:47 UTC
Created attachment 63026 [details, diff]
amr patch for mplayer-1.0_pre7.ebuild

Works for me (on x86). Thanks!
I try to attach the patch so people don't have to use "patch -l".
Comment 3 Matthias Schwarzott gentoo-dev 2006-08-30 07:51:11 UTC
Can this be closed, as mplayer-1.0_pre8-r1 and mplayer-1.0_pre20060810 have amr-support.
Comment 4 Luca Barbato gentoo-dev 2006-08-30 15:22:34 UTC
Sorry