aboutsummaryrefslogtreecommitdiffstats
path: root/comms/dfu-programmer/Makefile
blob: 9c0182447a95c019f76829afb0a197a903f4e6a2 (plain) (blame)
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
# Created by: elbarto@ArcadeBSD.org
# $FreeBSD$

PORTNAME=   dfu-programmer
PORTVERSION=    0.5.5
CATEGORIES= comms
MASTER_SITES=   SF

MAINTAINER= byu17@uclive.ac.nz
COMMENT=    Device Firmware Update based USB programmer for Atmel chips

GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib -lusb

PLIST_FILES=    bin/dfu-programmer

MAN1=       dfu-programmer.1
PORTDOCS=   *

.include <bsd.port.options.mk>

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/docs/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>