media-video/m2vrequantizer: EAPI 7 bump and improve ebuild.
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>
Thu, 19 Jul 2018 07:20:44 +0000 (09:20 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Sat, 21 Jul 2018 21:56:05 +0000 (23:56 +0200)
Closes: https://github.com/gentoo/gentoo/pull/9283

media-video/m2vrequantizer/m2vrequantizer-0.0.2_pre20060306-r1.ebuild [new file with mode: 0644]

diff --git a/media-video/m2vrequantizer/m2vrequantizer-0.0.2_pre20060306-r1.ebuild b/media-video/m2vrequantizer/m2vrequantizer-0.0.2_pre20060306-r1.ebuild
new file mode 100644 (file)
index 0000000..e7d6072
--- /dev/null
@@ -0,0 +1,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
+}