summaryrefslogtreecommitdiff
path: root/devel/bossa/Makefile
blob: e2783fe3a656aa51af1883d11a2dc96a778eb81c (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
38
39
40
41
42
43
44
45
46
47
48
49
# $FreeBSD$

PORTNAME=	bossa
PORTVERSION=	1.7.0
PORTREVISION=	9
CATEGORIES=	devel

MAINTAINER=	kevans@FreeBSD.org
COMMENT=	Flash programmer for Atmel SAM microcontrollers

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

USE_GITHUB=	yes
GH_ACCOUNT=	shumatech
GH_PROJECT=	${PORTNAME:tu}

USES=		compiler:c++11-lang gmake

CXXFLAGS+=	-I${PREFIX}/include
LDFLAGS+=	-L${PREFIX}/lib

ALL_TARGET=	bin/bossac

OPTIONS_DEFINE=		BOSSA BOSSASH
OPTIONS_DEFAULT=	BOSSASH
OPTIONS_SUB=		yes

BOSSA_DESC=		Include BOSSA GUI application using wxWidgets
BOSSA_ALL_TARGET=	bin/bossa
BOSSA_USE=		wx=3.0 wx_comps=wx

BOSSASH_DESC=		Include BOSSA Shell
BOSSASH_USES=		readline
BOSSASH_ALL_TARGET=	bin/bossash

post-extract:
	${REINPLACE_CMD} -e 's/wx-config/$${WX_CONFIG}/' ${WRKSRC}/Makefile

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

do-install-BOSSA-on:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/bossa ${STAGEDIR}${PREFIX}/bin/bossa

do-install-BOSSASH-on:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/bossash ${STAGEDIR}${PREFIX}/bin/bossash

.include <bsd.port.mk>