forked from ports/contrib
20 lines
757 B
Plaintext
20 lines
757 B
Plaintext
# Description: With ndiswrapper, most miniPCI (builtin), PCI, PCMCIA (Cardbus only) or USB wireless network cards work in Linux with x86 or x86-64.
|
|
# URL: http://ndiswrapper.sourceforge.net/joomla/
|
|
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
|
|
# Packager: Antonio SJ Musumeci, bile at landofbile dot com
|
|
|
|
name=ndiswrapper
|
|
version=1.53
|
|
release=1
|
|
source=(http://dl.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$version.tar.gz)
|
|
|
|
build() {
|
|
local kernel_path
|
|
cd ndiswrapper-$version
|
|
sed -i -e "s|CFLAGS = -g -Wall -I\$(DRIVER_DIR)|CFLAGS = $CFLAGS -Wall -I\$(DRIVER_DIR)|" utils/Makefile
|
|
kernel_path="/usr/src/linux-`uname -r`"
|
|
make KBUILD="$kernel_path" EXTRA_CFLAGS="$CFLAGS"
|
|
make KBUILD="$kernel_path" DESTDIR=$PKG install
|
|
}
|
|
|