summaryrefslogtreecommitdiff
path: root/comms/ujprog/Makefile
blob: 188724b0880e8bd82bd02074e6bca650c0f0fb9e (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

PORTNAME=	ujprog
DISTVERSION=	g20191117
CATEGORIES=	comms

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	ULX2S/ULX3S FPGA JTAG programmer

LICENSE=	BSD2CLAUSE

LIB_DEPENDS=	libftdi.so:devel/libftdi

USES=		gmake
USE_GITHUB=	yes
GH_ACCOUNT=	f32c
GH_PROJECT=	tools
GH_TAGNAME=	0698352b0e912caa9b8371b8f692e19aac547a69
USE_CSTD=	c99

ALL_TARGET=	ujprog flash

WRKSRC_SUBDIR=	${PORTNAME}

MAKEFILE=	Makefile.bsd

MAKE_ARGS=	INCLUDES="`libftdi-config --cflags`" FTLIB="`libftdi-config --libs`"

PLIST_FILES=	bin/ujprog \
		bin/ft232r_flash

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/ujprog ${STAGEDIR}${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/ft232r_flash ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>