# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="4" DESCRIPTION="A neat and simple webcam app which captures images from a V4L1/V4L2 compatible device" SRC_URI="http://www.sanslogic.co.uk/fswebcam/files/${P}.tar.xz" HOMEPAGE="http://www.sanslogic.co.uk/fswebcam/" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86 ~amd64 ~arm" IUSE="png jpeg truetype +v4l +v4l2" DEPEND=">=media-libs/gd-2[png?,jpeg?,truetype?] v4l? ( sys-kernel/linux-headers ) v4l2? ( sys-kernel/linux-headers ) " src_configure() { local myconf use v4l || myconf="${myconf} --disable-v4l1" use v4l2 || myconf="${myconf} --disable-v4l2" econf ${myconf} } src_install() { dobin fswebcam || die dodoc README CHANGELOG LICENSE example.conf || die doman fswebcam.1 }