summaryrefslogtreecommitdiff
blob: 62d356576b932ea823b352624b88f3f69a18009c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/motioneye/motioneye-1.3-r1.ebuild,v 1.2 2006/01/26 05:49:05 robbat2 Exp $

inherit eutils

DESCRIPTION="ppm, jpeg or mjpeg grabber for the MotionEye camera on Sony VAIO Picturebooks."
HOMEPAGE="http://popies.net/meye/"
SRC_URI="http://popies.net/meye/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="X"
RDEPEND="X? ( || (
					( x11-libs/libX11 )
					virtual/x11
				)
			media-libs/imlib )"

DEPEND="${RDEPEND}
	sys-kernel/linux-headers
	X? ( || (
		( x11-proto/xextproto )
		virtual/x11
		) )
	app-text/docbook-sgml-utils"

src_compile() {
	cd ${S}
	if use X; then
		export WITHX='yes'
	else
		export WITHX='no'
	fi
	emake WITH_X="${WITHX}" CFLAGS="${CFLAGS}" || die
}

src_install() {
	exeinto /usr/bin
	doexe motioneye
}