You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-plugins/vdr-osdpip/vdr-osdpip-0.0.10.ebuild

39 lines
1.1 KiB

# Copyright 1999-2011 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.5 2011/04/06 17:16:53 idl0r Exp $
inherit vdr-plugin flag-o-matic
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
>=virtual/ffmpeg-0.4.9"
RDEPEND="${DEPEND}"
#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 ">=virtual/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
# UINT64_C is needed by ffmpeg headers
append-flags -D__STDC_CONSTANT_MACROS
}