Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add dfu-programmer port

  • Loading branch information...
commit eb014a27ce40a45a24e39d604176429b1ed21695 1 parent e08efbf
@mdempsky authored
View
35 ports/devel/dfu-programmer/Makefile
@@ -0,0 +1,35 @@
+# $OpenBSD$
+
+COMMENT = Device Firmware Update based USB programmer for Atmel chips
+
+V = 0.5.4
+DISTNAME = dfu-programmer-${V}
+
+# for any port that creates shared libraries.
+# both libtool and cmake handle this automatically.
+# for libtool-based ports, have a look at WRKBUILD/shared_libs.log
+#SHARED_LIBS = ???
+
+CATEGORIES = devel
+
+HOMEPAGE = http://dfu-programmer.sourceforge.net/
+
+# GPL
+PERMIT_PACKAGE_CDROM = Yes
+PERMIT_PACKAGE_FTP = Yes
+PERMIT_DISTFILES_CDROM =Yes
+PERMIT_DISTFILES_FTP = Yes
+
+# "make port-lib-depends-check" can help
+WANTLIB = c usb
+
+LIB_DEPENDS = devel/libusb
+
+MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=dfu-programmer/}
+
+CONFIGURE_STYLE = gnu
+CONFIGURE_ENV = CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
+ CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
+ LDFLAGS="${CFLAGS} -L${LOCALBASE}/lib"
+
+.include <bsd.port.mk>
View
5 ports/devel/dfu-programmer/distinfo
@@ -0,0 +1,5 @@
+MD5 (dfu-programmer-0.5.4.tar.gz) = cH3ND5V6dOkkVuppGfqncg==
+RMD160 (dfu-programmer-0.5.4.tar.gz) = LASvbxpKOy32aKbsQNI7+fN6/2g=
+SHA1 (dfu-programmer-0.5.4.tar.gz) = 8PzI+qDxHlP+qjagEwcyigsJk9M=
+SHA256 (dfu-programmer-0.5.4.tar.gz) = wPsI/q09Q3k2jQ5K9aWqmces7jL6hpbNPifS94VqIN4=
+SIZE (dfu-programmer-0.5.4.tar.gz) = 126700
View
19 ports/devel/dfu-programmer/patches/patch-src_util_c
@@ -0,0 +1,19 @@
+$OpenBSD$
+--- src/util.c.orig Sun Feb 27 16:27:56 2011
++++ src/util.c Sun Feb 27 16:28:10 2011
+@@ -29,11 +29,11 @@ void dfu_debug( const char *file, const char *function
+ const int level, const char *format, ... )
+ {
+ if( level < debug ) {
+- va_list va_arg;
++ va_list ap;
+
+- va_start( va_arg, format );
++ va_start( ap, format );
+ fprintf( stderr, "%s:%d: ", file, line );
+- vfprintf( stderr, format, va_arg );
+- va_end( va_arg );
++ vfprintf( stderr, format, ap );
++ va_end( ap );
+ }
+ }
View
2  ports/devel/dfu-programmer/pkg/DESCR
@@ -0,0 +1,2 @@
+dfu-programmer is a Device Firmware Update based USB programmer for
+Atmel chips with a USB bootloader.
View
3  ports/devel/dfu-programmer/pkg/PLIST
@@ -0,0 +1,3 @@
+@comment $OpenBSD$
+@bin bin/dfu-programmer
+@man man/man1/dfu-programmer.1
Please sign in to comment.
Something went wrong with that request. Please try again.