2017-05-31 20:12:47 +02:00
|
|
|
# $NetBSD: Makefile,v 1.11 2017/05/31 18:12:47 plunky Exp $
|
2006-12-07 21:30:48 +01:00
|
|
|
|
2017-05-31 20:12:47 +02:00
|
|
|
DISTNAME= bcmfw-2.1
|
2006-12-07 21:30:48 +01:00
|
|
|
CATEGORIES= sysutils
|
2017-05-31 20:12:47 +02:00
|
|
|
MASTER_SITES= http://github.com/plunky/bcmfw/archive/
|
|
|
|
DIST_SUBDIR= ${PKGNAME_NOREV}
|
|
|
|
DISTFILES= v${PKGVERSION_NOREV}.tar.gz
|
|
|
|
DISTFILES+= bluez-firmware-1.2.tar.gz
|
2006-12-07 21:30:48 +01:00
|
|
|
SITES.bluez-firmware-1.2.tar.gz= \
|
|
|
|
http://bluez.sourceforge.net/download/
|
|
|
|
|
2014-12-30 09:57:00 +01:00
|
|
|
MAINTAINER= plunky@NetBSD.org
|
2017-05-31 20:12:47 +02:00
|
|
|
HOMEPAGE= https://github.com/plunky/bcmfw
|
2016-02-17 11:58:19 +01:00
|
|
|
COMMENT= Broadcom Bluetooth Firmware Loader
|
2006-12-12 20:40:24 +01:00
|
|
|
LICENSE= bcmfw-license
|
|
|
|
|
2017-05-31 20:12:47 +02:00
|
|
|
EXTRACT_USING= bsdtar
|
|
|
|
|
2014-12-30 09:57:00 +01:00
|
|
|
RESTRICTED= No clear permission to redistribute firmware
|
2006-12-12 20:40:24 +01:00
|
|
|
NO_BIN_ON_CDROM= ${RESTRICTED}
|
2014-12-30 09:57:00 +01:00
|
|
|
NO_BIN_ON_FTP= ${RESTRICTED}
|
2006-12-12 20:40:24 +01:00
|
|
|
|
2006-12-07 21:30:48 +01:00
|
|
|
ONLY_FOR_PLATFORM= NetBSD-[4-9].*-*
|
|
|
|
|
|
|
|
RCD_SCRIPTS+= bcmfw
|
|
|
|
|
|
|
|
FIRMWARE_DIR= libdata/bcmfw
|
|
|
|
|
2008-04-07 18:40:26 +02:00
|
|
|
INSTALLATION_DIRS= ${PKGMANDIR}/man8 ${FIRMWARE_DIR} sbin
|
2006-12-07 21:30:48 +01:00
|
|
|
|
|
|
|
PLIST_SUBST+= FIRMWARE_DIR=${FIRMWARE_DIR}
|
|
|
|
|
|
|
|
SUBST_CLASSES+= dir
|
2016-02-17 11:58:19 +01:00
|
|
|
SUBST_FILES.dir= bcmfw.8
|
|
|
|
SUBST_SED.dir= -e 's,/libdata/bcmfw,${PREFIX}/${FIRMWARE_DIR}&,'
|
2006-12-07 21:30:48 +01:00
|
|
|
SUBST_STAGE.dir= post-patch
|
|
|
|
SUBST_MESSAGE.dir= Fixing path to firmware directory.
|
|
|
|
|
2013-09-10 16:42:05 +02:00
|
|
|
USE_BSD_MAKEFILE= yes
|
|
|
|
|
2016-02-17 11:58:19 +01:00
|
|
|
MAKE_FLAGS+= BCMFW_DIR=${PREFIX}/${FIRMWARE_DIR}
|
2013-09-10 16:42:05 +02:00
|
|
|
MAKE_FLAGS+= CWARNFLAGS.clang=-Wno-error=tautological-compare
|
|
|
|
|
2006-12-07 21:30:48 +01:00
|
|
|
do-install:
|
2008-06-20 03:09:05 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bcmfw ${DESTDIR}${PREFIX}/sbin
|
2016-02-17 11:58:19 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bcmfw-install ${DESTDIR}${PREFIX}/sbin
|
2008-06-20 03:09:05 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/bcmfw.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/bluez-firmware-1.2/broadcom/BCM-LEGAL.txt ${DESTDIR}${PREFIX}/${FIRMWARE_DIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/bluez-firmware-1.2/broadcom/BCM2033-FW.bin ${DESTDIR}${PREFIX}/${FIRMWARE_DIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/bluez-firmware-1.2/broadcom/BCM2033-MD.hex ${DESTDIR}${PREFIX}/${FIRMWARE_DIR}
|
2006-12-07 21:30:48 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|