summaryrefslogtreecommitdiff
blob: b603cc3ca0acbf79ce8bc6502f7e49b9ccb6a69d (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
# 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.2 2004/06/24 21:55:53 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"
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
}