# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-osdpip/vdr-osdpip-0.0.10.ebuild,v 1.3 2009/09/22 05:28:32 aballier Exp $ inherit vdr-plugin DESCRIPTION="VDR plugin: Show another channel in the OSD" HOMEPAGE="http://www.magoa.net/linux" SRC_URI="http://home.arcor.de/andreas.regel/files/osdpip/${P}.tgz" KEYWORDS="~amd64 x86" SLOT="0" LICENSE="GPL-2" IUSE="" DEPEND=">=media-video/vdr-1.4.0 >=media-libs/libmpeg2-0.4.0 >=media-video/ffmpeg-0.4.9 " #PATCHES=("${FILESDIR}/${P}-vdr-1.5.0.diff") PATCHES=( "${FILESDIR}/${P}-avutil50.patch" ) src_unpack() { vdr-plugin_src_unpack sed -i Makefile \ -e 's+^FFMDIR.*$+FFMDIR = /usr/include/ffmpeg+' \ -e 's+-I\$(FFMDIR)/libavcodec+-I$(FFMDIR)+' \ -e 's+-L\$(FFMDIR)/libavcodec++' if has_version ">=media-video/ffmpeg-0.4.9_p20080326" ; then #epatch "${FILESDIR}/${P}-ffmpeg-0.4.9_p20080326-new_header.diff" sed -i Makefile -e 's/#WITH_NEW_FFMPEG_HEADERS/WITH_NEW_FFMPEG_HEADERS/' fi }