| 1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2006 Gentoo Foundation |
| 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-video/streamdvd/streamdvd-0.4-r1.ebuild,v 1.10 2005/10/30 23:24:02 flameeyes Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/media-video/streamdvd/streamdvd-0.4-r1.ebuild,v 1.11 2006/03/15 13:37:18 flameeyes Exp $ |
|
|
4 | |
|
|
5 | inherit eutils toolchain-funcs |
| 4 | |
6 | |
| 5 | DESCRIPTION="fast tool to backup Video DVDs 'on the fly'" |
7 | DESCRIPTION="fast tool to backup Video DVDs 'on the fly'" |
| 6 | HOMEPAGE="http://www.badabum.de/streamdvd.html" |
8 | HOMEPAGE="http://www.badabum.de/streamdvd.html" |
| 7 | SRC_URI="http://www.badabum.de/down/${P}.tar.gz" |
9 | SRC_URI="http://www.badabum.de/down/${P}.tar.gz" |
| 8 | |
10 | |
| … | |
… | |
| 23 | S="${WORKDIR}/StreamDVD-${PV}" |
25 | S="${WORKDIR}/StreamDVD-${PV}" |
| 24 | |
26 | |
| 25 | src_unpack() { |
27 | src_unpack() { |
| 26 | unpack ${A} |
28 | unpack ${A} |
| 27 | cd ${S} || die |
29 | cd ${S} || die |
| 28 | sed -i "s: -g -Wall : ${CFLAGS} :" Makefile |
|
|
| 29 | use X && epatch "${FILESDIR}/${P}.patch" |
30 | use X && epatch "${FILESDIR}/${P}.patch" |
|
|
31 | |
|
|
32 | epatch "${FILESDIR}/${P}-makefile.patch" |
|
|
33 | epatch "${FILESDIR}/${P}-gcc41.patch" |
| 30 | } |
34 | } |
| 31 | |
35 | |
| 32 | src_compile() { |
36 | src_compile() { |
| 33 | emake all addon || die # compile also optional packages |
37 | emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" all addon || die # compile also optional packages |
| 34 | } |
38 | } |
| 35 | |
39 | |
| 36 | src_install() { |
40 | src_install() { |
| 37 | dobin streamdvd streamanalyze |
41 | dobin streamdvd streamanalyze |
| 38 | newbin lsdvd lsdvd-streamdvd # patched lsdvd, rename to avoid conflict with media-video/lsdvd |
42 | newbin lsdvd lsdvd-streamdvd # patched lsdvd, rename to avoid conflict with media-video/lsdvd |