Commit daacf8b7 authored by bsam's avatar bsam
Browse files

Core board support used in Arduino 1.6

WWW: http://www.arduino.cc

PR:		213482
Submitted by:	bsdports@kyle-evans.net
parent ef13f633
......@@ -96,6 +96,7 @@
SUBDIR += arcanist
SUBDIR += arduino
SUBDIR += arduino-builder
SUBDIR += arduino-core
SUBDIR += arduino-ctags
SUBDIR += arduino-glcd
SUBDIR += arduino-irremote
......
# $FreeBSD$
PORTNAME= arduino-core
PORTVERSION= 1.6.12
CATEGORIES= devel
MAINTAINER= bsdports@kyle-evans.net
COMMENT= Core board support for Arduino devices
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/license.txt
USE_GITHUB= yes
GH_ACCOUNT= arduino
GH_PROJECT= Arduino
STRIP= # No stripping, uses Elf firmware
OPTIONS_DEFINE= DOCS EXAMPLES SAMD
OPTIONS_SUB= yes
NO_BUILD= yes
SAMD_DESC= Core support for SAMD boards (Zero/MKR1000)
SAMD_GH_TUPLE= arduino:ArduinoCore-samd:1.6.8:samd/hardware/arduino/samd
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
ARCH= x86_64
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%ARCH%%|${ARCH}|g' -e 's|%%OSREL%%|${OSREL:R}|g' ${WRKSRC}/hardware/package_index_bundled.json
do-install:
(cd ${WRKSRC}/ && ${COPYTREE_SHARE} "hardware" ${STAGEDIR}${PREFIX}/arduino ${FIND_EXPR})
.include <bsd.port.post.mk>
TIMESTAMP = 1476459830
SHA256 (arduino-Arduino-1.6.12_GH0.tar.gz) = 081c063e34bd72c9912705f33395cdd1870424826b4365dd64439575e0f11817
SIZE (arduino-Arduino-1.6.12_GH0.tar.gz) = 81248294
SHA256 (arduino-ArduinoCore-samd-1.6.8_GH0.tar.gz) = 2e7eded445d9b9cb88babf8d17e63886258ca52103ca4b3760fbb33311e5ffe7
SIZE (arduino-ArduinoCore-samd-1.6.8_GH0.tar.gz) = 922278
--- hardware/arduino/avr/platform.txt.orig 2016-10-13 04:27:28 UTC
+++ hardware/arduino/avr/platform.txt
@@ -20,8 +20,8 @@ compiler.warning_flags.all=-Wall -Wextra
# Default "compiler.path" is correct, change only if you want to override the initial value
compiler.path={runtime.tools.avr-gcc.path}/bin/
compiler.c.cmd=avr-gcc
-compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects
-compiler.c.elf.flags={compiler.warning_flags} -Os -flto -fuse-linker-plugin -Wl,--gc-sections
+compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto
+compiler.c.elf.flags={compiler.warning_flags} -Os -flto -Wl,--gc-sections
compiler.c.elf.cmd=avr-gcc
compiler.S.flags=-c -g -x assembler-with-cpp -flto
compiler.cpp.cmd=avr-g++
--- hardware/arduino/sam/cores/arduino/itoa.c.orig 2016-10-14 15:00:06 UTC
+++ hardware/arduino/sam/cores/arduino/itoa.c
@@ -121,7 +121,7 @@ extern char* ltoa( long value, char *str
return string;
}
-extern char* utoa( unsigned long value, char *string, int radix )
+extern char* utoa( unsigned int value, char *string, int radix )
{
return ultoa( value, string, radix ) ;
}
--- hardware/arduino/sam/cores/arduino/itoa.h.orig 2016-10-14 15:00:09 UTC
+++ hardware/arduino/sam/cores/arduino/itoa.h
@@ -31,7 +31,7 @@ extern void itoa( int n, char s[] ) ;
extern char* itoa( int value, char *string, int radix ) ;
extern char* ltoa( long value, char *string, int radix ) ;
-extern char* utoa( unsigned long value, char *string, int radix ) ;
+extern char* utoa( unsigned int value, char *string, int radix ) ;
extern char* ultoa( unsigned long value, char *string, int radix ) ;
#endif /* 0 */
--- hardware/package_index_bundled.json.orig 2016-10-04 12:22:50 UTC
+++ hardware/package_index_bundled.json
@@ -63,6 +63,9 @@
"version": "6.3.0-arduino6",
"systems": [
{
+ "host": "%%ARCH%%-freebsd%%OSREL%%"
+ },
+ {
"size": "644600",
"checksum": "SHA-256:2426207423d58eb0e5fc4df9493418f1cb54ba3f328fdc7c3bb582f920b9cbe7",
"host": "arm-linux-gnueabihf",
@@ -104,6 +107,9 @@
"version": "4.9.2-atmel3.5.3-arduino2",
"systems": [
{
+ "host": "%%ARCH%%-freebsd%%OSREL%%"
+ },
+ {
"size": "27400889",
"checksum": "SHA-256:77f300d519bc6b9a25df17b36cb303218e9a258c059b2f6bff8f71a0d8f96821",
"host": "arm-linux-gnueabihf",
Core board support used in Arduino 1.6
WWW: http://www.arduino.cc
This source diff could not be displayed because it is too large. You can view the blob instead.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment