# Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger # $Header: /var/cvsroot/gentoo-x86/media-video/mjpeg-tools/mjpeg-tools-1a.ebuild,v 1.8 2001/06/03 09:54:22 achim Exp $ P=mjpeg-tools-1a A="mjpeg_beta_1a.tar.gz quicktime4linux-1.1.9.tar.gz" S=${WORKDIR}/mjpeg_beta DESCRIPTION="Tools for MJPEG video" SRC_URI="http://download.sourceforge.net/mjpeg/${A} http://heroinewarrior.com/quicktime4linux-1.1.9.tar.gz" HOMEPAGE="http://mjpeg.sourceforge.net/" DEPEND="virtual/glibc >=dev-libs/glib-1.2.8 >=media-libs/libsdl-1.1.5 >=media-libs/jpeg-6b >=media-libs/libpng-1.0.7 alsa? ( >=media-libs/alsa-lib-0.5.10 ) " RDEPEND="virtual/glibc >=dev-libs/glib-1.2.8 >=media-libs/libsdl-1.1.5 >=media-libs/jpeg-6b >=media-libs/libpng-1.0.7" src_unpack() { unpack ${A} cd ${S} sed -e "s:-O2:${CFLAGS}:" ${FILESDIR}/Makefile > Makefile if [ "`use alsa`" ] ; then cp Makefile Makefile.orig sed -e "s:^#USE_ALSA:USE_ALSA:" Makefile.orig > Makefile fi if [ "`use nas`" ] ; then cp Makefile Makefile.orig sed -e "s:^L_FLAGS =:L_FLAGS = -L/usr/X11R6/lib -lXt:" Makefile.orig > Makefile fi cd aenc cp Makefile Makefile.orig sed -e "s:\.\./jpeg-6b-mmx/libjpeg\.a:-ljpeg:" \ -e "s:-O3 -m486:${CFLAGS}:" Makefile.orig > Makefile } src_compile() { cd ${S} try make cd aenc try make cd ../mpegjoin try make cd ../mplex try make } src_install () { cd ${S} into /usr dobin lavplay lavrec lavvideo aenc/aenc mpegjoin/mpegjoin mplex/mplex dodoc BUGS CHANGES COPYING HINTS PLANS README* TODO newdoc aenc/README README.aenc newdoc mpegjoin/README README.mpegjoin docinto mplex dodoc mplex/COPYING mplex/INSTRUCT mplex/README }