# Copyright 1999-2010 Gentoo Foundation# Distributed under the terms of the GNU General Public License v2# $Header: Exp $EAPI="2"inherit eutils toolchain-funcsDESCRIPTION="REPLEX remuxes MPEG-2 transport streams into program streams"HOMEPAGE="http://www.metzlerbros.org/dvb/"SRC_URI="http://www.metzlerbros.org/dvb/${P}.tar.gz"LICENSE="GPL-2"SLOT="0"KEYWORDS="~amd64 ~ppc ~x86"IUSE=""src_prepare() { epatch "${FILESDIR}/replex-0.1.6.8-yacoto.diff"}src_compile() { tc-export CC emake CFLAGS="${CFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DVERSION=\\\"${PV}\\\"" LDFLAGS="${LDFLAGS}"|| die "emake failed"}src_install() { dobin replex dodoc README CHANGES TODO}