1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="CRC ITU-T V.41 calculations"
9 HOMEPAGE="http://rt2x00.serialmonkey.com/"
10 SRC_URI="http://dev.gentooexperimental.org/~jakub/distfiles/${MY_PN}-${PV}.tar.gz"
22 BUILD_PARAMS="CONFIG_CRC_ITU_T=m
23 -C ${KERNEL_DIR} M=${S}"
24 BUILD_TARGETS="modules"
25 MODULE_NAMES="crc-itu-t()"
28 if kernel_is ge 2 6 22 ; then
29 CONFIG_CHECK="${CONFIG_CHECK} !CRC_ITU_T"
30 ERROR_CRC_ITU_T="CRC_ITU_T support already enabled in kernel. You do not need this ebuild."
38 echo 'obj-$(CONFIG_CRC_ITU_T) += crc-itu-t.o' > ${S}/Makefile
39 echo "CFLAGS += -I${WORKDIR}/include" >> ${S}/Makefile
44 dodir /usr/include/crc-itu-t/linux/
45 insinto /usr/include/crc-itu-t/linux/
46 doins "${WORKDIR}"/include/linux/crc-itu-t.h