Bug 213496

Summary: devel/arduino-builder: Package hardware definitions
Product: Ports & Packages Reporter: Kyle Evans <kevans>
Component: Individual Port(s)Assignee: Boris Samorodov <bsam>
Status: Closed FIXED    
Severity: Affects Some People CC: bsam
Priority: --- Keywords: easy, patch
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
svn(1) diff of devel/arduino-builder kevans: maintainer-approval+

Description Kyle Evans freebsd_committer freebsd_triage 2016-10-15 05:55:31 UTC
Created attachment 175778 [details]
svn(1) diff of devel/arduino-builder

Arduino 1.6's build system actually pulls in its hardware definitions from arduino-builder. Switching over what I've got working so far to not downloading *anything* in do-build revealed this as an issue, so we go ahead and package these with arduino-builder instead.

As a nice consequence, this provides us with *almost* everything we need to use Arduino stuff without even installing the IDE yet -- the exception being a proper 'tools/' directory, but this too may get separated out with either yet another port or a future iteration of devel/arduino-builder. To be honest, though, I'm leaning towards an arduino-tools port that brings in the tools/ stuff. This would lead us to:

arduino16 depends on: devel/arduino-core, devel/arduino-builder, devel/arduino-tools, devel/openjdk8 (build, run)

devel/arduino-core depends on: nothing*

devel/arduino-builder depends on: go (build)

devel/arduino-tools depends on: devel/avrdude, devel/bossa, devel/arm-none-eabi-gcc, devel/arm-none-eabi-newlib (pending), devel/arduino-ctags, devel/arduino-core (for CMSIS materials in the SAM core).

* arduino-core is totally awesome, because this could be usable without the arduino-tools installed

This build setup, while kinda branchy as far as a tree goes, would allow one to have everything they need to build Arduino sketches without pulling in Java as a dependency by just building devel/arduino-{core,builder,tools} and they would have a complete command-line setup.
Comment 1 Boris Samorodov freebsd_committer freebsd_triage 2016-10-15 13:36:39 UTC
Take.
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-10-15 21:22:34 UTC
A commit references this bug:

Author: bsam
Date: Sat Oct 15 21:22:06 UTC 2016
New revision: 424029
URL: https://svnweb.freebsd.org/changeset/ports/424029

Log:
  devel/arduino-builder: Add package hardware definitions.

  PR:		213496
  Submitted by:	Kyle Evans <bsdports@kyle-evans.net> (maintiner))

Changes:
  head/devel/arduino-builder/Makefile
Comment 3 Boris Samorodov freebsd_committer freebsd_triage 2016-10-15 21:28:36 UTC
Committed, thanks!