blob: ce34c37bb0b1e5d33787bc6fccc1ec95b88b5292 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# $NetBSD: Makefile,v 1.3 2008/04/07 16:40:26 joerg Exp $
DISTNAME= bcmfw-1.0
CATEGORIES= sysutils
MASTER_SITES= http://homepages.rya-online.net/plunky/
DISTFILES= bcmfw-1.0.tar.gz \
bluez-firmware-1.2.tar.gz
SITES.bluez-firmware-1.2.tar.gz= \
http://bluez.sourceforge.net/download/
MAINTAINER= plunky@rya-online.net
COMMENT= Broadcom 2033 Bluetooth Firmware Loader
LICENSE= bcmfw-license
RESTRICTED= No clear permission redistribute firmware
NO_BIN_ON_FTP= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
ONLY_FOR_PLATFORM= NetBSD-[4-9].*-*
RCD_SCRIPTS+= bcmfw
BUILD_DEFS+= PKGMANDIR
FIRMWARE_DIR= libdata/bcmfw
INSTALLATION_DIRS= ${PKGMANDIR}/man8 ${FIRMWARE_DIR} sbin
PLIST_SUBST+= FIRMWARE_DIR=${FIRMWARE_DIR}
SUBST_CLASSES+= dir
SUBST_FILES.dir= bcmfw.8 bcmfw.c
SUBST_SED.dir= -e 's,BCM2033-,${PREFIX}/${FIRMWARE_DIR}/&,'
SUBST_STAGE.dir= post-patch
SUBST_MESSAGE.dir= Fixing path to firmware directory.
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bcmfw ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/bcmfw.8 ${PREFIX}/${PKGMANDIR}/man8
${INSTALL_DATA} ${WRKDIR}/bluez-firmware-1.2/broadcom/BCM-LEGAL.txt ${PREFIX}/${FIRMWARE_DIR}
${INSTALL_DATA} ${WRKDIR}/bluez-firmware-1.2/broadcom/BCM2033-FW.bin ${PREFIX}/${FIRMWARE_DIR}
${INSTALL_DATA} ${WRKDIR}/bluez-firmware-1.2/broadcom/BCM2033-MD.hex ${PREFIX}/${FIRMWARE_DIR}
.include "../../mk/bsd.pkg.mk"
|