freebsd-ports/net/bwi-firmware-kmod/Makefile

50 lines
1.3 KiB
Makefile
Raw Normal View History

# Created by: Andrew Thompson <thompsa@FreeBSD.org>
2009-05-09 23:41:50 +02:00
# $FreeBSD$
PORTNAME= bwi-firmware
PORTVERSION= ${FWVERSION}
CATEGORIES= net
2009-05-09 23:41:50 +02:00
MASTER_SITES= http://downloads.openwrt.org/sources/ \
http://mirror2.openwrt.org/sources/
2009-05-09 23:41:50 +02:00
PKGNAMESUFFIX= -kmod
DISTFILES= ${FWFILE}
EXTRACT_ONLY=
2009-05-09 23:41:50 +02:00
2009-05-13 21:26:59 +02:00
MAINTAINER= swhetzel@gmail.com
2009-05-09 23:41:50 +02:00
COMMENT= Broadcom AirForce IEEE 802.11 Firmware Kernel Module
BUILD_DEPENDS= b43-fwcutter:sysutils/b43-fwcutter
2009-05-09 23:41:50 +02:00
FIRMWARES= ucode ucode11 ucode2 ucode4 ucode5 \
a0g0bsinitvals2 a0g0bsinitvals5 a0g0initvals2 \
a0g0initvals5 a0g1bsinitvals5 a0g1initvals5 \
b0g0bsinitvals2 b0g0bsinitvals5 b0g0initvals2 b0g0initvals5 \
pcm4 pcm5
WRKSRC= ${WRKDIR}
FWNAME= bwi_v3
FWFILE= wl_apsta-${FWVERSION}.0.o
FWVERSION= 3.130.20
KMODNAME= ${FWNAME}_ucode
PLIST_SUB= KMODNAME="${KMODNAME}"
2009-05-09 23:41:50 +02:00
NO_PACKAGE= this is a modified version of a restricted firmware
USES= kmod uidfix
2009-05-09 23:41:50 +02:00
do-build:
cd ${WRKSRC} && \
b43-fwcutter -w ${WRKSRC} ${DISTDIR}/${FWFILE}
2009-05-09 23:41:50 +02:00
${TOUCH} ${WRKSRC}/v3/ucode.fw
@${ECHO_CMD} "KMOD= ${KMODNAME}" > ${WRKSRC}/v3/Makefile
@${ECHO_CMD} "FIRMWS= ${FIRMWARES:C/.*/&.fw:${FWNAME}_&/}" >> \
${WRKSRC}/v3/Makefile
@${ECHO_CMD} ".include <bsd.kmod.mk>" >> ${WRKSRC}/v3/Makefile
@cd ${WRKSRC}/v3; make all
2009-05-09 23:41:50 +02:00
do-install:
@cd ${WRKSRC}/v3; ${SETENV} ${MAKE_ENV} KMODDIR="${STAGEDIR}${KMODDIR}" make install
2009-05-09 23:41:50 +02:00
.include <bsd.port.mk>