freebsd-ports/net/bwi-firmware-kmod/Makefile
Rene Ladan 2755bd449b Make building as user work.
Obtained from:	Ports r341294
2014-01-26 22:00:23 +00:00

49 lines
1.3 KiB
Makefile

# Created by: Andrew Thompson <thompsa@FreeBSD.org>
# $FreeBSD$
PORTNAME= bwi-firmware
PORTVERSION= ${FWVERSION}
CATEGORIES= net
MASTER_SITES= http://downloads.openwrt.org/sources/ \
http://mirror2.openwrt.org/sources/
PKGNAMESUFFIX= -kmod
DISTFILES= ${FWFILE}
EXTRACT_ONLY=
MAINTAINER= swhetzel@gmail.com
COMMENT= Broadcom AirForce IEEE 802.11 Firmware Kernel Module
BUILD_DEPENDS= b43-fwcutter:${PORTSDIR}/sysutils/b43-fwcutter
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}"
NO_PACKAGE= this is a modified version of a restricted firmware
USES= kmod uidfix
do-build:
cd ${WRKSRC} && \
b43-fwcutter -w ${WRKSRC} ${DISTDIR}/${FWFILE}
${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
do-install:
@cd ${WRKSRC}/v3; ${SETENV} ${MAKE_ENV} KMODDIR="${STAGEDIR}${KMODDIR}" make install
.include <bsd.port.mk>