summaryrefslogtreecommitdiffstats
path: root/science/sigrok-firmware/Makefile
blob: e79ba588d1558755c9c2586b697d72c4b5e77a1e (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
# Created by: Uffe Jakobsen <uffe@uffe.org>
# $FreeBSD$

PORTNAME=	firmware
PORTVERSION=	20150123
CATEGORIES=	science
PKGNAMEPREFIX=	sigrok-

MAINTAINER=	uffe@uffe.org
COMMENT=	Sigrok firmware

RUN_DEPENDS=	parseelf.py:${PORTSDIR}/science/sigrok-firmware-utils \
		${LOCALBASE}/share/sigrok-firmware/fx2lafw-cypress-fx2.fw:${PORTSDIR}/science/sigrok-firmware-fx2lafw

USE_GITHUB=	yes
GH_ACCOUNT=	uffejakobsen
GH_PROJECT=	${PKGNAMEPREFIX}${PORTNAME}
GH_TAGNAME=	2632d74

GNU_CONFIGURE=yes

USES=		autoreconf gmake

FW_FILES=	\
		LICENSE.Sigma asix-sigma-100.fw asix-sigma-200.fw asix-sigma-50.fw asix-sigma-50sync.fw \
		LICENSE.LWLA sysclk-lwla1034-extneg.rbf sysclk-lwla1034-extpos.rbf sysclk-lwla1034-int.rbf sysclk-lwla1034-off.rbf

PLIST_FILES=	\
		${FW_FILES:S,^,share/sigrok-firmware/,} \

post-install:
	${INSTALL_DATA} ${WRKSRC}/asix-sigma/LICENSE.Sigma ${STAGEDIR}${PREFIX}/share/sigrok-firmware
	${INSTALL_DATA} ${WRKSRC}/sysclk-lwla/LICENSE.LWLA ${STAGEDIR}${PREFIX}/share/sigrok-firmware

.include <bsd.port.mk>
OpenPOWER on IntegriCloud