# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit flag-o-matic IUSE="" DESCRIPTION="Video player module for MythTV" HOMEPAGE="http://www.mythtv.org/" SRC_URI="http://www.mythtv.org/mc/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" DEPEND="media-video/mplayer >=media-video/mythtv-${PV}*" src_unpack() { unpack ${A} for i in `grep -lr 'usr/local' "${S}"` do cp -a "${i}" "${i}.orig" sed -e "s:/usr/local:/usr:" "${i}.orig" > "${i}" rm -f "${i}.orig" done } src_compile() { cpu="`get-flag march`" [ -n "${cpu}" ] && { cp -a "${S}/settings.pro" "${S}/settings.pro.orig" sed -e "s:pentiumpro:${cpu}:g" "${S}/settings.pro.orig" > "${S}/settings.pro" rm -f "${S}/settings.pro.orig" } qmake -o "${S}/Makefile" "${S}/${PN}.pro" emake } src_install () { make INSTALL_ROOT=${D} install || die dodoc README } pkg_postinst() { einfo "You should also modify /usr/share/mythtv/mythvideo-settings.txt" einfo "to fit your needs." }