summaryrefslogtreecommitdiff
blob: 8d72a7142becf92b60eb81d6941defa98047d674 (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
42
43
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/camstream/camstream-0.26.3.ebuild,v 1.10 2005/07/26 18:29:57 blubb Exp $

inherit eutils

DESCRIPTION="Collection of tools for webcams and other video devices"
HOMEPAGE="http://www.smcc.demon.nl/camstream/"
SRC_URI="http://www.smcc.demon.nl/camstream/download/${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="amd64 -ppc x86"
SLOT="0"
IUSE="doc"

DEPEND="=x11-libs/qt-3*
	sys-devel/autoconf"

src_unpack () {
	unpack ${A}
	cd ${S}
	# Camstream has 32 bit asssembler normally.
	use amd64 && epatch ${FILESDIR}/x86_64-asm.patch
}

src_compile () {
	# Need to fake out Qt or we'll get sandbox problems
	REALHOME="$HOME"
	mkdir -p $T/fakehome/.qt
	export HOME="$T/fakehome"
	addwrite "${QTDIR}/etc/settings"
	autoreconf &> autoreconf-output || \
		die "autoreconf failed. Output in ${S}/autoreconf-output"
	econf || die "configure failed"
	emake || die "emake failed"
}

src_install () {
	dobin camstream/camstream camstream/caminfo camstream/ftpput
	dodir /usr/share/${PN}/icons
	insinto /usr/share/${PN}/icons
	doins camstream/icons/*.png
	use doc && dohtml -r docs/*
}