| 1 |
# Copyright 1999-2008 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-video/m2vrequantizer/m2vrequantizer-20060306.ebuild,v 1.8 2008/11/09 15:20:41 maekke Exp $
|
| 4 |
|
| 5 |
EAPI="2"
|
| 6 |
|
| 7 |
MY_P="${PN/m2vr/M2VR}-20060306"
|
| 8 |
|
| 9 |
DESCRIPTION="Tool to requantize mpeg2 videos"
|
| 10 |
HOMEPAGE="http://www.metakine.com/products/dvdremaster/modules.html"
|
| 11 |
SRC_URI="mirror://vdrfiles/requant/${MY_P}.tgz"
|
| 12 |
|
| 13 |
KEYWORDS="~amd64 x86"
|
| 14 |
SLOT="0"
|
| 15 |
LICENSE="GPL-2"
|
| 16 |
IUSE=""
|
| 17 |
|
| 18 |
DEPEND=""
|
| 19 |
RDEPEND="${DEPEND}"
|
| 20 |
|
| 21 |
S=${WORKDIR}/M2VRequantiser
|
| 22 |
|
| 23 |
src_prepare() {
|
| 24 |
|
| 25 |
sed -i "s:#elif defined(__i386__):#elif defined(__i386__) || defined(__amd64__):" main.c
|
| 26 |
}
|
| 27 |
|
| 28 |
src_compile() {
|
| 29 |
|
| 30 |
gcc -c ${CFLAGS} main.c -o requant.o
|
| 31 |
gcc ${CFLAGS} ${LDFLAGS} requant.o -o requant -lm
|
| 32 |
}
|
| 33 |
|
| 34 |
src_install() {
|
| 35 |
|
| 36 |
dobin requant
|
| 37 |
}
|