summaryrefslogtreecommitdiff
blob: d7bff76680c81c0fc893fc0998de0f1388c34011 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-sci/comedi/comedi-0.7.68.ebuild,v 1.3 2004/07/13 20:27:36 agriffis Exp $

inherit kernel-mod

DESCRIPTION="Comedi - COntrol and MEasurement Device Interface for Linux"
SRC_URI="ftp://ftp.comedi.org/pub/comedi/${P}.tar.gz"
HOMEPAGE="http://www.comedi.org"
KEYWORDS="x86"
IUSE=""
LICENSE="GPL-2"
SLOT="0"

src_compile()
{
	kernel-mod_getversion

	addpredict ${KERNEL_DIR}

	# The stuff below is taken from the kernel's Makefile.  The problem here is that
	# we need the ARCH variable to be set to what the kernel is expecting, but the Gento
	# build system overrides it, so we'll force it to what the kernel wants for the 
	# compilation phase.

	LOCALARCH=$(uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
		-e s/arm.*/arm/ -e s/sa110/arm/ \
		-e s/s390x/s390/ -e s/parisc64/parisc/ )

	ARCH=${LOCALARCH} ./configure --prefix=${D}/usr --libdir=${D}/lib --with-linuxdir=${KERNEL_DIR}
	emake
}

src_install()
{
	make install
}