You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-wireless/acx/acx-0.3.37_p20080210.ebuild

56 lines
1.3 KiB

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/acx/acx-0.3.37_p20080210.ebuild,v 1.2 2010/02/28 17:40:00 lxnay Exp $
inherit linux-mod
PATCHLEVEL=${PV##*_p}
DESCRIPTION="Driver for the ACX100 and ACX111 wireless chipset (CardBus, PCI, USB)"
HOMEPAGE="http://acx100.sourceforge.net/"
SRC_URI="http://downloads.sourceforge.net/acx100/${PN}-${PATCHLEVEL}.tar.bz2"
LICENSE="GPL-2 as-is"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="debug"
RDEPEND="net-wireless/wireless-tools
net-wireless/acx-firmware"
S=${WORKDIR}/${PN}-${PATCHLEVEL}
MODULE_NAMES="acx(net:${S})"
CONFIG_CHECK="WIRELESS_EXT FW_LOADER"
BUILD_TARGETS="modules"
pkg_setup() {
linux-mod_pkg_setup
BUILD_PARAMS="-C ${KV_DIR} SUBDIRS=${S}"
}
src_unpack() {
unpack ${A}
chmod ug+w . -R
# The default acx_config.h has some rather over-zealous debug output.
cd "${S}"
if ! use debug; then
sed -i '/^#define ACX_DEBUG/s/2/0/' acx_config.h || die "Failed to disable debug support"
fi
# Apply various fixes to make module compile with 2.6.31+ kernels
# thanks to Mepis
epatch "${FILESDIR}"/2.6.31+-mepis/*
# 2.6.33 patches
epatch "${FILESDIR}"/acx-2.6.33.patch
}
src_install() {
linux-mod_src_install
dodoc README
}