1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="Intel (R) PRO/Wireless 3945ABG Network Connection"
8 HOMEPAGE="http://intellinuxwireless.org/?p=iwlwifi"
9 SRC_URI="http://intellinuxwireless.org/${PN}/downloads/${P}.tgz"
13 KEYWORDS="~x86 ~amd64"
16 DEPEND="net-wireless/mac80211"
17 RDEPEND="net-wireless/iwlwifi-ucode"
19 S="${WORKDIR}/${P}/compatible"
21 MODULE_NAMES="iwl3945(net/wireless)"
22 BUILD_TARGETS="modules"
26 BUILD_PARAMS="-C ${KV_DIR} M=${S} CONFIG_IWL3945=m"
32 sed -i -e 's/\(.*chmod\)/#\1/' Makefile
33 make compatible/kversion KSRC="${KV_DIR}" \
34 MAC80211_INC=/usr/include/mac80211/net/ || die "make unmodified failed"
35 sed -i -e 's%\.\./\(net/mac80211/\)%\1%' "${S}"/*.c "${S}"/*.h
36 echo "CFLAGS += -I/usr/include/mac80211 -DCONFIG_IWLWIFI_DEBUG=y" \
37 "-DCONFIG_IWLWIFI_SPECTRUM_MEASUREMENT=y" >> "${S}"/Makefile