summaryrefslogtreecommitdiffstats
path: root/abs/extra/m2vrequantiser
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/m2vrequantiser')
-rw-r--r--abs/extra/m2vrequantiser/PKGBUILD33
-rw-r--r--abs/extra/m2vrequantiser/m2vrequantiser.install7
-rw-r--r--abs/extra/m2vrequantiser/m2vrequantiser_makefile.patch8
3 files changed, 48 insertions, 0 deletions
diff --git a/abs/extra/m2vrequantiser/PKGBUILD b/abs/extra/m2vrequantiser/PKGBUILD
new file mode 100644
index 0000000..e8f7f9f
--- /dev/null
+++ b/abs/extra/m2vrequantiser/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Michael Hanson <mihanson@linhes.org>
+pkgname=m2vrequantiser
+_pkgname=M2VRequantiser
+pkgver=1.1
+pkgrel=1
+pkgdesc="Requantize MPEG-2 streams without recompressing."
+arch=('i686')
+url="http://www.metakine.com/products/dvdremaster/developers.html"
+license=('GPLv2')
+source=(http://launchpad.net/${pkgname}/trunk/${pkgver}/+download/${_pkgname}-v${pkgver}.tar.gz \
+ ${pkgname}_makefile.patch)
+install=${pkgname}.install
+
+build() {
+ cd ${srcdir}/${_pkgname}-v${pkgver}
+
+ patch -Np0 < ${srcdir}/${pkgname}_makefile.patch || return 1
+
+ make || return 1
+}
+
+package() {
+ cd ${srcdir}/${_pkgname}-v${pkgver}
+
+ make DESTDIR=${pkgdir} install || return 1
+
+ install -D -m644 ${srcdir}/${_pkgname}-v${pkgver}/README.txt \
+ ${pkgdir}/usr/share/doc/${_pkgname}/README
+}
+
+# vim:set ts=2 sw=2 et:
+md5sums=('be53dccc0cb373bbb9a6741f58c34ba4'
+ '69dd99c694d597a9716b532577d581ea')
diff --git a/abs/extra/m2vrequantiser/m2vrequantiser.install b/abs/extra/m2vrequantiser/m2vrequantiser.install
new file mode 100644
index 0000000..ae58f4e
--- /dev/null
+++ b/abs/extra/m2vrequantiser/m2vrequantiser.install
@@ -0,0 +1,7 @@
+post_install {
+ ln -s /usr/bin/M2VRquantiser /usr/bin/m2vrequantiser
+}
+
+post_remove {
+ rm -f /usr/bin/m2vrequantiser
+}
diff --git a/abs/extra/m2vrequantiser/m2vrequantiser_makefile.patch b/abs/extra/m2vrequantiser/m2vrequantiser_makefile.patch
new file mode 100644
index 0000000..bca0d58
--- /dev/null
+++ b/abs/extra/m2vrequantiser/m2vrequantiser_makefile.patch
@@ -0,0 +1,8 @@
+--- Makefile.orig 2011-04-01 00:24:08.000000000 +0000
++++ Makefile 2011-04-01 01:00:03.000000000 +0000
+@@ -1,4 +1,4 @@
+-PREFIX ?= /usr/local
++PREFIX ?= $(DESTDIR)/usr
+ CC = gcc
+ CFLAGS ?= -O2 -g -funroll-loops -frename-registers
+ CFLAGS += -D_LARGEFILE_SOURCE -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_REENTRANT