aboutsummaryrefslogtreecommitdiffstats
path: root/devel/avra/Makefile
blob: e3c54c08980a766472e1638d9884dbbae9869ac2 (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
32
33
34
35
36
37
38
# Created by: Wes Peters <@FreeBSD.org>
# $FreeBSD$

PORTNAME=   avra
PORTVERSION=    1.3.0
CATEGORIES= devel
MASTER_SITES=   SF/${PORTNAME}/${PORTVERSION}

MAINTAINER= graudeejs@gmail.com
COMMENT=    Macro Assembler for Atmel AVR microcontrollers

LICENSE=    GPLv2 GPLv3
LICENSE_COMB=   dual

WRKSRC=     ${WRKDIR}/${DISTNAME}/src

USE_BZIP2=  yes
USE_GMAKE=  yes
MAKEFILE=   ${WRKSRC}/makefiles/Makefile.linux
MAKE_ARGS=  CC="${CC}" LD="${CC}" CFLAGS="${CFLAGS}" LDFLAGS=""

PORTDOCS=   *
PORTEXAMPLES=   *
PLIST_FILES=    bin/avra

NO_STAGE=   yes
do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/avra ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @(cd ${WRKSRC}/../doc && ${COPYTREE_SHARE} . ${DOCSDIR})
.endif
.if !defined(NOPORTEXAMPLES)
    @${MKDIR} ${EXAMPLESDIR}
    @(cd ${WRKSRC}/../examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
.endif

.include <bsd.port.mk>