aboutsummaryrefslogtreecommitdiffstats
path: root/science/sigrok-firmware-fx2lafw/Makefile
blob: ccebf7af28d79e4839a293a02352a27848751b33 (plain) (blame)
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
# Created by: Uffe Jakobsen <uffe@uffe.org>
# $FreeBSD$

PORTNAME=   firmware
PORTVERSION=    0.1.5
CATEGORIES= science
MASTER_SITES=   http://sigrok.org/download/binary/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}/
PKGNAMEPREFIX=  sigrok-
PKGNAMESUFFIX=  -fx2lafw
DISTNAME=   ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}-bin-${PORTVERSION}

MAINTAINER= bsam@FreeBSD.org
COMMENT=    Cypress FX2 firmware for hardware logic analyzers

LICENSE=    GPLv2

NO_BUILD=   yes

FW_FILES=   fx2lafw-braintechnology-usb-lps.fw \
        fx2lafw-cwav-usbeeax.fw \
        fx2lafw-cwav-usbeedx.fw \
        fx2lafw-cwav-usbeesx.fw \
        fx2lafw-cypress-fx2.fw \
        fx2lafw-saleae-logic.fw \
        fx2lafw-sigrok-fx2-8ch.fw \
        fx2lafw-sigrok-fx2-16ch.fw

PORTDOCS=   README NEWS
PLIST_FILES=    ${FW_FILES:S,^,share/sigrok-firmware/,}

do-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for docfile in README NEWS
    ${INSTALL_MAN} ${WRKSRC}/${docfile} ${STAGEDIR}${DOCSDIR}
.endfor
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/sigrok-firmware
.for fwfile in ${FW_FILES}
    ${INSTALL_DATA} ${WRKSRC}/${fwfile} \
        ${STAGEDIR}${PREFIX}/share/sigrok-firmware/
.endfor

.include <bsd.port.mk>