Update port to track github. This is the recommended mechanism by the author. This update enables flashing of teensy 3.x boards. Tested by myself and OK sthen@
This commit is contained in:
parent
70fc0473bd
commit
b3a372c78b
@ -1,22 +1,28 @@
|
||||
# $OpenBSD: Makefile,v 1.9 2015/05/03 13:31:49 bmercer Exp $
|
||||
# $OpenBSD: Makefile,v 1.10 2015/06/08 13:36:10 bmercer Exp $
|
||||
|
||||
COMMENT= in-system programmer for Teensy boards
|
||||
|
||||
V= 2.1
|
||||
REVISION= 0
|
||||
|
||||
DISTNAME= teensy_loader_cli.${V}
|
||||
PKGNAME= teensyloader-${V}
|
||||
CATEGORIES= devel
|
||||
EXTRACT_SUFX= .zip
|
||||
|
||||
GH_COMMIT= 001da416bc362ff24485ff97e3a729bd921afe98
|
||||
GH_ACCOUNT= PaulStoffregen
|
||||
GH_PROJECT= teensy_loader_cli
|
||||
|
||||
HOMEPAGE= http://www.pjrc.com/teensy/
|
||||
|
||||
# GPLv3
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
WANTLIB= c
|
||||
WANTLIB= c pthread usb
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}
|
||||
LIB_DEPENDS= devel/libusb-compat
|
||||
|
||||
CONFIGURE_STYLE= None
|
||||
WRKDIST= ${WRKDIR}/teensy_loader_cli
|
||||
MAKE_FILE= Makefile.bsd
|
||||
NO_TEST= Yes
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (teensy_loader_cli.2.1.zip) = 2v0EDWdItS4NSgGEbUE28zVMon3cNqVe0A0KCvCQLUY=
|
||||
SIZE (teensy_loader_cli.2.1.zip) = 36241
|
||||
SHA256 (teensy_loader_cli.2.1.tar.gz) = b0q/x2jDBiRsqOWwI0wrZSLYDZ7rTsNwc9WNeKvkvnQ=
|
||||
SIZE (teensy_loader_cli.2.1.tar.gz) = 66761
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-Makefile_bsd,v 1.2 2015/05/03 13:31:49 bmercer Exp $
|
||||
--- Makefile.bsd.orig Sun Apr 19 21:29:46 2015
|
||||
+++ Makefile.bsd Thu Apr 23 16:53:05 2015
|
||||
$OpenBSD: patch-Makefile_bsd,v 1.3 2015/06/08 13:36:10 bmercer Exp $
|
||||
--- Makefile.bsd.orig Fri Jun 5 09:38:01 2015
|
||||
+++ Makefile.bsd Fri Jun 5 09:39:20 2015
|
||||
@@ -1,6 +1,6 @@
|
||||
-OS ?= FreeBSD
|
||||
+#OS ?= FreeBSD
|
||||
@ -10,8 +10,14 @@ $OpenBSD: patch-Makefile_bsd,v 1.2 2015/05/03 13:31:49 bmercer Exp $
|
||||
|
||||
CFLAGS ?= -O2 -Wall
|
||||
CC ?= gcc
|
||||
@@ -13,9 +13,9 @@ CFLAGS += -DUSE_UHID
|
||||
LIBS =
|
||||
@@ -9,13 +9,13 @@ CC ?= gcc
|
||||
CFLAGS += -DUSE_LIBUSB
|
||||
LIBS = -lusb
|
||||
.elif $(OS) == "NetBSD" || $(OS) == "OpenBSD"
|
||||
-CFLAGS += -DUSE_UHID
|
||||
-LIBS =
|
||||
+CFLAGS += -DUSE_LIBUSB -I${LOCALBASE}/include
|
||||
+LIBS = -L${LOCALBASE}/lib -lusb
|
||||
.endif
|
||||
|
||||
+all: teensyloader
|
||||
|
@ -1,6 +1,9 @@
|
||||
@comment $OpenBSD: PLIST,v 1.3 2015/05/03 13:31:49 bmercer Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.4 2015/06/08 13:36:10 bmercer Exp $
|
||||
@bin bin/teensyloader
|
||||
share/examples/teensy/
|
||||
share/examples/teensy/blink_slow_Teensy3.hex
|
||||
share/examples/teensy/blink_slow_Teensy31.hex
|
||||
share/examples/teensy/blink_slow_TeensyLC.hex
|
||||
share/examples/teensy/blinky-at90usb1286.hex
|
||||
share/examples/teensy/blinky-at90usb162.hex
|
||||
share/examples/teensy/blinky-at90usb646.hex
|
||||
|
Loading…
Reference in New Issue
Block a user