# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils flag-o-matic DESCRIPTION="Unofficial release of Camsource, grabs images from a v4l and v4l2 webcam devices." HOMEPAGE="http://koti.mbnet.fi/~turja/vino" SRC_URI="http://koti.mbnet.fi/~turja/vino/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ppc ~sparc ~x86" IUSE="" RDEPEND=">=dev-libs/libxml2-2.4.22 >=media-libs/jpeg-6b" DEPEND="${RDEPEND}" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${P}-example.patch } src_compile() { filter-ldflags -Wl,-z,now econf || die "Configure failed!" emake || die "Make failed!" } src_install() { emake DESTDIR="${D}" install || die "emake install failed." dodoc AUTHORS ChangeLog README newinitd "${FILESDIR}"/${PN}.initd ${PN} insinto /etc doins ${PN}.conf.example exeinto /usr/share/${PN} doexe scripts/camsource2bmp.pl } pkg_postinst() { elog elog "Edit /etc/camsource.conf.example config to your liking." elog }