summaryrefslogtreecommitdiff
blob: f6f233c087ba7e22cbc0defa55b5169e98476695 (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
33
34
35
36
37
38
39
40
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/m2vrequantizer/m2vrequantizer-0.0.1.ebuild,v 1.4 2011/01/22 23:55:50 hd_brummy Exp $

EAPI="2"

REQUANT="M2VRequantizer"
REQUANT_VN="20030925"
JAU_FILE="repackmpeg2-v0.9"

DESCRIPTION="Tool to requantize/shrink mpeg2 videos"
HOMEPAGE="http://www.jausoft.com"
SRC_URI="mirror://vdrfiles/requant/${JAU_FILE}.tar.bz2"

KEYWORDS="x86 ~amd64"
SLOT="0"
LICENSE="GPL-2"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"

S=${WORKDIR}/${JAU_FILE}

src_unpack() {
	unpack ${A}
	tar xjf "${S}"/${REQUANT}-${REQUANT_VN}.tar.bz2
}

src_compile() {

	cd "${WORKDIR}/${REQUANT}-${REQUANT_VN}/src"
	gcc -c ${CFLAGS} main.c -o requant.o
	gcc ${CFLAGS} ${LDFLAGS} requant.o -o requant -lm
}

src_install() {

	dobin "${WORKDIR}/${REQUANT}-${REQUANT_VN}/src/requant"
}