diff options
Diffstat (limited to 'media-video/mjpegtools/mjpegtools-1.6.0.ebuild')
-rw-r--r-- | media-video/mjpegtools/mjpegtools-1.6.0.ebuild | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/media-video/mjpegtools/mjpegtools-1.6.0.ebuild b/media-video/mjpegtools/mjpegtools-1.6.0.ebuild new file mode 100644 index 000000000000..67e34641ec22 --- /dev/null +++ b/media-video/mjpegtools/mjpegtools-1.6.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2002 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.6.0.ebuild,v 1.1 2002/05/26 13:01:29 seemant Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="Tools for MJPEG video" +SRC_URI="http://download.sourceforge.net/mjpeg/${P}.tar.gz + quicktime? ( http://download.sourceforge.net/mjpeg/quicktime4linux-1.4-patched.tar.gz )" +HOMEPAGE="http://mjpeg.sourceforge.net/" + +RDEPEND="media-libs/jpeg-6b + media-libs/libpng + =x11-libs/gtk+-1.2* + X? ( x11-base/xfree ) + sdl? ( media-libs/libsdl ) + avi? ( media-video/avifile )" + +DEPEND="${RDEPEND} + media-libs/libmovtar-0.1.2 + quicktime? ( media-libs/quicktime4linux ) + mmx? ( >=media-libs/jpeg-mmx-1.1.2 )" + +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 + + use gtk \ + && myconf="${myconf} --with-gtk-prefix=/usr" + + use X \ + && myconf="${myconf} --with-x" \ + || myconf="${myconf} --without-x" + + use mmx \ + && myconf="${myconf} --with-jpeg-mmx=/usr/include/jpeg-mmx --enable-mmx-accel" + + use avi \ + && myconf="${myconf} --without-aviplay" + + use quicktime && ( \ + myconf="${myconf} --with-quicktime=${WORKDIR}/quicktime4linux-1.4-patch" + cd ${WORKDIR}/quicktime4linux-1.4-patch + ./configure || die + make || die + ) + + cd ${S} + econf ${myconf} || die + + emake || die + +} + +src_install () { + + make \ + prefix=${D}/usr \ + mandir=${D}/usr/share/man \ + install || die + + dodoc mjpeg_howto.txt + +} |