# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-video/noad/noad-0.6.0-r2.ebuild,v 1.3 2006/03/31 17:42:53 hd_brummy Exp $ inherit eutils DESCRIPTION="Mark commercial Breaks in VDR records" HOMEPAGE="http://www.rgob.com/members/theNoad/" SRC_URI="http://www.freepgs.com/${PN}/${P}.tar.bz2 mirror://vdrfiles/${PN}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="ffmpeg imagemagick" DEPEND="media-libs/libmpeg2 media-video/vdr ffmpeg? ( >=media-video/ffmpeg-0.4.8 ) imagemagick? ( >=media-gfx/imagemagick-6.2.4.2-r1 )" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}-directoryfix.diff sed -i -e "s:-g -O3:$CXXFLAGS:" configure } src_compile() { econf \ $(use_with ffmpeg) \ $(use_with imagemagick magick) \ --with-tools \ --with-mpeginlude=/usr/include/mpeg2dec emake || die "emake faild" } src_install() { dobin noad showindex use imagemagick && dobin markpics dodoc COPYING README INSTALL # example scripts are installed as dokumentation dodoc allnewnoad allnoad allnoadnice clearlogos noadifnew stat2html if has_version ">=media-tv/gentoo-vdr-scripts-0.1_alpha8" then insinto /etc/conf.d doins ${FILESDIR}/vdraddon.noad insinto /usr/lib/vdr/record doins ${FILESDIR}/record-20-noad.sh insinto /etc/vdr/reccmds doins ${FILESDIR}/reccmds.noad.conf fi } pkg_postinst() { echo einfo "Congratulations, you have just installed noad!," einfo "To integrate noad in VDR you should do this:" echo if has_version ">=media-tv/gentoo-vdr-scripts-0.1_alpha8" then einfo "start and set Parameter in /etc/conf.d/vdraddon.noad" else einfo "Add in /etc/conf.d/vdr:" echo einfo "RECORD=\"noad nice --statisticfile=/video/noad.stat\" " fi echo einfo "More infos can be found on vdr.gentoo.de" echo einfo "Note: You can use here all pararmeters for noad," einfo "please look in the documentation of noad." echo }