Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added fixed gmerlin-avdecoder [pro-audio]

  • Loading branch information...
commit c2a46ab2b913fd8232eccd8c59ad473ca8960a0f 1 parent f6c9479
Anders Evenrud authored
15 media-libs/gmerlin-avdecoder/ChangeLog
View
@@ -0,0 +1,15 @@
+# ChangeLog for media-libs/gmerlin-avdecoder
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*gmerlin-avdecoder-1.0.2 (25 Feb 2010)
+
+ 25 Feb 2010; Frieder Buerzele <evermind@tuxfamily.org>
+ -gmerlin-avdecoder-1.0.0.ebuild, +gmerlin-avdecoder-1.0.2.ebuild:
+ bumped
+
+ 19 Mar 2009; Marcin Deranek <gringo@tuxfamily.org>
+ +files/gmerlin-avdecoder-cflags.patch, +gmerlin-avdecoder-0.1.8.ebuild,
+ +gmerlin-avdecoder-1.0.0.ebuild:
+ Initial bump
+
2  media-libs/gmerlin-avdecoder/Manifest
View
@@ -0,0 +1,2 @@
+DIST gmerlin-avdecoder-0.1.8.tar.gz 1345582 RMD160 4c15c9d9306453130a4610aa06ad411dd7c65745 SHA1 bebb25094a984638de90a8520d83f26dd72aa6ef SHA256 2f561f792d26d9829e7a0fec54c5d05f6e733e864e7354c14232a6e93b0e024f
+DIST gmerlin-avdecoder-1.0.2.tar.gz 1417636 RMD160 fd5ae10966390cb6039c84609cf399ea4eb2e2f1 SHA1 1b8bf93b28a14be9cedbdd405bee1dc1f3738c4f SHA256 1f8337d09b8d6ffaccf2e54e63ae5a1bfe8b36d633818f837d79f88ee2d6120e
11 media-libs/gmerlin-avdecoder/files/gmerlin-avdecoder-cflags.patch
View
@@ -0,0 +1,11 @@
+--- configure.ac.orig 2008-07-22 14:08:36.000000000 +0200
++++ configure.ac 2008-11-03 19:07:50.227050371 +0100
+@@ -374,7 +374,7 @@
+ dnl Build optimization flags
+ dnl
+
+-LQT_OPT_CFLAGS($host_cpu, ["-O3 -funroll-all-loops -ffast-math"])
++LQT_OPT_CFLAGS($host_cpu, [""])
+ AC_SUBST(OPT_CFLAGS)
+
+ dnl
91 media-libs/gmerlin-avdecoder/gmerlin-avdecoder-0.1.8.ebuild
View
@@ -0,0 +1,91 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit autotools eutils
+
+DESCRIPTION="Gmerlin A/V decoder library"
+HOMEPAGE="http://gmerlin.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN%%-*}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="a52 aac cdio debug doc dts ffmpeg flac mad mjpeg mpeg musepack nls plugins
+png samba speex theora tiff vorbis dvd"
+
+DEPEND=">=media-libs/gavl-1.0.0
+ a52? ( media-libs/a52dec )
+ aac? ( media-libs/faad2 )
+ cdio? ( dev-libs/libcdio )
+ doc? ( app-doc/doxygen )
+ dts? ( media-libs/libdca )
+ dvd? ( media-libs/libdvdread )
+ ffmpeg? ( media-video/ffmpeg )
+ flac? ( media-libs/flac )
+ mad? ( media-libs/libmad )
+ mjpeg? ( media-video/mjpegtools )
+ mpeg? ( media-libs/libmpeg2 )
+ musepack? ( media-libs/libmpcdec )
+ plugins? ( >=media-libs/gmerlin-0.3.8 )
+ png? ( media-libs/libpng )
+ samba? ( net-fs/samba )
+ speex? ( media-libs/speex )
+ theora? ( media-libs/libtheora )
+ tiff? ( media-libs/tiff )
+ vorbis? ( media-libs/libvorbis )
+ "
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # new ffmpeg-API
+ sed -i -e 's|->bits_per_sample|->bits_per_coded_sample|g' \
+ lib/demux_ffmpeg.c lib/audio_ffmpeg.c lib/video_ffmpeg.c
+ # Patch for >=ffmpeg-0.4.9_pre20081003
+ if has_version ">=media-video/ffmpeg-0.4.9_pre20081003"; then
+ sed -i -e 's|offset_t|int64_t|g' lib/demux_ffmpeg.c
+ fi
+
+ epatch "${FILESDIR}"/${PN}-cflags.patch
+ eautoreconf
+}
+
+src_compile() {
+ econf \
+ --without-cpuflags \
+ --disable-dependency-tracking \
+ --docdir=/usr/share/doc/${PF}/html \
+ $(use_enable a52 liba52) \
+ $(use_enable aac faad2) \
+ $(use_enable cdio libcdio) \
+ $(use_enable debug) \
+ $(use_with doc doxygen) \
+ $(use_enable dts libdca) \
+ $(use_enable dvd dvdread) \
+ $(use_enable ffmpeg libavcodec) \
+ $(use_enable ffmpeg libpostproc) \
+ $(use_enable ffmpeg libswscale) \
+ $(use_enable ffmpeg libavformat) \
+ $(use_enable flac) \
+ $(use_enable mad) \
+ $(use_enable mjpeg mjpegtools) \
+ $(use_enable mpeg libmpeg2) \
+ $(use_enable musepack) \
+ $(use_enable plugins gmerlin) \
+ $(use_enable png libpng) \
+ $(use_enable samba) \
+ $(use_enable speex) \
+ $(use_enable theora) \
+ $(use_enable tiff libtiff) \
+ $(use_enable vorbis) \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed."
+ dodoc AUTHORS NEWS README INSTALL
+}
90 media-libs/gmerlin-avdecoder/gmerlin-avdecoder-1.0.2.ebuild
View
@@ -0,0 +1,90 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit autotools eutils
+
+DESCRIPTION="Gmerlin A/V decoder library"
+HOMEPAGE="http://gmerlin.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN%%-*}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="a52 aac cdio debug doc dts ffmpeg flac mad mjpeg mpeg musepack nls plugins
+png samba speex theora tiff vorbis dvd"
+
+DEPEND=">=media-libs/gavl-1.1.0
+ a52? ( media-libs/a52dec )
+ aac? ( media-libs/faad2 )
+ cdio? ( dev-libs/libcdio )
+ doc? ( app-doc/doxygen )
+ dts? ( media-libs/libdca )
+ dvd? ( media-libs/libdvdread )
+ ffmpeg? ( media-video/ffmpeg )
+ flac? ( media-libs/flac )
+ mad? ( media-libs/libmad )
+ mjpeg? ( media-video/mjpegtools )
+ mpeg? ( media-libs/libmpeg2 )
+ plugins? ( >=media-libs/gmerlin-0.3.8 )
+ png? ( media-libs/libpng )
+ samba? ( net-fs/samba )
+ speex? ( media-libs/speex )
+ theora? ( media-libs/libtheora )
+ tiff? ( media-libs/tiff )
+ vorbis? ( media-libs/libvorbis )
+ "
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # new ffmpeg-API
+ sed -i -e 's|->bits_per_sample|->bits_per_coded_sample|g' \
+ lib/demux_ffmpeg.c lib/audio_ffmpeg.c lib/video_ffmpeg.c
+ # Patch for >=ffmpeg-0.4.9_pre20081003
+ if has_version ">=media-video/ffmpeg-0.4.9_pre20081003"; then
+ sed -i -e 's|offset_t|int64_t|g' lib/demux_ffmpeg.c
+ fi
+
+ epatch "${FILESDIR}"/${PN}-cflags.patch
+ eautoreconf
+}
+
+src_compile() {
+ econf \
+ --without-cpuflags \
+ --disable-dependency-tracking \
+ --docdir=/usr/share/doc/${PF}/html \
+ $(use_enable a52 liba52) \
+ $(use_enable aac faad2) \
+ $(use_enable cdio libcdio) \
+ $(use_enable debug) \
+ $(use_with doc doxygen) \
+ $(use_enable dts libdca) \
+ $(use_enable dvd dvdread) \
+ $(use_enable ffmpeg libavcodec) \
+ $(use_enable ffmpeg libpostproc) \
+ $(use_enable ffmpeg libswscale) \
+ $(use_enable ffmpeg libavformat) \
+ $(use_enable flac) \
+ $(use_enable mad) \
+ $(use_enable mjpeg mjpegtools) \
+ $(use_enable mpeg libmpeg2) \
+ $(use_enable musepack) \
+ $(use_enable plugins gmerlin) \
+ $(use_enable png libpng) \
+ $(use_enable samba) \
+ $(use_enable speex) \
+ $(use_enable theora) \
+ $(use_enable tiff libtiff) \
+ $(use_enable vorbis) \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed."
+ dodoc AUTHORS NEWS README INSTALL
+}
9 media-libs/gmerlin-avdecoder/metadata.xml
View
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>proaudio@tuxfamily.org</email>
+ <name>pro-audio overlay team</name>
+ </maintainer>
+</pkgmetadata>
Please sign in to comment.
Something went wrong with that request. Please try again.