Arduino from the command line on FreeBSD
This is a makefile written by Craig Leres that makes it possible
to build Arduino sketches with FreeBSD make from the command line.
It includes an example sketch and Makefile which is optionally
installed in share/examples/arduino-bsd-mk
===> The following configuration options are available for arduino-bsd-mk-2.6:
EXAMPLES=on: Build and/or install examples
===> Use 'make config' to modify these settings
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568>
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
devel/arduino-bsd-mk: Update to 2.4
Changes since 2.3:
- Use NO_SHARED to avoid pic/pie flags avr-gcc doesn't support
(and don't make sense for embedded images).
Reported by: Craig Leres, kodcode
devel: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* "Waitman Gobble" <uzimac@da3m0n8t3r.com>
* <jkoshy@FreeBSD.org>
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Dalton <aaron@daltons.ca>
* Aaron H. K. Diep <ahkdiep@gmail.com>
* Aaron Hurt <ahurt@anbcs.com>
* Abel Chow <abel_chow@yahoo.com>
* Adam McLaurin
* Adam Saponara <as@php.net>
* Adam Weinberger <adamw@FreeBSD.org>
* Ade Lovett <ade@FreeBSD.org>
(Only the first 15 lines of the commit message are shown above )
devel/arduino-bsd-mk: Update to 2.2
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.
devel/arduino-bsd-mk: Update to 2.1
Changes since 2.0:
- Search for and use the boards.txt in the ARDUINO_DIR tree.
- Convert arduino-boards to f-strings.
devel/arduino-bsd-mk: Update to 2.0
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.
devel/arduino-bsd-mk: Update to 1.5
Changes since 1.4:
- Inhibit warning messages for avr-gc++ too.
- Add a depend target that adjusts for .ino sources.
devel/arduino-bsd-mk: Update to 1.4
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.
devel/arduino-bsd-mk: Update to 1.2. Changes include:
- 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)
Update to 1.1:
- 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
This adds devel/arduino-bsd-mk which installs a make(1) makefile
(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