46 lines
1.4 KiB
Makefile
46 lines
1.4 KiB
Makefile
PORTNAME= lattice-ice40-examples-hx8k
|
|
PORTVERSION= g20180310
|
|
PORTREVISION= 2
|
|
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>
|