summaryrefslogtreecommitdiff
blob: fc9b09e3f0841d7f796b3fba30c84981e2a1e860 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/indilib/indilib-0.5.ebuild,v 1.1 2008/01/13 20:04:34 philantrop Exp $

inherit multilib

DESCRIPTION="INDI Astronomical Control Protocol library"
HOMEPAGE="http://indi.sourceforge.net/index.php/Main_Page"
SRC_URI="mirror://sourceforge/indi/${PN}-${PV}.tar.gz"

LICENSE="LGPL-2"
SLOT="0"

KEYWORDS="~amd64 ~x86"
IUSE="usb v4l2"

RDEPEND="sci-libs/cfitsio
		usb? ( dev-libs/libusb )
		v4l2? ( >=sys-kernel/linux-headers-2.6 )"
DEPEND="${RDEPEND}"

S="${WORKDIR}/indi"

src_compile(){
	myconf="${myconf} $(use_enable usb) $(use_enable v4l2)"

	econf ${myconf} || die "econf failed"
	emake || die "emake failed"
}

src_install(){
	emake install DESTDIR="${D}" || die "make install failed"
}