From c7e3b4f55776d3ec4158a4aeb3c1e9c7ba78b303 Mon Sep 17 00:00:00 2001 From: ckuethe Date: Sat, 28 Mar 2009 18:55:09 +0000 Subject: [PATCH] Teensyloader is a programmer for the "HalfKay" embedded bootloader as found in the "Teensy" and "Teensy++" AVR development boards. --- devel/teensyloader/Makefile | 30 +++++++++++++++++++++++ devel/teensyloader/distinfo | 10 ++++++++ devel/teensyloader/patches/patch-Makefile | 15 ++++++++++++ devel/teensyloader/pkg/DESCR | 3 +++ devel/teensyloader/pkg/PLIST | 7 ++++++ 5 files changed, 65 insertions(+) create mode 100644 devel/teensyloader/Makefile create mode 100644 devel/teensyloader/distinfo create mode 100644 devel/teensyloader/patches/patch-Makefile create mode 100644 devel/teensyloader/pkg/DESCR create mode 100644 devel/teensyloader/pkg/PLIST diff --git a/devel/teensyloader/Makefile b/devel/teensyloader/Makefile new file mode 100644 index 00000000000..3d0f05fb6b8 --- /dev/null +++ b/devel/teensyloader/Makefile @@ -0,0 +1,30 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/03/28 18:55:09 ckuethe Exp $ + +COMMENT= AVR microcontroller hardware in-system programmer + +DISTNAME= teensy_loader_cli +PKGNAME= teensyloader-1.03 +CATEGORIES= devel + +HOMEPAGE= http://www.pjrc.com/teensy/ + +MAINTAINER= Chris Kuethe + +# GPLv3 +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes +WANTLIB= c + +MASTER_SITES= ${HOMEPAGE} + +CONFIGURE_STYLE= None +PATCHFILES= teensy_loader_cli_openbsd.diff + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/teensyloader ${PREFIX}/bin + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/teensy + ${INSTALL_DATA} ${WRKSRC}/*.{hex,asm} ${PREFIX}/share/examples/teensy + +.include diff --git a/devel/teensyloader/distinfo b/devel/teensyloader/distinfo new file mode 100644 index 00000000000..7886aa19e79 --- /dev/null +++ b/devel/teensyloader/distinfo @@ -0,0 +1,10 @@ +MD5 (teensy_loader_cli.tar.gz) = KSShvrkhMFal4k3+TJWyiw== +MD5 (teensy_loader_cli_openbsd.diff) = tej/HIyA48mRO2fze4QGfw== +RMD160 (teensy_loader_cli.tar.gz) = nKE0fU7QjwwMeNLPDNSGfwiRCUg= +RMD160 (teensy_loader_cli_openbsd.diff) = zDsLyJCAjECDtfGCTB01mfEWCVo= +SHA1 (teensy_loader_cli.tar.gz) = ZOTvxNgciXuDENvcZDIzy6hWHIw= +SHA1 (teensy_loader_cli_openbsd.diff) = ++PapopiTlBBQGFtCJ3lzyI2sUA= +SHA256 (teensy_loader_cli.tar.gz) = 2TO4ERSpTzMEmxqm64aMPuYXCPIN8PHs4IfeD5oGE2k= +SHA256 (teensy_loader_cli_openbsd.diff) = SOr5Ank3iO673r5t0IDMIAFPYHycpKu7TSnIL630O64= +SIZE (teensy_loader_cli.tar.gz) = 17201 +SIZE (teensy_loader_cli_openbsd.diff) = 4606 diff --git a/devel/teensyloader/patches/patch-Makefile b/devel/teensyloader/patches/patch-Makefile new file mode 100644 index 00000000000..678f9877fae --- /dev/null +++ b/devel/teensyloader/patches/patch-Makefile @@ -0,0 +1,15 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2009/03/28 18:55:09 ckuethe Exp $ +--- Makefile.orig Wed Feb 11 20:55:42 2009 ++++ Makefile Wed Feb 11 21:01:18 2009 +@@ -1,6 +1,8 @@ ++all: teensyloader + +-teensy_loader_cli: teensy_loader_cli.c +- gcc -O2 -Wall -s -o teensy_loader_cli teensy_loader_cli.c -lusb ++teensyloader: teensy_loader_cli.c ++ $(CC) -DUSE_UHID $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \ ++ -o teensyloader teensy_loader_cli.c + + clean: +- rm -f teensy_loader_cli ++ rm -f teensyloader diff --git a/devel/teensyloader/pkg/DESCR b/devel/teensyloader/pkg/DESCR new file mode 100644 index 00000000000..8abac8fe89a --- /dev/null +++ b/devel/teensyloader/pkg/DESCR @@ -0,0 +1,3 @@ +The Teensy Loader program communicates with your Teensy board when the +HalfKay bootloader is running, so you can download new programs and run +them. diff --git a/devel/teensyloader/pkg/PLIST b/devel/teensyloader/pkg/PLIST new file mode 100644 index 00000000000..6a2adc40ccc --- /dev/null +++ b/devel/teensyloader/pkg/PLIST @@ -0,0 +1,7 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2009/03/28 18:55:09 ckuethe Exp $ +@bin bin/teensyloader +share/examples/teensy/ +share/examples/teensy/blink_fast.asm +share/examples/teensy/blink_fast.hex +share/examples/teensy/blink_slow.asm +share/examples/teensy/blink_slow.hex