diff options
author | Achim Gottinger <achim@gentoo.org> | 2000-08-15 17:34:07 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2000-08-15 17:34:07 +0000 |
commit | 89d7e34903f651af53c21dc3f73a7043e3d04c69 (patch) | |
tree | 8311437ae615babbb689031ccbbddedbf117bf03 /media-video | |
parent | *** empty log message *** (diff) | |
download | historical-89d7e34903f651af53c21dc3f73a7043e3d04c69.tar.gz historical-89d7e34903f651af53c21dc3f73a7043e3d04c69.tar.bz2 historical-89d7e34903f651af53c21dc3f73a7043e3d04c69.zip |
*** empty log message ***
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/mjpeg-tools/files/Makefile | 84 | ||||
-rw-r--r-- | media-video/mjpeg-tools/files/digest | 2 | ||||
-rw-r--r-- | media-video/mjpeg-tools/mjpeg-tools-1a.ebuild | 49 |
3 files changed, 135 insertions, 0 deletions
diff --git a/media-video/mjpeg-tools/files/Makefile b/media-video/mjpeg-tools/files/Makefile new file mode 100644 index 000000000000..937dae95dfcd --- /dev/null +++ b/media-video/mjpeg-tools/files/Makefile @@ -0,0 +1,84 @@ +# Makefile for lavtools + +M_OBJS = lavrec lavplay movtar_play + +LIBS= mjpeg/libmjpeg.a quicktime/quicktime/libquicktime.a +LIBS_AND_OPT= $(LIBS) -lpng -lz -ljpeg + +# uncomment if you want to use ALSA, +# the Advanced Linux Sound Architecture (http://alsa.jcu.cz) +USE_ALSA = -DUSE_ALSA -lasound + +#this is for software MJPEG playback, and GLib is used by movtarlib +L_FLAGS = -lpthread -lSDL -lglib + +CFLAGS = -O2 -I . -I buz -I quicktime/quicktime -I mjpeg -I movtar -I/usr/lib/glib/include + +all: lavrec lavplay lavvideo + +#the dependence files are those which have been adapted to MMX and therefore +#are suspect to change +./jpeg-6b-mmx/libjpeg.a: ./jpeg-6b-mmx/jdapimin.c ./jpeg-6b-mmx/jdmerge.c \ + ./jpeg-6b-mmx/jidctfst.c ./jpeg-6b-mmx/jidctint.c \ + ./jpeg-6b-mmx/jdcolor.c ./jpeg-6b-mmx/jdsample.c + cd jpeg-6b-mmx; make + +./quicktime/quicktime/libquicktime.a: + cd quicktime/quicktime; make + +./mjpeg/libmjpeg.a: mjpeg/mjpeg.c mjpeg/mjpeg.h mjpeg/jpeg_dec.c + cd mjpeg; make + +./movtar/libmovtar.a: movtar/movtar.c movtar/movtar.h + cd movtar; make libmovtar.a + +lavrec: lavrec.o avilib.o audiolib.o lav_io.o movtar/movtar.c $(LIBS) + gcc $(CFLAGS) -o lavrec lavrec.o avilib.o audiolib.o lav_io.o \ + $(LIBS_AND_OPT) $(L_FLAGS) + +lavplay: lavplay.c avilib.o audiolib.o lav_io.o editlist.o $(LIBS) + gcc -o lavplay lavplay.c avilib.o audiolib.o lav_io.o \ + editlist.o $(LIBS_AND_OPT) $(L_FLAGS) $(CFLAGS) + +movtar_play: movtar/libmovtar.a movtar_play.c + gcc movtar_play.c movtar/libmovtar.a \ + $(CFLAGS) $(L_FLAGS) -o movtar_play + +lavvideo: lavvideo.c + gcc $(CFLAGS) lavvideo.c -o lavvideo + +v4l-conf.o: v4l-conf.c + gcc -g -g -O2 -c v4l-conf.c -o v4l-conf.o + +v4l-conf: v4l-conf.o + gcc -g -g -O2 -o v4l-conf v4l-conf.o -L/usr/X11R6/lib -lXxf86vm -lXxf86dga -lXext -lX11 + +install: + su -c "cp -v $(M_OBJS) /usr/local/bin/" + +clean: + rm -f *.o lavplay lavrec movtar_play + +realclean: + rm -f *.o lavplay lavrec + cd quicktime/quicktime; make clean + cd jpeg-6b-mmx; make clean + cd mjpeg; make clean + cd movtar; make clean +# cd utils; make clean +# cd xlav; make clean +# cd mpeg2enc; make clean +# cd aenc; make clean + + + + + + + + + + + + + diff --git a/media-video/mjpeg-tools/files/digest b/media-video/mjpeg-tools/files/digest new file mode 100644 index 000000000000..067dae8e4081 --- /dev/null +++ b/media-video/mjpeg-tools/files/digest @@ -0,0 +1,2 @@ +MD5 7348fba52e85f20516da427feeb9ab9b mjpeg_beta_1a.tar.gz +MD5 7261b77fb8b730a2f02e3304c09887d9 quicktime4linux-1.1.9.tar.gz diff --git a/media-video/mjpeg-tools/mjpeg-tools-1a.ebuild b/media-video/mjpeg-tools/mjpeg-tools-1a.ebuild new file mode 100644 index 000000000000..a84ee18dac0d --- /dev/null +++ b/media-video/mjpeg-tools/mjpeg-tools-1a.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/media-video/mjpeg-tools/mjpeg-tools-1a.ebuild,v 1.1 2000/08/15 17:34:07 achim Exp $ + +P=mjpeg-tools-1a +A="mjpeg_beta_1a.tar.gz quicktime4linux-1.1.9.tar.gz" +S=${WORKDIR}/mjpeg_beta +CATEGORY="media-video" +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/" + +src_unpack() { + unpack ${A} + cd ${S} + sed -e "s:-O2:${CFLAGS}:" ${O}/files/Makefile > Makefile + cd aenc + cp Makefile Makefile.orig + sed -e "s:\.\./jpeg-6b-mmx/libjpeg\.a:-ljpeg:" Makefile.orig > Makefile +} +src_compile() { + + cd ${S} + make + cd aenc + make + cd ../mpegjoin + make + cd ../mplex + 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 + + +} + + |