/usr/ports/mystuff
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add devel/arduino-makefile 1.6.0

This is a cross-platform mk library that can be used instead of the
custom Makefile that the devel/arduino port used to ship with.

+194
+35
devel/arduino-makefile/Makefile
··· 1 + # $OpenBSD$ 2 + 3 + COMMENT= Makefile to build and upload Arduino sketches 4 + 5 + V= 1.6.0 6 + GH_ACCOUNT= sudar 7 + GH_PROJECT= Arduino-Makefile 8 + GH_TAGNAME= ${V} 9 + PKGNAME= arduino-makefile-${V} 10 + 11 + CATEGORIES= devel 12 + 13 + # LGPL 14 + PERMIT_PACKAGE_CDROM= Yes 15 + 16 + RUN_DEPENDS= devel/arduino \ 17 + devel/gmake \ 18 + devel/py-serial 19 + 20 + NO_BUILD= Yes 21 + NO_TEST= Yes 22 + PKG_ARCH= * 23 + 24 + do-install: 25 + ${INSTALL_DATA_DIR} ${PREFIX}/share/arduino-makefile 26 + cp -r ${WRKDIST}/*.mk ${PREFIX}/share/arduino-makefile/ 27 + ${INSTALL_SCRIPT} ${WRKDIST}/bin/ard-reset-arduino ${PREFIX}/bin 28 + ${INSTALL_SCRIPT} ${WRKDIST}/bin/robotis-loader ${PREFIX}/bin 29 + ${INSTALL_MAN} ${WRKDIST}/ard-reset-arduino.1 ${PREFIX}/man/man1 30 + ${INSTALL_MAN} ${WRKDIST}/robotis-loader.1 ${PREFIX}/man/man1 31 + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/arduino-makefile 32 + cp -r ${WRKDIST}/examples/* ${PREFIX}/share/examples/arduino-makefile/ 33 + find ${PREFIX} -type f -name \*.orig -exec rm '{}' \; 34 + 35 + .include <bsd.port.mk>
+2
devel/arduino-makefile/distinfo
··· 1 + SHA256 (Arduino-Makefile-1.6.0.tar.gz) = ET9ozSIkyAFMEOBODzpJrW1BUgpEVWlC8RqmnNAEaxc= 2 + SIZE (Arduino-Makefile-1.6.0.tar.gz) = 65734
+27
devel/arduino-makefile/patches/patch-Arduino_mk
··· 1 + $OpenBSD$ 2 + 3 + Index: Arduino.mk 4 + --- Arduino.mk.orig 5 + +++ Arduino.mk 6 + @@ -283,7 +283,7 @@ ifndef ARDUINO_VERSION 7 + # Remove all the decimals, remove anything before/including ":", remove anything after/including "+" and finally grab the last 5 bytes. 8 + # Works for 1.0 and 1.0.1 and 1.6.10 and debian-style 2:1.0.5+dfsg2-4 9 + VERSION_FILE := $(ARDUINO_DIR)/lib/version.txt 10 + - AUTO_ARDUINO_VERSION := $(shell [ -e $(VERSION_FILE) ] && cat $(VERSION_FILE) | sed -e 's/^[0-9]://g' -e 's/[.]//g' -e 's/\+.*//g' | head -c5) 11 + + AUTO_ARDUINO_VERSION := $(shell [ -e $(VERSION_FILE) ] && cat $(VERSION_FILE) | sed -e 's/^[0-9]://g' -e 's/[.]//g' -e 's/\+.*//g' | head -n5) 12 + ifdef AUTO_ARDUINO_VERSION 13 + ARDUINO_VERSION = $(AUTO_ARDUINO_VERSION) 14 + $(call show_config_variable,ARDUINO_VERSION,[AUTODETECTED]) 15 + @@ -428,6 +428,12 @@ ifndef AVR_TOOLS_DIR 16 + else 17 + AVRDUDE_CONF = $(AVR_TOOLS_DIR)/../avrdude.conf 18 + endif 19 + + endif 20 + + 21 + + else ifeq ($(CURRENT_OS),OPENBSD) 22 + + 23 + + ifndef AVRDUDE_CONF 24 + + AVRDUDE_CONF = /etc/avrdude.conf 25 + endif 26 + 27 + else
+33
devel/arduino-makefile/patches/patch-Common_mk
··· 1 + $OpenBSD$ 2 + 3 + Index: Common.mk 4 + --- Common.mk.orig 5 + +++ Common.mk 6 + @@ -14,7 +14,7 @@ runscript_if_exists = 7 + 8 + # For message printing: pad the right side of the first argument with spaces to 9 + # the number of bytes indicated by the second argument. 10 + -space_pad_to = $(shell echo $(1) " " | head -c$(2)) 11 + +space_pad_to = $(shell echo $(1) " " | head -n$(2)) 12 + 13 + # Call with some text, and a prefix tag if desired (like [AUTODETECTED]), 14 + show_config_info = $(call arduino_output,- $(call space_pad_to,$(2),20) $(1)) 15 + @@ -41,6 +41,18 @@ else 16 + endif 17 + ifeq ($(UNAME_S),Darwin) 18 + CURRENT_OS = MAC 19 + + endif 20 + + ifeq ($(UNAME_S),OpenBSD) 21 + + CURRENT_OS = OPENBSD 22 + + ifndef ARDUINO_DIR 23 + + ARDUINO_DIR = /usr/local/share/arduino 24 + + endif 25 + + ifndef ALTERNATE_CORE_PATH 26 + + ALTERNATE_CORE_PATH = $(ARDUINO_DIR) 27 + + endif 28 + + ifndef MONITOR_PORT 29 + + MONITOR_PORT = /dev/ttyU0 30 + + endif 31 + endif 32 + endif 33 + $(call show_config_variable,CURRENT_OS,[AUTODETECTED])
+11
devel/arduino-makefile/patches/patch-bin_ard-reset-arduino
··· 1 + $OpenBSD$ 2 + 3 + Index: bin/ard-reset-arduino 4 + --- bin/ard-reset-arduino.orig 5 + +++ bin/ard-reset-arduino 6 + @@ -1,4 +1,4 @@ 7 + -#!/usr/bin/env python 8 + +#!/usr/bin/env python2.7 9 + 10 + from __future__ import print_function 11 + import serial
+11
devel/arduino-makefile/patches/patch-bin_robotis-loader
··· 1 + $OpenBSD$ 2 + 3 + Index: bin/robotis-loader 4 + --- bin/robotis-loader.orig 5 + +++ bin/robotis-loader 6 + @@ -1,4 +1,4 @@ 7 + -#!/usr/bin/python 8 + +#!/usr/bin/python2.7 9 + 10 + # This script sends a program on a robotis board (OpenCM9.04 or CM900) 11 + # using the robotis bootloader (used in OpenCM IDE)
+10
devel/arduino-makefile/pkg/DESCR
··· 1 + This is a very simple Makefile which knows how to build Arduino 2 + sketches. It defines entire workflows for compiling code, flashing 3 + it to Arduino and even communicating through Serial monitor. You 4 + don't need to change anything in the Arduino sketches. 5 + 6 + To use, create a Makefile and add: 7 + 8 + include ${PREFIX}/share/arduino-makefile/Arduino.mk 9 + 10 + Then compile with `gmake` and upload with `gmake upload`.
+65
devel/arduino-makefile/pkg/PLIST
··· 1 + @comment $OpenBSD: PLIST,v$ 2 + bin/ard-reset-arduino 3 + bin/robotis-loader 4 + @man man/man1/ard-reset-arduino.1 5 + @man man/man1/robotis-loader.1 6 + share/arduino-makefile/ 7 + share/arduino-makefile/Arduino.mk 8 + share/arduino-makefile/Common.mk 9 + share/arduino-makefile/OpenCM.mk 10 + share/arduino-makefile/Teensy.mk 11 + share/arduino-makefile/chipKIT.mk 12 + share/examples/arduino-makefile/ 13 + share/examples/arduino-makefile/ATtinyBlink/ 14 + share/examples/arduino-makefile/ATtinyBlink/ATtinyBlink.ino 15 + share/examples/arduino-makefile/ATtinyBlink/Makefile 16 + share/examples/arduino-makefile/AnalogInOutSerial/ 17 + share/examples/arduino-makefile/AnalogInOutSerial/AnalogInOutSerial.ino 18 + share/examples/arduino-makefile/AnalogInOutSerial/Makefile 19 + share/examples/arduino-makefile/Blink/ 20 + share/examples/arduino-makefile/Blink/Blink.ino 21 + share/examples/arduino-makefile/Blink/Makefile 22 + share/examples/arduino-makefile/BlinkChipKIT/ 23 + share/examples/arduino-makefile/BlinkChipKIT/BlinkChipKIT.pde 24 + share/examples/arduino-makefile/BlinkChipKIT/Makefile 25 + share/examples/arduino-makefile/BlinkInAVRC/ 26 + share/examples/arduino-makefile/BlinkInAVRC/Makefile 27 + share/examples/arduino-makefile/BlinkInAVRC/blink.c 28 + share/examples/arduino-makefile/BlinkNetworkRPi/ 29 + share/examples/arduino-makefile/BlinkNetworkRPi/ATtinyBlink.ino 30 + share/examples/arduino-makefile/BlinkNetworkRPi/Makefile 31 + share/examples/arduino-makefile/BlinkOpenCM/ 32 + share/examples/arduino-makefile/BlinkOpenCM/Blink.ino 33 + share/examples/arduino-makefile/BlinkOpenCM/Makefile 34 + share/examples/arduino-makefile/BlinkTeensy/ 35 + share/examples/arduino-makefile/BlinkTeensy/Blink.ino 36 + share/examples/arduino-makefile/BlinkTeensy/Makefile 37 + share/examples/arduino-makefile/BlinkWithoutDelay/ 38 + share/examples/arduino-makefile/BlinkWithoutDelay/BlinkWithoutDelay.ino 39 + share/examples/arduino-makefile/BlinkWithoutDelay/Makefile 40 + share/examples/arduino-makefile/Fade/ 41 + share/examples/arduino-makefile/Fade/Fade.ino 42 + share/examples/arduino-makefile/Fade/Makefile 43 + share/examples/arduino-makefile/HelloWorld/ 44 + share/examples/arduino-makefile/HelloWorld/HelloWorld.ino 45 + share/examples/arduino-makefile/HelloWorld/Makefile 46 + share/examples/arduino-makefile/MakefileExample/ 47 + share/examples/arduino-makefile/MakefileExample/Makefile-3rd_party-board.mk 48 + share/examples/arduino-makefile/MakefileExample/Makefile-example.mk 49 + share/examples/arduino-makefile/README.md 50 + share/examples/arduino-makefile/SerialPrint/ 51 + share/examples/arduino-makefile/SerialPrint/Makefile 52 + share/examples/arduino-makefile/SerialPrint/SerialPrint.ino 53 + share/examples/arduino-makefile/TinySoftWareSerial/ 54 + share/examples/arduino-makefile/TinySoftWareSerial/Makefile 55 + share/examples/arduino-makefile/TinySoftWareSerial/TinySoftwareSerial.ino 56 + share/examples/arduino-makefile/WebServer/ 57 + share/examples/arduino-makefile/WebServer/Makefile 58 + share/examples/arduino-makefile/WebServer/WebServer.ino 59 + share/examples/arduino-makefile/master_reader/ 60 + share/examples/arduino-makefile/master_reader/Makefile 61 + share/examples/arduino-makefile/master_reader/master_reader.ino 62 + share/examples/arduino-makefile/toneMelody/ 63 + share/examples/arduino-makefile/toneMelody/Makefile 64 + share/examples/arduino-makefile/toneMelody/pitches.h 65 + share/examples/arduino-makefile/toneMelody/toneMelody.ino