Fix downloading/building/packaging for b43-fwcutter

This commit is contained in:
Chris Roberts
2012-06-16 22:14:33 +00:00
parent 2b0ea31976
commit 1b1764b5e6
2 changed files with 18 additions and 4 deletions

View File

@@ -1,21 +1,21 @@
DESCRIPTION="A tool for extracting the firmware from a binary Broadcom 43xx wireless driver."
HOMEPAGE="http://linuxwireless.org/en/users/Drivers/b43"
SRC_URI="http://bu3sch.de/b43/fwcutter/b43-fwcutter-012.tar.bz2"
SRC_URI="http://bues.ch/b43/fwcutter/b43-fwcutter-012.tar.bz2"
CHECKSUM_MD5="69eadf67b459f313a8d6b37aaabef96c"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd b43-fwcutter-012
svn export http://svn.haiku-os.org/haiku/haiku/trunk/src/system/libroot/posix/glibc/string/byteswap.h
wget http://cgit.haiku-os.org/haiku/plain/src/system/libroot/posix/glibc/string/byteswap.h
mkdir bits
svn export http://svn.haiku-os.org/haiku/haiku/trunk/src/system/libroot/posix/glibc/include/arch/x86/bits/byteswap.h bits/byteswap.h
wget http://cgit.haiku-os.org/haiku/plain/src/system/libroot/posix/glibc/include/arch/x86/bits/byteswap.h -O bits/byteswap.h
make PREFIX=`finddir B_COMMON_DIRECTORY` CFLAGS="-I. -Wall -D_BSD_SOURCE"
}
INSTALL {
cd b43-fwcutter-012
make PREFIX=`finddir B_COMMON_DIRECTORY` install
make PREFIX=$DESTDIR/`finddir B_COMMON_DIRECTORY` install
}
LICENSE="GNU GPL v2"
COPYRIGHT="2005 Martin Langer

View File

@@ -0,0 +1,14 @@
diff -up b43-fwcutter-012/Makefile.orig b43-fwcutter-012/Makefile
--- b43-fwcutter-012/Makefile.orig 2009-06-02 09:52:55.058982400 -0600
+++ b43-fwcutter-012/Makefile 2012-06-16 16:13:04.182452224 -0600
@@ -24,8 +24,8 @@ $(BIN): $(OBJECTS)
install: all
-install -d -o 0 -g 0 -m 755 $(PREFIX)/bin/
-install -o 0 -g 0 -m 755 $(BIN) $(PREFIX)/bin/
- -install -d -o 0 -g 0 -m 755 $(PREFIX)/man/man1/
- -install -o 0 -g 0 -m 644 $(BIN).1 $(PREFIX)/man/man1/
+ -install -d -o 0 -g 0 -m 755 $(PREFIX)/documentation/man/man1/
+ -install -o 0 -g 0 -m 644 $(BIN).1 $(PREFIX)/documentation/man/man1/
clean:
-rm -f *.o $(BIN)