summaryrefslogtreecommitdiff
path: root/devel/arduino-mk/files
diff options
context:
space:
mode:
Diffstat (limited to 'devel/arduino-mk/files')
-rw-r--r--devel/arduino-mk/files/Makefile16
-rw-r--r--devel/arduino-mk/files/blink2.pde30
-rw-r--r--devel/arduino-mk/files/patch-arduino-mk-Arduino.mk (renamed from devel/arduino-mk/files/patch-Arduino.mk)23
3 files changed, 7 insertions, 62 deletions
diff --git a/devel/arduino-mk/files/Makefile b/devel/arduino-mk/files/Makefile
deleted file mode 100644
index 73431f39377c..000000000000
--- a/devel/arduino-mk/files/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-# @(#) $Id: Makefile 13 2011-12-31 00:07:36Z leres $ (XSE)
-# $FreeBSD$
-
-TARGET= blink2
-
-BOARD_TAG= atmega328
-
-ARDUINO_DIR= /usr/local/arduino
-
-AVRDUDE_ARD_PROGRAMMER= arduino
-AVRDUDE_ARD_BAUDRATE= 57600
-ARDUINO_PORT= /dev/arduino
-
-include $(ARDUINO_DIR)/lib/Arduino.mk
-
-CPPFLAGS+= -Werror
diff --git a/devel/arduino-mk/files/blink2.pde b/devel/arduino-mk/files/blink2.pde
deleted file mode 100644
index 9add9ab871ff..000000000000
--- a/devel/arduino-mk/files/blink2.pde
+++ /dev/null
@@ -1,30 +0,0 @@
-/* @(#) $Id: blink2.pde 18 2012-02-05 20:38:31Z leres $ (XSE) */
-
-/*
- * This is a example sketch that blinks the LED like a heartbeat
- */
-
-/* SCK is usually connected to the LED */
-#define PIN_LED_OUT SCK
-
-void
-setup()
-{
- pinMode(PIN_LED_OUT, OUTPUT);
-}
-
-void
-loop()
-{
- digitalWrite(PIN_LED_OUT, HIGH);
- delay(25);
-
- digitalWrite(PIN_LED_OUT, LOW);
- delay(50);
-
- digitalWrite(PIN_LED_OUT, HIGH);
- delay(25);
-
- digitalWrite(PIN_LED_OUT, LOW);
- delay(900);
-}
diff --git a/devel/arduino-mk/files/patch-Arduino.mk b/devel/arduino-mk/files/patch-arduino-mk-Arduino.mk
index 03c8cada92cb..c695d37cf8aa 100644
--- a/devel/arduino-mk/files/patch-Arduino.mk
+++ b/devel/arduino-mk/files/patch-arduino-mk-Arduino.mk
@@ -1,6 +1,6 @@
---- Arduino.mk.orig 2012-02-12 09:19:53.000000000 -0800
-+++ Arduino.mk 2012-08-04 23:47:14.000000000 -0700
-@@ -92,7 +92,7 @@
+--- arduino-mk/Arduino.mk.orig 2012-09-17 10:41:19.000000000 -0700
++++ arduino-mk/Arduino.mk 2012-09-17 19:21:52.000000000 -0700
+@@ -160,7 +160,7 @@
#
# ARDUINO_LIBS - A list of any libraries used by the sketch (we
# assume these are in
@@ -9,7 +9,7 @@
#
# ARDUINO_PORT - The port where the Arduino can be found (only needed
# when uploading
-@@ -176,7 +176,7 @@
+@@ -287,7 +287,7 @@
#
# Arduino version number
ifndef ARDUINO_VERSION
@@ -17,17 +17,8 @@
+ARDUINO_VERSION = %%ARDUINO%%
endif
- #
-@@ -215,7 +215,7 @@
- endif
-
- ifndef PARSE_BOARD
--PARSE_BOARD = ard-parse-boards --boards_txt=$(BOARDS_TXT)
-+PARSE_BOARD = $(ARDUINO_DIR)/tools/ard-parse-boards --boards_txt=$(BOARDS_TXT)
- endif
-
- # Which variant ? This affects the include path
-@@ -268,12 +268,12 @@
+ ########################################################################
+@@ -448,12 +448,12 @@
########################################################################
# Local sources
#
@@ -46,7 +37,7 @@
LOCAL_OBJ_FILES = $(LOCAL_C_SRCS:.c=.o) $(LOCAL_CPP_SRCS:.cpp=.o) \
$(LOCAL_CC_SRCS:.cc=.o) $(LOCAL_PDE_SRCS:.pde=.o) \
$(LOCAL_INO_SRCS:.ino=.o) $(LOCAL_AS_SRCS:.S=.o)
-@@ -392,7 +392,11 @@
+@@ -593,7 +593,11 @@
# the pde -> cpp -> o file
$(OBJDIR)/%.cpp: %.pde