Lines 2-7
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-tv/dvbstream/dvbstream-0.7_pre20080516.ebuild,v 1.3 2012/04/29 15:01:15 tomka Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-tv/dvbstream/dvbstream-0.7_pre20080516.ebuild,v 1.3 2012/04/29 15:01:15 tomka Exp $ |
4 |
|
4 |
|
|
|
5 |
EAPI="5" |
6 |
|
5 |
inherit eutils |
7 |
inherit eutils |
6 |
|
8 |
|
7 |
IUSE="" |
9 |
IUSE="" |
Lines 18-41
Link Here
|
18 |
|
20 |
|
19 |
LICENSE="GPL-2" |
21 |
LICENSE="GPL-2" |
20 |
SLOT="0" |
22 |
SLOT="0" |
21 |
KEYWORDS="x86" |
23 |
KEYWORDS="x86 ~amd64" |
22 |
|
24 |
|
23 |
RDEPEND="dev-lang/perl" |
25 |
RDEPEND="dev-lang/perl |
|
|
26 |
${DEPEND}" |
24 |
DEPEND="virtual/linuxtv-dvb-headers" |
27 |
DEPEND="virtual/linuxtv-dvb-headers" |
25 |
|
28 |
|
26 |
src_unpack() { |
29 |
src_prepare() { |
27 |
unpack ${A} |
|
|
28 |
|
29 |
cd "${S}" |
30 |
epatch "${FILESDIR}/${P}-update.diff" |
30 |
epatch "${FILESDIR}/${P}-update.diff" |
31 |
epatch "${FILESDIR}/${PN}-0.7_pre20080302-telnet-port-switch.diff" |
31 |
epatch "${FILESDIR}/${PN}-0.7_pre20080302-telnet-port-switch.diff" |
32 |
|
32 |
|
33 |
cd "${S}" |
|
|
34 |
sed -i Makefile \ |
33 |
sed -i Makefile \ |
35 |
-e 's:$(CFLAGS):$(CFLAGS) $(CPPFLAGS):' \ |
34 |
-e 's:$(CFLAGS):$(CFLAGS) $(CPPFLAGS):' \ |
36 |
-e '/CFLAGS.*=.*-g -Wall -O2/s:-g -Wall -O2::' \ |
35 |
-e '/CFLAGS.*=.*-g -Wall -O2/s:-g -Wall -O2::' \ |
37 |
-e '/CFLAGS.*=/s:CFLAGS:CPPFLAGS:' \ |
36 |
-e '/CFLAGS.*=/s:CFLAGS:CPPFLAGS:' \ |
38 |
-e 's:-I \.\./DVB/include:-I /usr/include:' |
37 |
-e 's:-I \.\./DVB/include:-I /usr/include:' \ |
|
|
38 |
-e 's:$(CC):$(CC) $(LDFLAGS):g' |
39 |
|
39 |
|
40 |
cp TELNET/svdrpsend.pl dvbstream-send.pl |
40 |
cp TELNET/svdrpsend.pl dvbstream-send.pl |
41 |
cp TELNET/README README.telnet |
41 |
cp TELNET/README README.telnet |
Lines 48-53
Link Here
|
48 |
-i *.sh |
48 |
-i *.sh |
49 |
} |
49 |
} |
50 |
|
50 |
|
|
|
51 |
src_compile() { |
52 |
emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" |
53 |
} |
54 |
|
51 |
src_install() { |
55 |
src_install() { |
52 |
dobin dvbstream dumprtp rtpfeed ts_filter dvbstream-send.pl |
56 |
dobin dvbstream dumprtp rtpfeed ts_filter dvbstream-send.pl |
53 |
|
57 |
|