# Copyright 1999-2003 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" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" DEPEND=">=media-video/mythtv-${PV}" src_unpack() { unpack ${A} for i in `grep -lr "usr/local" "${S}"` do sed -i -e "s:/usr/local:/usr:" "${i}" done } src_compile() { cpu="`get-flag march`" if [ ! -z "${cpu}" ] ; then myconf="${myconf} --cpu=${cpu}" sed -i -e "s:pentiumpro:${cpu}:g" "${S}/settings.pro" fi qmake -o "${S}/Makefile" "${S}/${PN}.pro" emake || die "emake failed" } src_install () { make INSTALL_ROOT="${D}" install || die dodoc README }