# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvs/ebuilds/media-video/camstream/camstream-0.26.2.ebuild,v 1.3 2003/01/08 15:14:38 kruhft Exp $ DESCRIPTION="A collection of tools for webcams and other video devices." SRC_URI="http://www.smcc.demon.nl/camstream/download/${P}.tar.gz" HOMEPAGE="http://www.smcc.demon.nl/camstream/index.html" SLOT="0" LICENSE="GPL-2" IUSE="glibc qt jpeg png" KEYWORDS="~x86" DEPEND="virtual/glibc >=x11-libs/qt-2.2.2 jpeg? ( media-libs/jpeg ) png? ( media-libs/libpng )" src_unpack() { unpack ${P}.tar.gz # Fix wrong paths for uic and moc in camstream/configure echo "Fixing camstream configure script..." sed -i -e 's|/usr/local/bin/uic|$QTDIR/bin/uic|;s|/usr/local/bin/moc|$QTDIR/bin/moc|'\ ${S}/camstream/configure } src_compile() { # don't need to add configure options for png and jpeg # since they are automatically found by the configure # script. econf || die make || die } src_install() { dobin camstream/camstream camstream/caminfo camstream/ftpput dohtml -r docs/* docinto /html/docs/api dodoc docs/api/CamStream.dox docinto /html/docs/tech dodoc docs/tech/rfc959.txt dodir /usr/share/camstream insinto /usr/share/camstream doins camstream/icons/*.png }