summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Tolboom <ryan@gentoo.org>2001-12-11 19:39:34 +0000
committerRyan Tolboom <ryan@gentoo.org>2001-12-11 19:39:34 +0000
commitd97b0e64e7a25daf4b51b093df7f8624a6461fc1 (patch)
tree80c5722d804d5bc390df02aaa23a4e8fc093e544 /media-video/mjpegtools
parentforce clean restart of devfsd, else the error message is not displayed (diff)
downloadgentoo-2-d97b0e64e7a25daf4b51b093df7f8624a6461fc1.tar.gz
gentoo-2-d97b0e64e7a25daf4b51b093df7f8624a6461fc1.tar.bz2
gentoo-2-d97b0e64e7a25daf4b51b093df7f8624a6461fc1.zip
Added mmx option to use jpeg-mmx
Diffstat (limited to 'media-video/mjpegtools')
-rw-r--r--media-video/mjpegtools/files/digest-mjpegtools-1.5.20011611-r12
-rw-r--r--media-video/mjpegtools/mjpegtools-1.5.20011611-r1.ebuild81
2 files changed, 83 insertions, 0 deletions
diff --git a/media-video/mjpegtools/files/digest-mjpegtools-1.5.20011611-r1 b/media-video/mjpegtools/files/digest-mjpegtools-1.5.20011611-r1
new file mode 100644
index 000000000000..a494cea5c2c4
--- /dev/null
+++ b/media-video/mjpegtools/files/digest-mjpegtools-1.5.20011611-r1
@@ -0,0 +1,2 @@
+MD5 eb3116c8b09d601a07c4afa5a2f7ee22 mjpegtools-1.5-20011611.tar.gz 1019904
+MD5 963b168854e8f74590c71aaaaedf5177 quicktime4linux-1.4-patched.tar.gz 561152
diff --git a/media-video/mjpegtools/mjpegtools-1.5.20011611-r1.ebuild b/media-video/mjpegtools/mjpegtools-1.5.20011611-r1.ebuild
new file mode 100644
index 000000000000..cb13b1c1eb8e
--- /dev/null
+++ b/media-video/mjpegtools/mjpegtools-1.5.20011611-r1.ebuild
@@ -0,0 +1,81 @@
+# 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>
+# $Header: /var/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-20011611.tar.gz
+S=${WORKDIR}/${PN}-1.5-20011611
+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
+ >=sys-devel/automake-1.5-r1
+ >=media-libs/jpeg-6b
+ 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}
+ 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
+
+}
+
+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
+
+}