View | Details | Raw Unified | Return to bug 227593
Collapse All | Expand All

(-)devel/lattice-ice40-examples-hx1k/Makefile (+41 lines)
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>
(-)devel/lattice-ice40-examples-hx1k/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1521284988
2
SHA256 (OLIMEX-iCE40HX1K-EVB-20180310-69df5a7_GH0.tar.gz) = 11e74ae2d6b9fcb8016e8a0d11646c442a94fede4f46741e7f9a1302efe7575d
3
SIZE (OLIMEX-iCE40HX1K-EVB-20180310-69df5a7_GH0.tar.gz) = 2182085
(-)devel/lattice-ice40-examples-hx1k/pkg-descr (+4 lines)
Line 0 Link Here
1
Examples (LED blinky and VGA + PS/2) for Lattice iCE40-HX1K FPGA board from
2
Olimex
3
4
WWW: https://github.com/OLIMEX/iCE40HX1K-EVB
(-)devel/lattice-ice40-examples-hx1k/pkg-plist (+6 lines)
Line 0 Link Here
1
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lattice-ice40-olimex/ice40hx1k-blinky.bin
2
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lattice-ice40-olimex/ice40hx1k-blinky.rpt
3
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lattice-ice40-olimex/ice40hx1k-blinky.v
4
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lattice-ice40-olimex/ice40hx1k-vga-ps2.bin
5
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lattice-ice40-olimex/ice40hx1k-vga-ps2.rpt
6
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lattice-ice40-olimex/ice40hx1k-vga-ps2.v

Return to bug 227593