blob: e7d607277c1c73fd22bc1c42491f05ad360c014a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
MY_P="${PN/m2vr/M2VR}-20060306"
DESCRIPTION="Tool to requantize mpeg2 videos"
HOMEPAGE="http://www.metakine.com/products/dvdremaster/modules.html"
SRC_URI="mirror://vdrfiles/requant/${MY_P}.tgz"
KEYWORDS="~amd64 ~x86"
SLOT="0"
LICENSE="GPL-2"
S="${WORKDIR}/M2VRequantiser"
src_prepare() {
default
sed -i "s:#elif defined(__i386__):#elif defined(__i386__) || defined(__amd64__):" main.c || die
}
src_compile() {
$(tc-getCC) -c ${CFLAGS} main.c -o requant.o || die
$(tc-getCC) ${CFLAGS} ${LDFLAGS} requant.o -o requant -lm || die
}
src_install() {
dobin requant
}
|