summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris White <chriswhite@gentoo.org>2004-11-20 02:03:17 +0000
committerChris White <chriswhite@gentoo.org>2004-11-20 02:03:17 +0000
commit51a7cf1e86cd1b37aa55c0a4db512ff268b0fb85 (patch)
treebed456af70a5a6a35809c4ef621b782b9ea792f4
parentNew version 2.6.0.1, as requested in bug #68201. Marked 2.4.2 x86, and remove... (diff)
downloadgentoo-2-51a7cf1e86cd1b37aa55c0a4db512ff268b0fb85.tar.gz
gentoo-2-51a7cf1e86cd1b37aa55c0a4db512ff268b0fb85.tar.bz2
gentoo-2-51a7cf1e86cd1b37aa55c0a4db512ff268b0fb85.zip
Initial import into the tree. Closes bug #29455. Thanks to Kasper Souren and Kai Zimmermann for the ebuild submission. Thanks to lu_zero and Tester for helping me unbreak a few things!
-rw-r--r--media-video/freej/ChangeLog13
-rw-r--r--media-video/freej/Manifest5
-rw-r--r--media-video/freej/files/digest-freej-0.71
-rw-r--r--media-video/freej/files/freej-0.7-errno.patch30
-rw-r--r--media-video/freej/files/freej-0.7-fastmemcpy.patch57
-rw-r--r--media-video/freej/files/freej-0.7-v4l.patch10
-rw-r--r--media-video/freej/freej-0.7.ebuild59
-rw-r--r--media-video/freej/metadata.xml8
8 files changed, 183 insertions, 0 deletions
diff --git a/media-video/freej/ChangeLog b/media-video/freej/ChangeLog
new file mode 100644
index 000000000000..a9562936387e
--- /dev/null
+++ b/media-video/freej/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for media-video/freej
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/freej/ChangeLog,v 1.1 2004/11/20 02:03:17 chriswhite Exp $
+
+*freej-0.7 (20 Nov 2004)
+
+ 20 Nov 2004; Chris White <chriswhite@gentoo.org> +metadata.xml,
+ +files/freej-0.7-errno.patch, +files/freej-0.7-fastmemcpy.patch,
+ +files/freej-0.7-v4l.patch, +freej-0.7.ebuild:
+ Initial import into the tree. Closes bug #29455. Thanks to Kasper
+ Souren and Kai Zimmermann for the ebuild submission. Thanks to lu_zero
+ and Tester for helping me unbreak a few things!
+
diff --git a/media-video/freej/Manifest b/media-video/freej/Manifest
new file mode 100644
index 000000000000..ebeb3ee05840
--- /dev/null
+++ b/media-video/freej/Manifest
@@ -0,0 +1,5 @@
+MD5 896aaf0d18a218e9e19cafa92d2394be freej-0.7.ebuild 1334
+MD5 e5641ba29fa7159b9329480d820c1a9a files/digest-freej-0.7 61
+MD5 0060b7f722bb0974847d296ef8403ebd files/freej-0.7-errno.patch 741
+MD5 e6a0544f5627d624dcc6d314be575360 files/freej-0.7-fastmemcpy.patch 2554
+MD5 fbc899d7160ab39e47de15461a90b452 files/freej-0.7-v4l.patch 256
diff --git a/media-video/freej/files/digest-freej-0.7 b/media-video/freej/files/digest-freej-0.7
new file mode 100644
index 000000000000..095ec0bc0a52
--- /dev/null
+++ b/media-video/freej/files/digest-freej-0.7
@@ -0,0 +1 @@
+MD5 193f3295f72cb8aff5d939e69b69acce freej-0.7.tar.gz 716439
diff --git a/media-video/freej/files/freej-0.7-errno.patch b/media-video/freej/files/freej-0.7-errno.patch
new file mode 100644
index 000000000000..3db9a1371603
--- /dev/null
+++ b/media-video/freej/files/freej-0.7-errno.patch
@@ -0,0 +1,30 @@
+--- src/freej.cpp.old 2004-11-20 00:27:32.301971896 +0900
++++ src/freej.cpp 2004-11-20 00:27:44.193164160 +0900
+@@ -25,6 +25,7 @@
+ #include <string.h>
+ #include <unistd.h>
+ #include <assert.h>
++#include <cerrno>
+
+ #include <context.h>
+
+--- src/console.cpp.old 2004-11-20 00:31:48.678996664 +0900
++++ src/console.cpp 2004-11-20 00:32:06.817239232 +0900
+@@ -23,6 +23,7 @@
+ #include <sys/stat.h>
+ #include <unistd.h>
+ #include <dirent.h>
++#include <cerrno>
+
+ #include <signal.h>
+ #include <slang.h>
+--- src/scroll_layer.cpp.old 2004-11-20 00:40:18.799446568 +0900
++++ src/scroll_layer.cpp 2004-11-20 00:41:16.402689544 +0900
+@@ -23,6 +23,7 @@
+ */
+
+ #include <stdlib.h>
++#include <cerrno>
+
+ #include <scroll_layer.h>
+ #include <context.h>
diff --git a/media-video/freej/files/freej-0.7-fastmemcpy.patch b/media-video/freej/files/freej-0.7-fastmemcpy.patch
new file mode 100644
index 000000000000..972e4910ad3d
--- /dev/null
+++ b/media-video/freej/files/freej-0.7-fastmemcpy.patch
@@ -0,0 +1,57 @@
+--- src/fastmemcpy.cpp.old 2004-05-12 02:10:17.000000000 +0900
++++ src/fastmemcpy.cpp 2004-11-20 01:08:53.775730544 +0900
+@@ -229,8 +229,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 = (unsigned char *)from + 64;
++ to = (unsigned char *)to + 64;
+ }
+ #ifdef HAVE_MMX2
+ /* since movntq is weakly-ordered, a "sfence"
+@@ -316,8 +316,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 = (unsigned char *)from + 64;
++ to = (unsigned char *)to + 64;
+ }
+ __asm__ __volatile__ ("emms":::"memory");
+ }
+@@ -403,8 +403,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 = (unsigned char *)from + 64;
++ to = (unsigned char *) to + 64;
+ }
+ /* since movntq is weakly-ordered, a "sfence"
+ * is needed to become ordered again. */
+@@ -461,8 +461,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 = (unsigned char *)from + 64;
++ to = (unsigned char *) to + 64;
+ }
+ else
+ /*
+@@ -483,8 +483,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 = (unsigned char *)from + 64;
++ to = (unsigned char *)to + 64;
+ }
+ /* since movntq is weakly-ordered, a "sfence"
+ * is needed to become ordered again. */
diff --git a/media-video/freej/files/freej-0.7-v4l.patch b/media-video/freej/files/freej-0.7-v4l.patch
new file mode 100644
index 000000000000..a33fc97b1a06
--- /dev/null
+++ b/media-video/freej/files/freej-0.7-v4l.patch
@@ -0,0 +1,10 @@
+--- src/include/v4l_layer.h.old 2004-11-20 09:57:14.136543184 +0900
++++ src/include/v4l_layer.h 2004-11-20 09:57:27.002587248 +0900
+@@ -24,6 +24,7 @@
+
+
+ #include <linux/types.h>
++#include <sys/time.h>
+ #include <linux/videodev.h>
+ #include <context.h>
+
diff --git a/media-video/freej/freej-0.7.ebuild b/media-video/freej/freej-0.7.ebuild
new file mode 100644
index 000000000000..aa9032884b21
--- /dev/null
+++ b/media-video/freej/freej-0.7.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/freej/freej-0.7.ebuild,v 1.1 2004/11/20 02:03:17 chriswhite Exp $
+
+inherit eutils
+
+DESCRIPTION="A unified framework for realtime video processing"
+HOMEPAGE="http://freej.dyne.org/"
+SRC_URI="ftp://freej.dyne.org/freej/releases/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="avi v4l debug"
+
+DEPEND=">=media-libs/libsdl-1.2.0
+ >=media-libs/libpng-1.2.0
+ >=media-libs/freetype-2
+ !avi? ( media-video/ffmpeg )
+ avi? ( >=media-video/avifile-0.7.16 )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # fixes missing errno defines
+ epatch ${FILESDIR}/${P}-errno.patch
+
+ # fixes bad hacking with type casting
+ epatch ${FILESDIR}/${P}-fastmemcpy.patch
+
+ # fixes some v4l defines
+ epatch ${FILESDIR}/${P}-v4l.patch
+}
+
+src_compile() {
+
+ # patch the doc path
+ sed -i -e "s:doc/\${PACKAGE}-\${VERSION}:share/doc/${PF}:" Makefile.in || die "doc path patching failed!"
+
+ econf \
+ $(use_enable avi) \
+ $(use_enable v4l) \
+ $(use_enable debug) \
+ || die "econf failed!"
+
+ # give us custom CFLAGS
+ sed -i \
+ -e "s:^CFLAGS = .*:CFLAGS = -D_REENTRANT ${CFLAGS}:" \
+ -e "s:^CXXFLAGS = .*:CXXFLAGS = -D_REENTRANT ${CXXFLAGS}:" ${S}/src/Makefile \
+ || die "Could not patch custom CFLAGS!"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ einstall || die
+ dodoc FreeJ_Tutorial.pdf
+}
diff --git a/media-video/freej/metadata.xml b/media-video/freej/metadata.xml
new file mode 100644
index 000000000000..6fb162be6d97
--- /dev/null
+++ b/media-video/freej/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>media-video</herd>
+<maintainer>
+ <email>chriswhite@gentoo.org</email>
+</maintainer>
+</pkgmetadata>