A new port has been created to install the Arduino environment on FreeBSD.
Required dependencies like avr-gcc, avr-libc, and avrdude are installed automatically by the ports system.
To install, update the ports tree using csup or portsnap. Then, as root:
cd /usr/ports/devel/arduino
make install clean
The preferences.txt file is located in ~/.arduino for each user.
Libraries can be added in ~/.arduino/libraries .
Steven Kreuzer generously assisted with the creation of the port, and Joerg Wunsch also deserves thanks for quick fixes to avr-libc.