# Copyright 1999-2002 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/mpeg-tools/mpeg-tools-1.5b.ebuild,v 1.7 2002/04/27 12:19:21 seemant Exp $ MY_PN=mpeg_encode S=${WORKDIR}/${MY_PN} DESCRIPTION="Tools for MPEG video" SRC_URI="ftp://mm-ftp.cs.berkeley.edu/pub/multimedia/mpeg/encode/${MY_PN}-${PV}-src.tar.gz" HOMEPAGE="http://bmrc.bercley.edu/research/mpeg/mpeg_encode.html" DEPEND="virtual/glibc virtual/x11" src_unpack () { unpack ${A} cd ${S} cp libpnmrw.c libpnmrw.c.orig sed -e "s:extern char\* sys_errlist:extern __const char \*__const sys_errlist:" \ libpnmrw.c.orig > libpnmrw.c } src_compile() { cd ${S} make || die cd ../convert make || die cd mtv make || die } src_install () { cd ${S} into /usr dobin mpeg_encode doman docs/*.1 dodoc BUGS CHANGES COPYRIGHT README TODO VERSION dodoc docs/EXTENSIONS docs/INPUT.FORMAT docs/*.param docs/param-summary docinto examples dodoc examples/* cd ../convert dobin eyuvtojpeg eyuvtoppm jmovie2jpeg mpeg_demux ppmtoeyuv mtv/movieToVid }