blob: b2369f7f42b9a07b1c809c7a25ef68eca8319295 (
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
43
44
45
46
|
PORTNAME= lattice-ice40-examples-hx8k
PORTVERSION= g20180310
PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= manu@FreeBSD.org
COMMENT= Lattice iCE40 FPGA examples for the Olimex HX8K board
WWW= https://github.com/OLIMEX/iCE40HX8K-EVB
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= abc:cad/abc \
arachne-pnr:devel/arachne-pnr \
icepack:devel/icestorm \
yosys:cad/yosys
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= OLIMEX
GH_PROJECT= iCE40HX8K-EVB
GH_TAGNAME= ae283711fc6c18f1905d0abf78195aed191ce612
EXAMPLESDIR= ${PREFIX}/share/examples/lattice-ice40-olimex
NO_ARCH= yes
do-build:
${DO_MAKE_BUILD} -C ${WRKSRC}/demo/ice40hx8k-evb
${DO_MAKE_BUILD} -C ${WRKSRC}/demo/ice40-io-video
do-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/demo/ice40hx8k-evb/example.v \
${STAGEDIR}${EXAMPLESDIR}/ice40hx8k-blinky.v
${INSTALL_DATA} ${WRKSRC}/demo/ice40hx8k-evb/example.rpt \
${STAGEDIR}${EXAMPLESDIR}/ice40hx8k-blinky.rpt
${INSTALL_DATA} ${WRKSRC}/demo/ice40hx8k-evb/example.bin \
${STAGEDIR}${EXAMPLESDIR}/ice40hx8k-blinky.bin
${INSTALL_DATA} ${WRKSRC}/demo/ice40-io-video/example.v \
${STAGEDIR}${EXAMPLESDIR}/ice40hx8k-vga-ps2.v
${INSTALL_DATA} ${WRKSRC}/demo/ice40-io-video/example.rpt \
${STAGEDIR}${EXAMPLESDIR}/ice40hx8k-vga-ps2.rpt
${INSTALL_DATA} ${WRKSRC}/demo/ice40-io-video/example.bin \
${STAGEDIR}${EXAMPLESDIR}/ice40hx8k-vga-ps2.bin
.include <bsd.port.mk>
|