summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
Diffstat (limited to 'cross')
-rw-r--r--cross/dfu-programmer/DESCR2
-rw-r--r--cross/dfu-programmer/Makefile18
-rw-r--r--cross/dfu-programmer/PLIST3
-rw-r--r--cross/dfu-programmer/distinfo6
-rw-r--r--cross/dfu-programmer/patches/patch-aa20
5 files changed, 49 insertions, 0 deletions
diff --git a/cross/dfu-programmer/DESCR b/cross/dfu-programmer/DESCR
new file mode 100644
index 00000000000..ed5580a3b42
--- /dev/null
+++ b/cross/dfu-programmer/DESCR
@@ -0,0 +1,2 @@
+dfu-programmer is a Device Firmware Update based USB programmer for
+Atmel chips with a USB bootloader.
diff --git a/cross/dfu-programmer/Makefile b/cross/dfu-programmer/Makefile
new file mode 100644
index 00000000000..fd7e0371754
--- /dev/null
+++ b/cross/dfu-programmer/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/01/15 22:00:19 jakllsch Exp $
+#
+
+DISTNAME= dfu-programmer-0.5.2
+CATEGORIES= cross
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dfu-programmer/dfu-programmer/0.5.2/}
+
+MAINTAINER= jakllsch@NetBSD.org
+HOMEPAGE= http://dfu-programmer/dfu-programmer/0.5.2.sourceforge.net/
+COMMENT= Programmer for Atmel USB DFU Bootloader
+LICENSE= gnu-gpl-v2
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+
+.include "../../devel/libusb/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/cross/dfu-programmer/PLIST b/cross/dfu-programmer/PLIST
new file mode 100644
index 00000000000..7f7cf9150cc
--- /dev/null
+++ b/cross/dfu-programmer/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/01/15 22:00:19 jakllsch Exp $
+bin/dfu-programmer
+man/man1/dfu-programmer.1
diff --git a/cross/dfu-programmer/distinfo b/cross/dfu-programmer/distinfo
new file mode 100644
index 00000000000..e1b4660c2ae
--- /dev/null
+++ b/cross/dfu-programmer/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/01/15 22:00:19 jakllsch Exp $
+
+SHA1 (dfu-programmer-0.5.2.tar.gz) = 20d786d1cdb65d5ae4d488678f7f0f4c762164c0
+RMD160 (dfu-programmer-0.5.2.tar.gz) = c9dc5063e34bf1ee53072fe2ad1eec8d3c2a2ab6
+Size (dfu-programmer-0.5.2.tar.gz) = 119293 bytes
+SHA1 (patch-aa) = 1d6c401cecc0630f95620b4478a5e2f7ab92969a
diff --git a/cross/dfu-programmer/patches/patch-aa b/cross/dfu-programmer/patches/patch-aa
new file mode 100644
index 00000000000..2b2a441507a
--- /dev/null
+++ b/cross/dfu-programmer/patches/patch-aa
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.1.1.1 2010/01/15 22:00:19 jakllsch Exp $
+
+--- src/util.c.orig 2009-08-22 23:11:09.000000000 +0000
++++ src/util.c
+@@ -29,11 +29,11 @@ void dfu_debug( const char *file, const
+ const int level, const char *format, ... )
+ {
+ if( level < debug ) {
+- va_list va_arg;
++ va_list arg;
+
+- va_start( va_arg, format );
++ va_start( arg, format );
+ fprintf( stderr, "%s:%d: ", file, line );
+- vfprintf( stderr, format, va_arg );
+- va_end( va_arg );
++ vfprintf( stderr, format, arg );
++ va_end( arg );
+ }
+ }