Initial import into the tree. Closes bug #29455. Thanks to Kasper Souren and Kai...
authorChris White <chriswhite@gentoo.org>
Sat, 20 Nov 2004 02:03:17 +0000 (02:03 +0000)
committerChris White <chriswhite@gentoo.org>
Sat, 20 Nov 2004 02:03:17 +0000 (02:03 +0000)
media-video/freej/ChangeLog [new file with mode: 0644]
media-video/freej/Manifest [new file with mode: 0644]
media-video/freej/files/digest-freej-0.7 [new file with mode: 0644]
media-video/freej/files/freej-0.7-errno.patch [new file with mode: 0644]
media-video/freej/files/freej-0.7-fastmemcpy.patch [new file with mode: 0644]
media-video/freej/files/freej-0.7-v4l.patch [new file with mode: 0644]
media-video/freej/freej-0.7.ebuild [new file with mode: 0644]
media-video/freej/metadata.xml [new file with mode: 0644]

diff --git a/media-video/freej/ChangeLog b/media-video/freej/ChangeLog
new file mode 100644 (file)
index 0000000..a956293
--- /dev/null
@@ -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 (file)
index 0000000..6e4d39a
--- /dev/null
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 f8881c3927d02eb557bd23eff579db39 freej-0.7.ebuild 1419
+MD5 194354179c380c5dab0498d715fae079 metadata.xml 230
+MD5 de4d09b398f7e877aa54ec63fdcc2164 ChangeLog 616
+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
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.6 (GNU/Linux)
+
+iD8DBQFBnqX1FdQwWVoAgN4RAr3vAKC7RG+XXsmzpUKknbnp5cWOTpk5DgCfS+/i
+VI8Nq2B+veUFRGYeyxpJnbE=
+=mGn2
+-----END PGP SIGNATURE-----
diff --git a/media-video/freej/files/digest-freej-0.7 b/media-video/freej/files/digest-freej-0.7
new file mode 100644 (file)
index 0000000..095ec0b
--- /dev/null
@@ -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 (file)
index 0000000..3db9a13
--- /dev/null
@@ -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 (file)
index 0000000..972e491
--- /dev/null
@@ -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 (file)
index 0000000..a33fc97
--- /dev/null
@@ -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 (file)
index 0000000..aa90328
--- /dev/null
@@ -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 (file)
index 0000000..6fb162b
--- /dev/null
@@ -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>