aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2016-10-29 05:32:01 +0800
committerbsam <bsam@FreeBSD.org>2016-10-29 05:32:01 +0800
commitcbbaa5f640453b51bb41a3c414be4876d527df92 (patch)
tree3456497210b2fb45be1588e87d6847fe2bd8dbe5 /devel
parent82d68b0d213a0a568f6d1cebaab205e3d71e2957 (diff)
downloadfreebsd-ports-gnome-cbbaa5f640453b51bb41a3c414be4876d527df92.tar.gz
freebsd-ports-gnome-cbbaa5f640453b51bb41a3c414be4876d527df92.tar.zst
freebsd-ports-gnome-cbbaa5f640453b51bb41a3c414be4876d527df92.zip
devel/arduino-core: Enable SAM platforms for use in the IDE,
simplify package_index_bundled.json. PR: 213838 Submitted by: Kyle Enavs <bsdports@kyle-evans.net> (maintainer)
Diffstat (limited to 'devel')
-rw-r--r--devel/arduino-core/Makefile2
-rw-r--r--devel/arduino-core/files/extrapatch-hardware_arduino_samd_platform.txt20
-rw-r--r--devel/arduino-core/files/patch-hardware_arduino_sam_platform.txt11
-rw-r--r--devel/arduino-core/files/patch-hardware_package__index__bundled.json130
4 files changed, 150 insertions, 13 deletions
diff --git a/devel/arduino-core/Makefile b/devel/arduino-core/Makefile
index 60577d0966d1..23cb528cd9b3 100644
--- a/devel/arduino-core/Makefile
+++ b/devel/arduino-core/Makefile
@@ -2,6 +2,7 @@
PORTNAME= arduino-core
PORTVERSION= 1.6.12
+PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= bsdports@kyle-evans.net
@@ -22,6 +23,7 @@ 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
+SAMD_EXTRA_PATCHES= ${PATCHDIR}/extrapatch-hardware_arduino_samd_platform.txt
.include <bsd.port.pre.mk>
diff --git a/devel/arduino-core/files/extrapatch-hardware_arduino_samd_platform.txt b/devel/arduino-core/files/extrapatch-hardware_arduino_samd_platform.txt
new file mode 100644
index 000000000000..bd0a929484a4
--- /dev/null
+++ b/devel/arduino-core/files/extrapatch-hardware_arduino_samd_platform.txt
@@ -0,0 +1,20 @@
+--- hardware/arduino/samd/platform.txt.orig 2016-10-12 14:28:09 UTC
++++ hardware/arduino/samd/platform.txt
+@@ -111,7 +111,7 @@ recipe.size.regex=\.text\s+([0-9]+).*
+ #
+ # BOSSA
+ #
+-tools.bossac.path={runtime.tools.bossac-1.7.0.path}
++tools.bossac.path={runtime.tools.bossac.path}/bin
+ tools.bossac.cmd=bossac
+ tools.bossac.cmd.windows=bossac.exe
+
+@@ -125,7 +125,7 @@ tools.bossac_remote.upload.pattern=/usr/
+ # OpenOCD sketch upload
+ #
+
+-tools.openocd.path={runtime.tools.openocd-0.9.0-arduino.path}
++tools.openocd.path={runtime.tools.openocd.path}/bin
+ tools.openocd.cmd=bin/openocd
+ tools.openocd.cmd.windows=bin/openocd.exe
+
diff --git a/devel/arduino-core/files/patch-hardware_arduino_sam_platform.txt b/devel/arduino-core/files/patch-hardware_arduino_sam_platform.txt
new file mode 100644
index 000000000000..8c0a50c0bd1b
--- /dev/null
+++ b/devel/arduino-core/files/patch-hardware_arduino_sam_platform.txt
@@ -0,0 +1,11 @@
+--- hardware/arduino/sam/platform.txt.orig 2016-09-21 10:09:37 UTC
++++ hardware/arduino/sam/platform.txt
+@@ -96,7 +96,7 @@ recipe.size.regex=\.text\s+([0-9]+).*
+ # -------------------
+
+ # BOSSA
+-tools.bossac.path={runtime.tools.bossac.path}
++tools.bossac.path={runtime.tools.bossac.path}/bin
+ tools.bossac.cmd=bossac
+ tools.bossac.cmd.windows=bossac.exe
+
diff --git a/devel/arduino-core/files/patch-hardware_package__index__bundled.json b/devel/arduino-core/files/patch-hardware_package__index__bundled.json
index 6d757817e876..1d87da379640 100644
--- a/devel/arduino-core/files/patch-hardware_package__index__bundled.json
+++ b/devel/arduino-core/files/patch-hardware_package__index__bundled.json
@@ -1,22 +1,126 @@
---- hardware/package_index_bundled.json.orig 2016-10-04 12:22:50 UTC
+--- hardware/package_index_bundled.json.orig 2016-09-21 10:09:37 UTC
+++ hardware/package_index_bundled.json
-@@ -63,6 +63,9 @@
+@@ -17,10 +17,6 @@
+ "help": {
+ "online": "http://www.arduino.cc/en/Reference/HomePage"
+ },
+- "url": "http://downloads.arduino.cc/cores/avr-1.6.13.tar.bz2",
+- "archiveFileName": "avr-1.6.14.tar.bz2",
+- "checksum": "SHA-256:a5f7d66c83e3d4722f4c8dab42bdbcf5af98c611ffca1802ef3d1957b894bd92",
+- "size": "4993455",
+ "boards": [
+ {"name": "Arduino Yún"},
+ {"name": "Arduino/Genuino Uno"},
+@@ -55,6 +51,22 @@
+ "version": "6.3.0-arduino6"
+ }
+ ]
++ },
++ {
++ "name": "Arduino SAM Boards (32-bits ARM Cortex-M3)",
++ "architecture": "sam",
++ "version": "1.6.9",
++ "category": "Arduino",
++ "boards": [
++ {"name": "Arduino Due"}
++ ],
++ "toolsDependencies": [
++ {
++ "packager": "arduino",
++ "name": "bossac",
++ "version": "1.7.0"
++ }
++ ]
+ }
+ ],
+ "tools": [
+@@ -63,39 +75,7 @@
"version": "6.3.0-arduino6",
"systems": [
{
+- "size": "644600",
+- "checksum": "SHA-256:2426207423d58eb0e5fc4df9493418f1cb54ba3f328fdc7c3bb582f920b9cbe7",
+- "host": "arm-linux-gnueabihf",
+- "archiveFileName": "avrdude-6.3.0-arduino6-armhf-pc-linux-gnu.tar.bz2",
+- "url": "http://downloads.arduino.cc/tools/avrdude-6.0.1-arduino5-armhf-pc-linux-gnu.tar.bz2"
+- },
+- {
+- "size": "696273",
+- "checksum": "SHA-256:d9a039c9e92d3dbb2011e75e6c044a1a4a2789e2fbf8386b1d580994811be084",
+- "host": "i386-apple-darwin11",
+- "archiveFileName": "avrdude-6.3.0-arduino6-i386-apple-darwin11.tar.bz2",
+- "url": "http://downloads.arduino.cc/tools/avrdude-6.0.1-arduino5-i386-apple-darwin11.tar.bz2"
+- },
+- {
+- "size": "746653",
+- "checksum": "SHA-256:97b4875cad6110c70101bb776f3ac37b64a2e73f036cd0b10afb6f4be96a6621",
+- "host": "x86_64-linux-gnu",
+- "archiveFileName": "avrdude-6.3.0-arduino6-x86_64-pc-linux-gnu.tar.bz2",
+- "url": "http://downloads.arduino.cc/tools/avrdude-6.0.1-arduino5-x86_64-pc-linux-gnu.tar.bz2"
+- },
+- {
+- "size": "733127",
+- "checksum": "SHA-256:5f4bc4b0957b1d34cec9908b7f84a7c297b894b39fe16a4992c284b24c00d6fb",
+- "host": "i686-linux-gnu",
+- "archiveFileName": "avrdude-6.3.0-arduino6-i686-pc-linux-gnu.tar.bz2",
+- "url": "http://downloads.arduino.cc/tools/avrdude-6.0.1-arduino5-i686-pc-linux-gnu.tar.bz2"
+- },
+- {
+- "size": "645859",
+- "checksum": "SHA-256:7468a1bcdfa459d175a095b102c0de28efc466accfb104305fbcad7832659ddc",
+- "host": "i686-mingw32",
+- "archiveFileName": "avrdude-6.3.0-arduino6-i686-mingw32.zip",
+- "url": "http://downloads.arduino.cc/tools/avrdude-6.0.1-arduino5-i686-mingw32.zip"
+ "host": "%%ARCH%%-freebsd%%OSREL%%"
-+ },
-+ {
- "size": "644600",
- "checksum": "SHA-256:2426207423d58eb0e5fc4df9493418f1cb54ba3f328fdc7c3bb582f920b9cbe7",
- "host": "arm-linux-gnueabihf",
-@@ -104,6 +107,9 @@
+ }
+ ]
+ },
+@@ -104,39 +84,16 @@
"version": "4.9.2-atmel3.5.3-arduino2",
"systems": [
{
+- "size": "27400889",
+- "checksum": "SHA-256:77f300d519bc6b9a25df17b36cb303218e9a258c059b2f6bff8f71a0d8f96821",
+- "host": "arm-linux-gnueabihf",
+- "archiveFileName": "avr-gcc-4.9.2-atmel3.5.3-arduino2-armhf-pc-linux-gnu.tar.bz2",
+- "url": "http://downloads.arduino.cc/tools/avr-gcc-4.9.2-atmel3.5.3-arduino2-armhf-pc-linux-gnu.tar.bz2"
+- },
+- {
+- "size": "27048070",
+- "checksum": "SHA-256:311258af188defe24a4b341e4e1f4dc93ca6c80516d3e3b55a2fc07a7050248b",
+- "host": "i386-apple-darwin11",
+- "archiveFileName": "avr-gcc-4.9.2-atmel3.5.3-arduino2-i386-apple-darwin11.tar.bz2",
+- "url": "http://downloads.arduino.cc/tools/avr-gcc-4.9.2-atmel3.5.3-arduino2-i386-apple-darwin11.tar.bz2"
+- },
+- {
+- "size": "43847945",
+- "checksum": "SHA-256:f8e6ede8746c70be01ec79a30803277cd94360cc5b2e104762da0fbcf536fcc6",
+- "host": "i686-mingw32",
+- "archiveFileName": "avr-gcc-4.9.2-atmel3.5.3-arduino2-i686-mingw32.zip",
+- "url": "http://downloads.arduino.cc/tools/avr-gcc-4.9.2-atmel3.5.3-arduino2-i686-mingw32.zip"
+- },
+- {
+- "size": "29292729",
+- "checksum": "SHA-256:f108951e7c4dc90926d1fc76cc27549f6ea63c702a2bb7ff39647a19ae86ec68",
+- "host": "i686-linux-gnu",
+- "archiveFileName": "avr-gcc-4.9.2-atmel3.5.3-arduino2-i686-pc-linux-gnu.tar.bz2",
+- "url": "http://downloads.arduino.cc/tools/avr-gcc-4.9.2-atmel3.5.3-arduino2-i686-pc-linux-gnu.tar.bz2"
+- },
+ "host": "%%ARCH%%-freebsd%%OSREL%%"
-+ },
-+ {
- "size": "27400889",
- "checksum": "SHA-256:77f300d519bc6b9a25df17b36cb303218e9a258c059b2f6bff8f71a0d8f96821",
- "host": "arm-linux-gnueabihf",
++ }
++ ]
++ },
++ {
++ "name": "bossac",
++ "version": "1.7.0",
++ "systems": [
+ {
+- "size": "29882960",
+- "checksum": "SHA-256:3903a6d1bb9fdd91727e504b5993d5501f119bcb7f99f7aee98a2101e5629188",
+- "host": "x86_64-linux-gnu",
+- "archiveFileName": "avr-gcc-4.9.2-atmel3.5.3-arduino2-x86_64-pc-linux-gnu.tar.bz2",
+- "url": "http://downloads.arduino.cc/tools/avr-gcc-4.9.2-atmel3.5.3-arduino2-x86_64-pc-linux-gnu.tar.bz2"
++ "host": "%%ARCH%%-freebsd%%OSREL%%"
+ }
+ ]
+ }