Changes since 2.1:
- arduino-boards needs explicit boards.txt for build.pid, build.vid,
upload.protocol, and upload.speed in case ARDUINO_DIR has changed.
Changes since 1.5:
- Add support for Arduino 1.0 through 1.8 by autodetecting paths.
- Add -fno-threadsafe-statics to fix "undefined reference to
`__cxa_guard_release'" error that can occur because gcc enables
thread-safe initialization by default.
Honor PREFIX in Python script and require 3.6+ due to its use of
f-strings.
Changes since 1.3:
- Turn off MK_DEBUG_FILES, it doesn't make sense for arduino.
- Changing "cd dir && make" with "make -C dir" solves parallel
build failures.
While we're here, remove RUN_DEPENDS; we're just installing files
that can be used devel/arduino or devel/arduino18. Also break up
long lines.
- Must force SIZE to be avr-size since /usr/share/mk/sys.mk is
included so early.
- Convert arduino-boards.py to python3.
Approved by: matthew (mentor, implicit)
- Add .ino file instead of .cpp to SRCS when we have a .ino
file.
Remove test for .ino and .cpp since it doesn't work when we
aren't using an obj dir.
- Instead of generating an error for all make targets when
AVRDUDE_PORT is "arduino" and AVRDUDE_PORT is not defined
allow everything except install/flash.
Reviewed by: ler (mentor)
Approved by: ler (mentor)
Differential Revision: https://reviews.freebsd.org/D14525
(bsd.arduino.mk) that is used to build Arduino sketches from
the command line. It is designed to be a FreeBSD-friendly
alternative to the existing gmake based devel/arduino-mk port.
It includes a man page and optionally installs an example sketch
with an exmaple Makefile.
Reviewed by: matthew (mentor)
Approved by: matthew (mentor)
Differential Revision: https://reviews.freebsd.org/D13262