# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="" HOMEPAGE="http://unicap-imaging.org/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="debug ffmpeg gtk theora v4l v4l2" # lacks examples flag, to build example programs. DEPEND="gtk? ( >=x11-libs/gtk+-2.0 ) >=dev-libs/glib-2.0 ffmpeg? ( media-video/ffmpeg ) theora? ( media-libs/libogg media-libs/libtheora )" RDEPEND="${DEPEND}" src_compile() { local myconf="" if use debug ; then myconf="${myconf} --enable-thing --enable-debug-unicap \ --enable-debug-ucil --enable-debug-dcam" use v4l && myconf="${myconf} --enable-debug-v4l" use v4l2 && myconf="${myconf} --enable-debug-v4l2" use gtk && myconf="${myconf} --enable-debug-unicapgtk" fi # There're a few options that could be set econf ${myconf} \ $(use_enable ffmpeg ucil-ffmpeg) \ $(use_enable gtk unicapgtk) \ $(use_enable theora ucil-theora) \ $(use_enable v4l) \ $(use_enable v4l2) \ --enable-ucil --enable-vid21394 --enable-dcam || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc AUTHORS ChangeLog NEWS README README.troubleshooting }