summaryrefslogtreecommitdiff
blob: 3f10a953a597db5527ddf98750a353f4b15eb3e3 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit linux-mod

MY_PN="rt2x00-git"
DESCRIPTION="CRC ITU-T V.41 calculations"
HOMEPAGE="http://rt2x00.serialmonkey.com/"
SRC_URI="http://dev.gentooexperimental.org/~jakub/distfiles/${MY_PN}-${PV}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND=""
RDEPEND=""

S="${WORKDIR}/lib"

BUILD_PARAMS="CONFIG_CRC_ITU_T=m
	-C ${KERNEL_DIR} M=${S}"
BUILD_TARGETS="modules"
MODULE_NAMES="crc-itu-t()"

src_unpack() {
	unpack ${A}
	echo 'obj-$(CONFIG_CRC_ITU_T) += crc-itu-t.o' > ${S}/Makefile
	echo "CFLAGS += -I${WORKDIR}/include" >> ${S}/Makefile
}

src_install() {
	linux-mod_src_install
	dodir /usr/include/crc-itu-t/linux/
	insinto /usr/include/crc-itu-t/linux/
	doins "${WORKDIR}"/include/linux/crc-itu-t.h
}