Line 0
Link Here
|
|
|
1 |
# Created by: Johnny Sorocil <propaliidealist@gmail.com> |
2 |
# $FreeBSD$ |
3 |
|
4 |
PORTNAME= lattice-ice40-examples-hx1k |
5 |
PORTVERSION=20180310 |
6 |
CATEGORIES= devel |
7 |
|
8 |
MAINTAINER= propaliidealist@gmail.com |
9 |
COMMENT= Lattice iCE40 FPGA examples for Olimex HX1K board |
10 |
|
11 |
LICENSE= APACHE20 |
12 |
|
13 |
RUN_DEPENDS= ${LOCALBASE}/bin/arachne-pnr:devel/arachne-pnr \ |
14 |
${LOCALBASE}/bin/icepack:devel/icestorm \ |
15 |
${LOCALBASE}/bin/yosys:devel/yosys |
16 |
|
17 |
USES+= ${GMAKE} |
18 |
|
19 |
NO_ARCH= yes |
20 |
USE_GITHUB= yes |
21 |
GH_ACCOUNT= OLIMEX |
22 |
GH_PROJECT= iCE40HX1K-EVB |
23 |
GH_TAGNAME= 69df5a7 |
24 |
|
25 |
EXAMPLES_NAME= lattice-ice40-olimex |
26 |
EXAMPLESDIR= ${PREFIX}/share/examples/ |
27 |
|
28 |
do-build: |
29 |
${MAKE_CMD} -C ${WRKSRC}/demo/ice40hx1k-evb |
30 |
${MAKE_CMD} -C ${WRKSRC}/demo/ice40-io-video |
31 |
|
32 |
do-install: |
33 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/examples/${EXAMPLES_NAME} |
34 |
@${CP} ${WRKSRC}/demo/ice40hx1k-evb/example.v ${STAGEDIR}${PREFIX}/share/examples/${EXAMPLES_NAME}/ice40hx1k-blinky.v |
35 |
@${CP} ${WRKSRC}/demo/ice40hx1k-evb/example.rpt ${STAGEDIR}${PREFIX}/share/examples/${EXAMPLES_NAME}/ice40hx1k-blinky.rpt |
36 |
@${CP} ${WRKSRC}/demo/ice40hx1k-evb/example.bin ${STAGEDIR}${PREFIX}/share/examples/${EXAMPLES_NAME}/ice40hx1k-blinky.bin |
37 |
@${CP} ${WRKSRC}/demo/ice40-io-video/example.v ${STAGEDIR}${PREFIX}/share/examples/${EXAMPLES_NAME}/ice40hx1k-vga-ps2.v |
38 |
@${CP} ${WRKSRC}/demo/ice40-io-video/example.rpt ${STAGEDIR}${PREFIX}/share/examples/${EXAMPLES_NAME}/ice40hx1k-vga-ps2.rpt |
39 |
@${CP} ${WRKSRC}/demo/ice40-io-video/example.bin ${STAGEDIR}${PREFIX}/share/examples/${EXAMPLES_NAME}/ice40hx1k-vga-ps2.bin |
40 |
|
41 |
.include <bsd.port.mk> |