summaryrefslogtreecommitdiff
path: root/devel/icestorm/Makefile
blob: 6e0d8ac72cc98c1c1eca5b0b774399b9a4926462 (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
36
37
# Created by: Johnny Sorocil <jsorocil@gmail.com>
# $FreeBSD$

PORTNAME=	icestorm
PORTVERSION=	g20190526
PORTREVISION=	2
CATEGORIES=	devel

MAINTAINER=	jsorocil@gmail.com
COMMENT=	IceStorm tools for Lattice iCE40 FPGAs

LICENSE=	ISCL
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libftdi1.so:devel/libftdi1 \
		libboost_python${PYTHON_SUFFIX}.so:devel/boost-python-libs

USES=		compiler:c++11-lang gmake pkgconfig python:3.3+ shebangfix

SHEBANG_FILES=	${WRKSRC}/icebox/*.py \
		${WRKSRC}/icebox/Makefile

USE_GITHUB=	yes
GH_ACCOUNT=	cliffordwolf
GH_TAGNAME=	710470f9

BINARY_ALIAS=	python3=${PYTHON_CMD}

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/icepack
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/icepll
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/icebram
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/iceprog
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/icemulti
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/icetime

.include <bsd.port.mk>