/usr/ports/mystuff

devel/arduino-makefile: feedback from sthen

+11 -26
+7
devel/arduino-makefile/Makefile
··· 17 17 devel/gmake \ 18 18 devel/py-serial 19 19 20 + MODULES= lang/python 21 + MODPY_BUILDDEP= No 22 + MODPY_ADJ_FILES= bin/ard-reset-arduino bin/robotis-loader 23 + 20 24 NO_BUILD= Yes 21 25 NO_TEST= Yes 22 26 PKG_ARCH= * 27 + 28 + do-configure: 29 + ${SUBST_CMD} ${WRKSRC}/Common.mk ${WRKSRC}/Arduino.mk 23 30 24 31 do-install: 25 32 ${INSTALL_DATA_DIR} ${PREFIX}/share/arduino-makefile
+2 -2
devel/arduino-makefile/patches/patch-Arduino_mk
··· 8 8 # Works for 1.0 and 1.0.1 and 1.6.10 and debian-style 2:1.0.5+dfsg2-4 9 9 VERSION_FILE := $(ARDUINO_DIR)/lib/version.txt 10 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) 11 + + AUTO_ARDUINO_VERSION := $(shell [ -e $(VERSION_FILE) ] && cat $(VERSION_FILE) | sed -e 's/^[0-9]://g' -e 's/[.]//g' -e 's/\+.*//g' | dd bs=1 count=5 status=none) 12 12 ifdef AUTO_ARDUINO_VERSION 13 13 ARDUINO_VERSION = $(AUTO_ARDUINO_VERSION) 14 14 $(call show_config_variable,ARDUINO_VERSION,[AUTODETECTED]) ··· 21 21 + else ifeq ($(CURRENT_OS),OPENBSD) 22 22 + 23 23 + ifndef AVRDUDE_CONF 24 - + AVRDUDE_CONF = /etc/avrdude.conf 24 + + AVRDUDE_CONF = ${SYSCONFDIR}/avrdude.conf 25 25 endif 26 26 27 27 else
+2 -2
devel/arduino-makefile/patches/patch-Common_mk
··· 8 8 # For message printing: pad the right side of the first argument with spaces to 9 9 # the number of bytes indicated by the second argument. 10 10 -space_pad_to = $(shell echo $(1) " " | head -c$(2)) 11 - +space_pad_to = $(shell echo $(1) " " | head -n$(2)) 11 + +space_pad_to = $(shell echo $(1) " " | dd bs=1 count=$(2) status=none) 12 12 13 13 # Call with some text, and a prefix tag if desired (like [AUTODETECTED]), 14 14 show_config_info = $(call arduino_output,- $(call space_pad_to,$(2),20) $(1)) ··· 20 20 + ifeq ($(UNAME_S),OpenBSD) 21 21 + CURRENT_OS = OPENBSD 22 22 + ifndef ARDUINO_DIR 23 - + ARDUINO_DIR = /usr/local/share/arduino 23 + + ARDUINO_DIR = ${LOCALBASE}/share/arduino 24 24 + endif 25 25 + ifndef ALTERNATE_CORE_PATH 26 26 + ALTERNATE_CORE_PATH = $(ARDUINO_DIR)
-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)