summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2006-03-05 12:08:57 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2006-03-05 12:08:57 +0000
commite926c7ac5d0799324f36601486c76959598418e8 (patch)
tree018b988ec54d224b51f41bac2b7ecbcb81e97475 /media-plugins/vdr-analogtv
parentversion bump, bug #83418 (diff)
downloadhistorical-e926c7ac5d0799324f36601486c76959598418e8.tar.gz
historical-e926c7ac5d0799324f36601486c76959598418e8.tar.bz2
historical-e926c7ac5d0799324f36601486c76959598418e8.zip
imported ebuild from gentoo.de
Package-Manager: portage-2.1_pre5-r4
Diffstat (limited to 'media-plugins/vdr-analogtv')
-rw-r--r--media-plugins/vdr-analogtv/ChangeLog14
-rw-r--r--media-plugins/vdr-analogtv/Manifest34
-rw-r--r--media-plugins/vdr-analogtv/files/digest-vdr-analogtv-0.9.379
-rw-r--r--media-plugins/vdr-analogtv/files/vdr-analogtv-0.9.37-asm-fpic.diff94
-rw-r--r--media-plugins/vdr-analogtv/files/vdr-analogtv-0.9.37-gcc-3.4.diff86
-rw-r--r--media-plugins/vdr-analogtv/files/vdr-analogtv-0.9.37-includes.diff11
-rw-r--r--media-plugins/vdr-analogtv/files/vdr-analogtv-0.9.37-kpes_to_ts.patch28
-rw-r--r--media-plugins/vdr-analogtv/metadata.xml12
-rw-r--r--media-plugins/vdr-analogtv/vdr-analogtv-0.9.37.ebuild61
9 files changed, 349 insertions, 0 deletions
diff --git a/media-plugins/vdr-analogtv/ChangeLog b/media-plugins/vdr-analogtv/ChangeLog
new file mode 100644
index 000000000000..c67e08b654ad
--- /dev/null
+++ b/media-plugins/vdr-analogtv/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for media-plugins/vdr-analogtv
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-analogtv/ChangeLog,v 1.1 2006/03/05 12:08:57 zzam Exp $
+
+*vdr-analogtv-0.9.37 (05 Mar 2006)
+
+ 05 Mar 2006; Matthias Schwarzott <zzam@gentoo.org>
+ +files/vdr-analogtv-0.9.37-asm-fpic.diff,
+ +files/vdr-analogtv-0.9.37-gcc-3.4.diff,
+ +files/vdr-analogtv-0.9.37-includes.diff,
+ +files/vdr-analogtv-0.9.37-kpes_to_ts.patch, +metadata.xml,
+ +vdr-analogtv-0.9.37.ebuild:
+ imported ebuild from gentoo.de
+
diff --git a/media-plugins/vdr-analogtv/Manifest b/media-plugins/vdr-analogtv/Manifest
new file mode 100644
index 000000000000..6d1d1e494798
--- /dev/null
+++ b/media-plugins/vdr-analogtv/Manifest
@@ -0,0 +1,34 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 c1b73dbfe00caf12726b5e34d13703ef ChangeLog 570
+RMD160 e01bb63f370b0913bd14d3111187ceda9c95d2b4 ChangeLog 570
+SHA256 3ba12694c3cd502d6e2ebd40ca02f39d6343421baf3190ab05edb3e69806188d ChangeLog 570
+MD5 a3a2bb500ad9c5636353dd16ddd7584a files/digest-vdr-analogtv-0.9.37 765
+RMD160 7ce1c2065f09de581e73ec6ffe9a4efa7ddadb01 files/digest-vdr-analogtv-0.9.37 765
+SHA256 a7e1944c5b68e2704f4ff09b4a3d513c475bea9a32cee358d0e737996866f81d files/digest-vdr-analogtv-0.9.37 765
+MD5 aadc269e760f01aca9684087026c7a18 files/vdr-analogtv-0.9.37-asm-fpic.diff 2720
+RMD160 d724da30a6f1a23f5c804b2fe83c72b6fc485034 files/vdr-analogtv-0.9.37-asm-fpic.diff 2720
+SHA256 7a79a4f7b0106681f94e0909e86dc1696aedc0c2e0b5ee7aed9b55d3dd5f7915 files/vdr-analogtv-0.9.37-asm-fpic.diff 2720
+MD5 6266d1cd92dd7a446cd70c92c22af9d5 files/vdr-analogtv-0.9.37-gcc-3.4.diff 2586
+RMD160 7599d040c5e3c5ab3394ab6bc0d52fab34cfa055 files/vdr-analogtv-0.9.37-gcc-3.4.diff 2586
+SHA256 3428b60d695aff4b3ef725b11f959beb1ebb11b1a38c1a2454753d72c16b7dff files/vdr-analogtv-0.9.37-gcc-3.4.diff 2586
+MD5 a9c0ced3696620529db50b5168b434bf files/vdr-analogtv-0.9.37-includes.diff 319
+RMD160 a2a37619632b11421d6e88ff92b3e45c61805e45 files/vdr-analogtv-0.9.37-includes.diff 319
+SHA256 2ab9547310066b878a8953b72c7106349511943f0bfb48fb782e2953b432e33c files/vdr-analogtv-0.9.37-includes.diff 319
+MD5 ba8f685344a8d264fc7ed5dbf3ad9d94 files/vdr-analogtv-0.9.37-kpes_to_ts.patch 697
+RMD160 88004b1c86715ffc0621677de659e9f92281343b files/vdr-analogtv-0.9.37-kpes_to_ts.patch 697
+SHA256 6509f51e531f2a3dd29283117184e2278e529d97e6896747897f36aeef2b1498 files/vdr-analogtv-0.9.37-kpes_to_ts.patch 697
+MD5 7c30ab7528b676a1a0c2737821599b29 metadata.xml 300
+RMD160 c85719cef743cf573efe73f8f84564292085c91c metadata.xml 300
+SHA256 29feafd8b7177b65f8bd92553ac96779d9a91e3b7b4eeecfb0924eb7b6979587 metadata.xml 300
+MD5 cd8d4ef9bf0a348a476955db69a1bc17 vdr-analogtv-0.9.37.ebuild 1379
+RMD160 c8f89aed063134290bb535af2d231784c7d249a5 vdr-analogtv-0.9.37.ebuild 1379
+SHA256 53dbae9dab61beadcdb681348f21b18fe464b0a517b0c4caf1e0b916ff0590aa vdr-analogtv-0.9.37.ebuild 1379
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.2.1 (GNU/Linux)
+
+iD8DBQFECtUKZfSl1Kp5KmoRAgBLAKDnFfYPUX39hdIVjD+D+V6ME3UBYwCeIFzo
+6dMkJBL71w3dQvkwwiH0xrM=
+=Jy+v
+-----END PGP SIGNATURE-----
diff --git a/media-plugins/vdr-analogtv/files/digest-vdr-analogtv-0.9.37 b/media-plugins/vdr-analogtv/files/digest-vdr-analogtv-0.9.37
new file mode 100644
index 000000000000..a0fa7670dd20
--- /dev/null
+++ b/media-plugins/vdr-analogtv/files/digest-vdr-analogtv-0.9.37
@@ -0,0 +1,9 @@
+MD5 231be3f61d221910c8ec22e2d8a20d31 rte-09sep04-mp1e-gentoo.patch 47530
+RMD160 310214a1fab00704f7f161827b7317d2589825be rte-09sep04-mp1e-gentoo.patch 47530
+SHA256 ce0883c6f63d1bffe1005b8aaa606299621507d9b66051ee3407e9bd856ed7b5 rte-09sep04-mp1e-gentoo.patch 47530
+MD5 0644432ceea1c0c078fa2ba58ce8c0aa rte-09sep04.tar.bz2 445379
+RMD160 5f1260d56d7e7a439f0fece3afef4964aa4099c4 rte-09sep04.tar.bz2 445379
+SHA256 e324523f34adb3e4e074e592237fee795b12f54210e0cee09b2eda5910cfd921 rte-09sep04.tar.bz2 445379
+MD5 8fc4a9dfd43ac6f95b0c30d3c39214f3 vdr-analogtv-0.9.37.tar.bz2 140955
+RMD160 4a641c2cbb7ac54cc044bf4be85e59b853a9ec62 vdr-analogtv-0.9.37.tar.bz2 140955
+SHA256 5a29800121d33f0c02870554d25a55a64b4e34aab9e5afa4b65eb42df5b4b59a vdr-analogtv-0.9.37.tar.bz2 140955
diff --git a/media-plugins/vdr-analogtv/files/vdr-analogtv-0.9.37-asm-fpic.diff b/media-plugins/vdr-analogtv/files/vdr-analogtv-0.9.37-asm-fpic.diff
new file mode 100644
index 000000000000..93e4638c05cf
--- /dev/null
+++ b/media-plugins/vdr-analogtv/files/vdr-analogtv-0.9.37-asm-fpic.diff
@@ -0,0 +1,94 @@
+diff -ru analogtv-0.9.37.orig/cpu_accel.c analogtv-0.9.37/cpu_accel.c
+--- analogtv-0.9.37.orig/cpu_accel.c 2005-05-13 23:49:38.000000000 +0200
++++ analogtv-0.9.37/cpu_accel.c 2005-05-13 23:57:49.000000000 +0200
+@@ -50,30 +50,44 @@
+ int AMD;
+ uint32_t caps;
+
++#if !defined(PIC) && !defined(__PIC__)
+ #define cpuid(op,eax,ebx,ecx,edx) \
+- asm ("cpuid" \
++ __asm__ ("cpuid" \
+ : "=a" (eax), \
+ "=b" (ebx), \
+ "=c" (ecx), \
+ "=d" (edx) \
+ : "a" (op) \
+ : "cc")
++#else /* PIC version : save ebx */
++#define cpuid(op,eax,ebx,ecx,edx) \
++ __asm__ ("push %%ebx\n\t" \
++ "cpuid\n\t" \
++ "movl %%ebx,%1\n\t" \
++ "pop %%ebx" \
++ : "=a" (eax), \
++ "=r" (ebx), \
++ "=c" (ecx), \
++ "=d" (edx) \
++ : "a" (op) \
++ : "cc")
++#endif
+
+
+- asm ("pushfl\n\t"
+- "pushfl\n\t"
+- "popl %0\n\t"
+- "movl %0,%1\n\t"
+- "xorl $0x200000,%0\n\t"
+- "pushl %0\n\t"
+- "popfl\n\t"
+- "pushfl\n\t"
+- "popl %0\n\t"
+- "popfl"
+- : "=a" (eax),
+- "=b" (ebx)
+- :
+- : "cc");
++ __asm__ ("pushf\n\t"
++ "pushf\n\t"
++ "pop %0\n\t"
++ "movl %0,%1\n\t"
++ "xorl $0x200000,%0\n\t"
++ "push %0\n\t"
++ "popf\n\t"
++ "pushf\n\t"
++ "pop %0\n\t"
++ "popf"
++ : "=r" (eax),
++ "=r" (ebx)
++ :
++ : "cc");
+
+ if (eax == ebx) /* no cpuid */
+ return 0;
+diff -ru analogtv-0.9.37-orig/cpuinfo.c analogtv-0.9.37/cpuinfo.c
+--- analogtv-0.9.37-orig/cpuinfo.c 2005-12-11 16:51:06.713174250 +0100
++++ analogtv-0.9.37/cpuinfo.c 2005-12-11 16:51:13.665608750 +0100
+@@ -62,15 +62,18 @@
+ unsigned int edx;
+ } cpuid_regs_t;
+
+-static cpuid_regs_t cpuid( int func ) {
+- cpuid_regs_t regs;
+-#define CPUID ".byte 0x0f, 0xa2; "
+- asm("movl %4,%%eax; " CPUID
+- "movl %%eax,%0; movl %%ebx,%1; movl %%ecx,%2; movl %%edx,%3"
+- : "=m" (regs.eax), "=m" (regs.ebx), "=m" (regs.ecx), "=m" (regs.edx)
+- : "g" (func)
+- : "%eax", "%ebx", "%ecx", "%edx");
+- return regs;
++static cpuid_regs_t
++cpuid(int func) {
++ cpuid_regs_t regs;
++#define CPUID ".byte 0x0f, 0xa2; "
++ __asm__("push %%ebx; "
++ "movl %4,%%eax; " CPUID
++ "movl %%eax,%0; movl %%ebx,%1; movl %%ecx,%2; movl %%edx,%3; "
++ "pop %%ebx"
++ : "=m" (regs.eax), "=m" (regs.ebx), "=m" (regs.ecx), "=m" (regs.edx)
++ : "g" (func)
++ : "%eax", "%ecx", "%edx");
++ return regs;
+ }
+
+ #define X86_VENDOR_INTEL 0
diff --git a/media-plugins/vdr-analogtv/files/vdr-analogtv-0.9.37-gcc-3.4.diff b/media-plugins/vdr-analogtv/files/vdr-analogtv-0.9.37-gcc-3.4.diff
new file mode 100644
index 000000000000..a7e87770f115
--- /dev/null
+++ b/media-plugins/vdr-analogtv/files/vdr-analogtv-0.9.37-gcc-3.4.diff
@@ -0,0 +1,86 @@
+diff -ru analogtv-0.9.37-orig/memcpy.c analogtv-0.9.37/memcpy.c
+--- analogtv-0.9.37-orig/memcpy.c 2005-12-11 16:51:06.713174250 +0100
++++ analogtv-0.9.37/memcpy.c 2005-12-11 16:51:13.665608750 +0100
+@@ -168,9 +168,11 @@
+ /* SSE note: i tried to move 128 bytes a time instead of 64 but it
+ didn't make any measureable difference. i'm using 64 for the sake of
+ simplicity. [MF] */
+-static void * sse_memcpy(void * to, const void * from, size_t len)
++static void * sse_memcpy(void * into, const void * infrom, size_t len)
+ {
+ void *retval;
++ unsigned char* to=(unsigned char*)into;
++ unsigned char* from=(unsigned char*)infrom;
+ size_t i;
+ retval = to;
+
+@@ -211,8 +213,8 @@
+ "movntps %%xmm2, 32(%1)\n"
+ "movntps %%xmm3, 48(%1)\n"
+ :: "r" (from), "r" (to) : "memory");
+- ((const unsigned char *)from)+=64;
+- ((unsigned char *)to)+=64;
++ *from+=64;
++ *to+=64;
+ }
+ else
+ /*
+@@ -233,8 +235,8 @@
+ "movntps %%xmm2, 32(%1)\n"
+ "movntps %%xmm3, 48(%1)\n"
+ :: "r" (from), "r" (to) : "memory");
+- ((const unsigned char *)from)+=64;
+- ((unsigned char *)to)+=64;
++ *from+=64;
++ *to+=64;
+ }
+ /* since movntq is weakly-ordered, a "sfence"
+ * is needed to become ordered again. */
+@@ -249,9 +251,11 @@
+ return retval;
+ }
+
+-static void * mmx_memcpy(void * to, const void * from, size_t len)
++static void * mmx_memcpy(void * into, const void * infrom, size_t len)
+ {
+ void *retval;
++ unsigned char* to=(unsigned char*)into;
++ unsigned char* from=(unsigned char*)infrom;
+ size_t i;
+ retval = to;
+
+@@ -288,8 +292,8 @@
+ "movq %%mm6, 48(%1)\n"
+ "movq %%mm7, 56(%1)\n"
+ :: "r" (from), "r" (to) : "memory");
+- ((const unsigned char *)from)+=64;
+- ((unsigned char *)to)+=64;
++ *from+=64;
++ *to+=64;
+ }
+ __asm__ __volatile__ ("emms":::"memory");
+ }
+@@ -300,9 +304,11 @@
+ return retval;
+ }
+
+-void * mmx2_memcpy(void * to, const void * from, size_t len)
++void * mmx2_memcpy(void * into, const void * infrom, size_t len)
+ {
+ void *retval;
++ unsigned char* to=(unsigned char*)into;
++ unsigned char* from=(unsigned char*)infrom;
+ size_t i;
+ retval = to;
+
+@@ -349,8 +355,8 @@
+ "movntq %%mm6, 48(%1)\n"
+ "movntq %%mm7, 56(%1)\n"
+ :: "r" (from), "r" (to) : "memory");
+- ((const unsigned char *)from)+=64;
+- ((unsigned char *)to)+=64;
++ *from+=64;
++ *to+=64;
+ }
+ /* since movntq is weakly-ordered, a "sfence"
+ * is needed to become ordered again. */
diff --git a/media-plugins/vdr-analogtv/files/vdr-analogtv-0.9.37-includes.diff b/media-plugins/vdr-analogtv/files/vdr-analogtv-0.9.37-includes.diff
new file mode 100644
index 000000000000..dc4b322d0e4c
--- /dev/null
+++ b/media-plugins/vdr-analogtv/files/vdr-analogtv-0.9.37-includes.diff
@@ -0,0 +1,11 @@
+diff -u -Nru analogtv-0.9.37-orig/device.h analogtv-0.9.37/device.h
+--- analogtv-0.9.37-orig/device.h 2005-10-13 09:55:09.000000000 +0200
++++ analogtv-0.9.37/device.h 2005-10-13 09:55:49.000000000 +0200
+@@ -15,6 +15,7 @@
+ #define DEVICE_H
+
+ #include <vdr/plugin.h>
++#include <vdr/device.h>
+
+ #include "redremote.h"
+
diff --git a/media-plugins/vdr-analogtv/files/vdr-analogtv-0.9.37-kpes_to_ts.patch b/media-plugins/vdr-analogtv/files/vdr-analogtv-0.9.37-kpes_to_ts.patch
new file mode 100644
index 000000000000..fcc3932ddf85
--- /dev/null
+++ b/media-plugins/vdr-analogtv/files/vdr-analogtv-0.9.37-kpes_to_ts.patch
@@ -0,0 +1,28 @@
+--- analogtv-0.9.37/player-analogtv.c.orig 2005-07-07 16:32:50.000000000 +0200
++++ analogtv-0.9.37/player-analogtv.c 2005-07-07 16:36:30.000000000 +0200
+@@ -28,7 +28,6 @@
+ #include <sys/soundcard.h>
+
+ #include <transform.h>
+-extern void pes_in_ts(p2p *p);
+ #undef MIN
+ #undef MAX
+
+@@ -828,7 +827,7 @@
+ pes++;
+ spes += r;
+
+- get_pes(buffer, r, &p2t, pes_in_ts); // PES -> TS
++ kpes_to_ts(&p2t, buffer, r);
+ }
+ }
+ }
+@@ -937,7 +936,7 @@
+ spes += r;
+
+ if (r > 0)
+- get_pes(buffer, r, &p2t, pes_in_ts); // PES -> TS
++ kpes_to_ts(&p2t, buffer, r); // PES -> TS
+ }
+ }
+
diff --git a/media-plugins/vdr-analogtv/metadata.xml b/media-plugins/vdr-analogtv/metadata.xml
new file mode 100644
index 000000000000..3aaff838ed8d
--- /dev/null
+++ b/media-plugins/vdr-analogtv/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>media-tv</herd>
+<maintainer>
+<email>zzam@gentoo.org</email>
+<name>Matthias Schwarzott</name>
+</maintainer>
+<longdescription lang="en">
+</longdescription>
+</pkgmetadata>
+
diff --git a/media-plugins/vdr-analogtv/vdr-analogtv-0.9.37.ebuild b/media-plugins/vdr-analogtv/vdr-analogtv-0.9.37.ebuild
new file mode 100644
index 000000000000..e13c65c68a79
--- /dev/null
+++ b/media-plugins/vdr-analogtv/vdr-analogtv-0.9.37.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-analogtv/vdr-analogtv-0.9.37.ebuild,v 1.1 2006/03/05 12:08:57 zzam Exp $
+
+inherit vdr-plugin
+
+#S=${WORKDIR}/${VDRPLUGIN}-${PV}
+DESCRIPTION="Video Disk Recorder ${VDRPLUGIN} Plugin"
+HOMEPAGE="http://akool.bei.t-online.de/"
+SRC_URI="http://www.akool.homepage.t-online.de/analogtv/download/vdr-${VDRPLUGIN}-${PV}.tar.bz2
+ http://www.akool.homepage.t-online.de/analogtv/download/rte-09sep04.tar.bz2
+ mirror://vdrfiles/${PN}/rte-09sep04-mp1e-gentoo.patch"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=">=media-video/vdr-1.2.6
+ media-libs/libdvb"
+
+src_unpack()
+{
+ vdr-plugin_src_unpack
+
+ cd ${S}
+ ln -s ../rte-09sep04 rte
+
+ sed -i -e "s:^INCLUDES += :INCLUDES += -I/usr/include/libdvb :" Makefile
+
+ epatch ${DISTDIR}/rte-09sep04-mp1e-gentoo.patch
+
+ epatch ${FILESDIR}/${P}-gcc-3.4.diff
+ epatch ${FILESDIR}/${P}-asm-fpic.diff
+ epatch ${FILESDIR}/${P}-kpes_to_ts.patch
+ epatch ${FILESDIR}/${P}-includes.diff
+}
+
+src_compile()
+{
+ cd rte/mp1e
+ libtoolize --copy --force
+
+ econf || die "econf failed"
+ emake || die "emake failed"
+
+ cd ${S}
+ vdr-plugin_src_compile
+}
+
+src_install()
+{
+ vdr-plugin_src_install
+
+ cd ${S}/rte/mp1e
+ doman mp1e.1
+ docinto mp1e
+ dodoc COPYING BUGS ChangeLog
+ insinto /usr/bin
+ dobin mp1e
+}