| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-tv/dvbstream/dvbstream-0.5.ebuild,v 1.5 2007/11/27 10:16:17 zzam Exp $
|
| 4 |
|
| 5 |
inherit eutils
|
| 6 |
|
| 7 |
IUSE=""
|
| 8 |
|
| 9 |
DESCRIPTION="simple command line tools for DVB cards. Includes a RTP multicast stream server"
|
| 10 |
HOMEPAGE="http://sourceforge.net/projects/dvbtools"
|
| 11 |
SRC_URI="mirror://sourceforge/dvbtools/${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="x86"
|
| 16 |
|
| 17 |
RDEPEND="dev-lang/perl"
|
| 18 |
DEPEND="virtual/linuxtv-dvb-headers"
|
| 19 |
|
| 20 |
src_unpack() {
|
| 21 |
unpack ${A}
|
| 22 |
|
| 23 |
#epatch ${FILESDIR}/${P}-gentoo.diff
|
| 24 |
cd "${S}"
|
| 25 |
sed -i Makefile \
|
| 26 |
-e 's:$(CFLAGS):$(CFLAGS) $(CPPFLAGS):' \
|
| 27 |
-e '/CFLAGS.*=.*-g -Wall -O2/s:-g -Wall -O2::' \
|
| 28 |
-e '/CFLAGS.*=/s:CFLAGS:CPPFLAGS:' \
|
| 29 |
-e 's:-I \.\./DVB/include:-I /usr/include:'
|
| 30 |
|
| 31 |
cp TELNET/svdrpsend.pl dvbstream-send.pl
|
| 32 |
cp TELNET/README README.telnet
|
| 33 |
|
| 34 |
sed -e 's:\./svdrpsend.pl:dvbstream-send.pl:' \
|
| 35 |
-i TELNET/*.sh
|
| 36 |
|
| 37 |
sed -e 's:^DUMPRTP=.*$:DUMPRTP=dumprtp:' \
|
| 38 |
-e 's:^TS2ES=.*$:TS2ES=ts2es:' \
|
| 39 |
-i *.sh
|
| 40 |
}
|
| 41 |
|
| 42 |
src_install() {
|
| 43 |
dobin dvbstream dumprtp rtpfeed ts_filter dvbstream-send.pl
|
| 44 |
|
| 45 |
dodoc README*
|
| 46 |
|
| 47 |
insinto /usr/share/doc/${PF}/tune
|
| 48 |
doins TELNET/*.sh
|
| 49 |
|
| 50 |
insinto /usr/share/doc/${PF}/multicast
|
| 51 |
doins *.sh
|
| 52 |
}
|