Lines 1-11
Link Here
|
1 |
# New ports collection makefile for: arduino |
|
|
2 |
# Date created: 10 Feb 2010 |
3 |
# Whom: Warren Block <wblock@wonkity.com> |
4 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
5 |
|
2 |
|
6 |
PORTNAME= arduino |
3 |
PORTNAME= arduino |
7 |
PORTVERSION= 1.0.1 |
4 |
PORTVERSION= 1.0.1 |
8 |
PORTREVISION= 1 |
5 |
PORTREVISION= 2 |
9 |
PORTEPOCH= 1 |
6 |
PORTEPOCH= 1 |
10 |
CATEGORIES= devel java lang |
7 |
CATEGORIES= devel java lang |
11 |
MASTER_SITES= GOOGLE_CODE |
8 |
MASTER_SITES= GOOGLE_CODE |
Lines 20-25
Link Here
|
20 |
${LOCALBASE}/avr/include/avr/io.h:${PORTSDIR}/devel/avr-libc |
17 |
${LOCALBASE}/avr/include/avr/io.h:${PORTSDIR}/devel/avr-libc |
21 |
|
18 |
|
22 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
19 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
|
|
20 |
USE_DOS2UNIX= yes |
23 |
|
21 |
|
24 |
USE_JAVA= 1.6+ |
22 |
USE_JAVA= 1.6+ |
25 |
NO_BUILD= yes |
23 |
NO_BUILD= yes |
Lines 34-59
Link Here
|
34 |
${PREFIX}/${PORTNAME}/logo.png \ |
32 |
${PREFIX}/${PORTNAME}/logo.png \ |
35 |
"arduino" "Development;IDE;" "false" |
33 |
"arduino" "Development;IDE;" "false" |
36 |
|
34 |
|
37 |
OPTIONS_DEFINE+= DOCS EXAMPLES |
35 |
OPTIONS_DEFINE+= ATMEGA644 DOCS EXAMPLES |
|
|
36 |
ATMEGA644_DESC= Patch boards.txt adding ATmega644 values |
38 |
DOCS_DESC= Install the reference documents |
37 |
DOCS_DESC= Install the reference documents |
39 |
|
38 |
|
|
|
39 |
INSLIST= arduino hardware lib libraries logo.png revisions.txt tools |
40 |
|
40 |
.include <bsd.port.options.mk> |
41 |
.include <bsd.port.options.mk> |
41 |
|
42 |
|
|
|
43 |
.if ${PORT_OPTIONS:MATMEGA644} |
44 |
EXTRA_PATCHES+= ${FILESDIR}/extrapatch-hardware-arduino-boards.txt |
45 |
.endif |
46 |
|
42 |
.if empty(PORT_OPTIONS:MDOCS) |
47 |
.if empty(PORT_OPTIONS:MDOCS) |
43 |
PLIST_SUB+= REFDOCS="@comment " |
48 |
PLIST_SUB+= REFDOCS="@comment " |
44 |
.else |
49 |
.else |
45 |
PLIST_SUB+= REFDOCS="" |
50 |
PLIST_SUB+= REFDOCS="" |
|
|
51 |
INSLIST+= reference |
46 |
.endif |
52 |
.endif |
47 |
|
53 |
|
48 |
.if empty(PORT_OPTIONS:MEXAMPLES) |
54 |
.if empty(PORT_OPTIONS:MEXAMPLES) |
49 |
PLIST_SUB+= EXAMPLES="@comment " |
55 |
PLIST_SUB+= EXAMPLES="@comment " |
|
|
56 |
FIND_EXCLUDE= "! -path */examples ! -path */examples/* -prune" |
50 |
.else |
57 |
.else |
51 |
PLIST_SUB+= EXAMPLES="" |
58 |
PLIST_SUB+= EXAMPLES="" |
|
|
59 |
FIND_EXCLUDE= |
60 |
INSLIST+= examples |
52 |
.endif |
61 |
.endif |
53 |
|
62 |
|
54 |
post-patch: |
63 |
post-patch: |
55 |
@${RM} ${WRKSRC}/hardware/arduino/bootloaders/atmega8/ATmegaBOOT.c.orig |
64 |
@${RM} ${WRKSRC}/hardware/arduino/bootloaders/atmega8/ATmegaBOOT.c.orig |
|
|
65 |
@${RM} ${WRKSRC}/hardware/arduino/cores/arduino/HardwareSerial.cpp.orig |
66 |
.if ${PORT_OPTIONS:MATMEGA644} |
67 |
@${RM} ${WRKSRC}/hardware/arduino/boards.txt.orig |
68 |
.endif |
56 |
@${RM} -rf ${WRKSRC}/hardware/tools/ |
69 |
@${RM} -rf ${WRKSRC}/hardware/tools/ |
|
|
70 |
@${RMDIR} ${WRKSRC}/hardware/arduino/firmwares/arduino-usbserial/.dep |
57 |
@${MKDIR} ${WRKSRC}/hardware/tools/avr/ |
71 |
@${MKDIR} ${WRKSRC}/hardware/tools/avr/ |
58 |
@${LN} -s ${PREFIX}/bin ${WRKSRC}/hardware/tools/avr/bin |
72 |
@${LN} -s ${PREFIX}/bin ${WRKSRC}/hardware/tools/avr/bin |
59 |
@${LN} -s ${PREFIX}/etc ${WRKSRC}/hardware/tools/avr/etc |
73 |
@${LN} -s ${PREFIX}/etc ${WRKSRC}/hardware/tools/avr/etc |
Lines 64-80
Link Here
|
64 |
@${MV} ${WRKSRC}/reference/img/logo.png ${WRKSRC}/ |
78 |
@${MV} ${WRKSRC}/reference/img/logo.png ${WRKSRC}/ |
65 |
@${RM} -rf ${WRKSRC}/reference/img/ |
79 |
@${RM} -rf ${WRKSRC}/reference/img/ |
66 |
|
80 |
|
67 |
.if empty(PORT_OPTIONS:MDOCS) |
|
|
68 |
@${RM} -rf ${WRKSRC}/reference |
69 |
.endif |
70 |
.if empty(PORT_OPTIONS:MEXAMPLES) |
71 |
@${RM} -rf ${WRKSRC}/examples |
72 |
@${RM} -rf ${WRKSRC}/libraries/*/examples |
73 |
.endif |
74 |
|
75 |
do-install: |
81 |
do-install: |
76 |
@${MKDIR} ${PREFIX}/${PORTNAME} |
82 |
@${MKDIR} ${PREFIX}/${PORTNAME} |
77 |
@${CP} -Rp ${WRKSRC}/* ${PREFIX}/${PORTNAME} |
83 |
@(cd ${WRKSRC}/ && ${COPYTREE_SHARE} "${INSLIST}" ${PREFIX}/${PORTNAME} ${FIND_EXCLUDE}) |
78 |
@${INSTALL_SCRIPT} ${WRKDIR}/arduino ${PREFIX}/bin/ |
84 |
@${INSTALL_SCRIPT} ${WRKDIR}/arduino ${PREFIX}/bin/ |
79 |
|
85 |
|
80 |
post-install: |
86 |
post-install: |