--- old/ffmpeg-0.4.9_p20050226-r5.ebuild 2005-06-18 00:00:00.000000000 +0200 +++ new/ffmpeg-0.4.9_p20050226-r5.ebuild 2005-06-18 00:00:00.000000000 +0200 @@ -12,14 +12,18 @@ S_STATIC=${S_BASE}-static S_SHARED=${S_BASE}-shared -SRC_URI="mirror://sourceforge/ffmpeg/${MY_P}.tbz2" +SRC_URI="mirror://sourceforge/ffmpeg/${MY_P}.tbz2 + amr? ( + http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-510.zip + http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip + )" LICENSE="GPL-2" SLOT="0" # ~alpha need to test aac useflag # ~ia64 ~arm ~mips ~hppa KEYWORDS="~alpha amd64 ~ia64 ppc ppc64 sparc x86" -IUSE="aac altivec debug doc ieee1394 a52 encode imlib mmx ogg vorbis oss threads truetype v4l xvid dts network zlib sdl" +IUSE="aac altivec amr debug doc ieee1394 a52 encode imlib mmx ogg vorbis oss threads truetype v4l xvid dts network zlib sdl" # Theora support has switch but there's no oggtheora.c sourcefile... @@ -63,6 +67,12 @@ epatch ${FILESDIR}/${PN}-a52.patch epatch ${FILESDIR}/${PN}-missing_links.patch + if use amr; then + mkdir ${S_BASE}/libavcodec/amr_float ${S_BASE}/libavcodec/amrwb_float + unzip ${WORKDIR}/26104-510_ANSI_C_source_code.zip -d ${S_BASE}/libavcodec/amr_float + unzip ${WORKDIR}/26204-510_ANSI-C_source_code.zip -d ${S_BASE}/libavcodec/amrwb_float + fi + cd ${S} cp -R ${S_BASE} ${S_STATIC} mv ${S_BASE} ${S_SHARED} @@ -104,6 +114,7 @@ $(use_enable zlib) \ $(use_enable sdl ffplay) \ $(use_enable aac faad) $(use_enable aac faac) --disable-faadbin \ + $(use_enable amr amr_nb) $(use_enable amr amr_wb) \ --enable-gpl \ --enable-pp \ --disable-opts"