summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Tolboom <ryan@gentoo.org>2001-12-20 17:13:40 +0000
committerRyan Tolboom <ryan@gentoo.org>2001-12-20 17:13:40 +0000
commitdba355e0ed89dae4ed3781a59130f924e6f6d9d2 (patch)
treee709ceae4513dc4eb8122885a39809afa52bc2b0 /media-video/mjpegtools
parentAdding digest for xfree-4.1.0-r6 (diff)
downloadhistorical-dba355e0ed89dae4ed3781a59130f924e6f6d9d2.tar.gz
historical-dba355e0ed89dae4ed3781a59130f924e6f6d9d2.tar.bz2
historical-dba355e0ed89dae4ed3781a59130f924e6f6d9d2.zip
Newer version along with a fix for building without X
Diffstat (limited to 'media-video/mjpegtools')
-rw-r--r--media-video/mjpegtools/files/digest-mjpegtools-1.5.200112142
-rw-r--r--media-video/mjpegtools/mjpegtools-1.5.20011214.ebuild91
2 files changed, 93 insertions, 0 deletions
diff --git a/media-video/mjpegtools/files/digest-mjpegtools-1.5.20011214 b/media-video/mjpegtools/files/digest-mjpegtools-1.5.20011214
new file mode 100644
index 000000000000..1db7761f8902
--- /dev/null
+++ b/media-video/mjpegtools/files/digest-mjpegtools-1.5.20011214
@@ -0,0 +1,2 @@
+MD5 5d135cf2c19ccedb2c1d96bfdcf372b9 mjpegtools-1.5-20011214.tar.gz 1019904
+MD5 963b168854e8f74590c71aaaaedf5177 quicktime4linux-1.4-patched.tar.gz 561152
diff --git a/media-video/mjpegtools/mjpegtools-1.5.20011214.ebuild b/media-video/mjpegtools/mjpegtools-1.5.20011214.ebuild
new file mode 100644
index 000000000000..3baf1a6a5715
--- /dev/null
+++ b/media-video/mjpegtools/mjpegtools-1.5.20011214.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2001 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Author Achim Gottinger <achim@gentoo.org>
+# Heavily modified by Ryan Tolboom <ryan@gentoo.org>
+# /space/gentoo/cvsroot/gentoo-x86/media-video/mjpegtools/mjpegtools-1.5.20011611-r1.ebuild,v 1.1 2001/12/11 19:39:34 ryan Exp
+
+A=${PN}-1.5-20011214.tar.gz
+S=${WORKDIR}/${PN}-1.5-20011214
+DESCRIPTION="Tools for MJPEG video"
+SRC_URI="http://download.sourceforge.net/mjpeg/${A}
+ quicktime? ( http://download.sourceforge.net/mjpeg/quicktime4linux-1.4-patched.tar.gz )"
+HOMEPAGE="http://mjpeg.sourceforge.net/"
+
+DEPEND="virtual/glibc
+ >=media-libs/jpeg-6b
+ >=sys-devel/automake-1.5b
+ gtk? ( >=x11-libs/gtk+-1.2.10 )
+ sdl? ( >=media-libs/libsdl-1.2.2 )
+ X? ( >=x11-base/xfree-4.1.0 )
+ quicktime? ( >=media-libs/libpng-1.0.12 )
+ avifile? ( >=media-video/avifile-0.6.0.20011130 )
+ libmovtar? ( >=media-libs/libmovtar-0.1.2 )
+ mmx? ( >=media-libs/jpeg-mmx-1.1.2 )"
+
+RDEPEND="virtual/glibc
+ >=media-libs/jpeg-6b
+ gtk? ( >=x11-libs/gtk+-1.2.10-r4 )
+ sdl? ( >=media-libs/libsdl-1.2.2 )
+ X? ( >=x11-base/xfree-4.1.0 )
+ avifile? ( >=media-video/avifile-0.6.0.20011130 )"
+
+src_unpack() {
+
+ unpack ${A}
+ if [ "`use quicktime`" ] ; then
+ cd quicktime4linux-1.4-patch
+ cp libmjpeg.h libmjpeg.h.orig
+ sed -e "s:\"jpeg/jpeglib.h\":<jpeglib.h>:" libmjpeg.h.orig > libmjpeg.h
+ cp jpeg_old.h jpeg_old.h.orig
+ sed -e "s:\"jpeg/jpeglib.h\":<jpeglib.h>:" jpeg_old.h.orig > jpeg_old.h
+ fi
+
+ # if we aren't using X we have to change lavplay so it doesn't have hardware accel
+ if [ -z "`use X`" ] ; then
+ cd ${S}/lavtools
+ cp Makefile.in Makefile.in.orig
+ sed -e 's:-lX11::' Makefile.in.orig > Makefile.in
+ cp liblavplay.c liblavplay.c.orig
+ sed -e 's:^#include <X11/.*::' liblavplay.c.orig | sed -e 's:HAVE_V4L:HAVE_V4L_DUMMY:' > liblavplay.c
+ fi
+}
+
+src_compile() {
+
+ local myconf
+
+ if [ "`use gtk`" ] ; then
+ myconf="${myconf} --with-gtk-prefix=/usr"
+ else
+ myconf="${myconf} --with-gtk-prefix=/"
+ fi
+ if [ "`use X`" ] ; then
+ myconf="${myconf} --with-x"
+ else
+ myconf="${myconf} --without-x"
+ fi
+ if [ "`use mmx`" ] ; then
+ myconf="${myconf} --with-jpeg-mmx=/usr/include/jpeg-mmx --enable-mmx-accel"
+ fi
+ if [ -z "`use avifile`" ] ; then
+ myconf="${myconf} --without-aviplay"
+ fi
+ if [ "`use quicktime`" ] ; then
+ myconf="${myconf} --with-quicktime=${WORKDIR}/quicktime4linux-1.4-patch"
+ cd ${WORKDIR}/quicktime4linux-1.4-patch
+ try ./configure
+ try make
+ fi
+
+ cd ${S}
+ try ./configure ${myconf}
+ try make
+
+}
+
+src_install () {
+
+ try make prefix=${D}/usr mandir=${D}/usr/share/man install
+ dodoc mjpeg_howto.txt
+
+}