summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2010-07-21 11:25:42 +0000
committerdrochner <drochner@pkgsrc.org>2010-07-21 11:25:42 +0000
commit3c96b50cc0f5a65f087848ca884ccc65382b0b00 (patch)
tree9fd1630b0724252171a9058653cb80a2b04c1e47
parent47ac43a7d7455e6f08e8bf649b45c4f8eaed746c (diff)
downloadpkgsrc-3c96b50cc0f5a65f087848ca884ccc65382b0b00.tar.gz
add usbprog-0.2.0, a tool to load firmware onto the "usbprog"
programming adapter
-rw-r--r--misc/usbprog/DESCR3
-rw-r--r--misc/usbprog/Makefile26
-rw-r--r--misc/usbprog/PLIST19
-rw-r--r--misc/usbprog/distinfo9
-rw-r--r--misc/usbprog/patches/patch-aa13
-rw-r--r--misc/usbprog/patches/patch-ab12
-rw-r--r--misc/usbprog/patches/patch-ac13
-rw-r--r--misc/usbprog/patches/patch-ad13
8 files changed, 108 insertions, 0 deletions
diff --git a/misc/usbprog/DESCR b/misc/usbprog/DESCR
new file mode 100644
index 00000000000..2eafe56513c
--- /dev/null
+++ b/misc/usbprog/DESCR
@@ -0,0 +1,3 @@
+This is the programming tool needed to replace the firmware on the USBprog
+hardware. It automatically retrieves a list of available firmwares from the
+internet, downloads them and uploads it to the USBprog adapter.
diff --git a/misc/usbprog/Makefile b/misc/usbprog/Makefile
new file mode 100644
index 00000000000..13ad8596669
--- /dev/null
+++ b/misc/usbprog/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/07/21 11:25:42 drochner Exp $
+#
+
+DISTNAME= usbprog-0.2.0
+CATEGORIES= misc
+MASTER_SITES= http://download.berlios.de/usbprog/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.embedded-projects.net/index.php?page_id=165
+COMMENT= Firmware loader for "usbprog" programming adapter
+LICENSE= gnu-gpl-v2
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+USE_LANGUAGES= c c++
+USE_LIBTOOL= yes
+
+.include "../../www/curl/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../devel/libusb/buildlink3.mk"
+.include "../../devel/readline/buildlink3.mk"
+.include "../../x11/wxGTK28/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/usbprog/PLIST b/misc/usbprog/PLIST
new file mode 100644
index 00000000000..65a8a5b79db
--- /dev/null
+++ b/misc/usbprog/PLIST
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/07/21 11:25:42 drochner Exp $
+bin/usbprog
+bin/usbprog-gui
+include/usbprog/date.h
+include/usbprog/devices.h
+include/usbprog/digest.h
+include/usbprog/downloader.h
+include/usbprog/firmwarepool.h
+include/usbprog/inifile.h
+include/usbprog/optionparser.h
+include/usbprog/stringutil.h
+include/usbprog/usbprog.h
+include/usbprog/util.h
+lib/libusbprog.la
+man/man1/usbprog-gui.1
+man/man1/usbprog.1
+share/applications/usbprog.desktop
+share/doc/usbprog/USBprog.pdf
+share/pixmaps/usbprog_icon.xpm
diff --git a/misc/usbprog/distinfo b/misc/usbprog/distinfo
new file mode 100644
index 00000000000..9a2c2699566
--- /dev/null
+++ b/misc/usbprog/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/07/21 11:25:42 drochner Exp $
+
+SHA1 (usbprog-0.2.0.tar.bz2) = f025c42c0d43f14471a15bc3868efaea46284693
+RMD160 (usbprog-0.2.0.tar.bz2) = 7d096717217d1ae426a8187cedd6c8fd87dd6139
+Size (usbprog-0.2.0.tar.bz2) = 4388629 bytes
+SHA1 (patch-aa) = f76d7f18471b10a11b1073df1b88b8421960d5e0
+SHA1 (patch-ab) = a336e677be50385c522c1b82c92f5fc85408dde8
+SHA1 (patch-ac) = fe0c9cdbaacbc325ed205be7873347b343bd08f6
+SHA1 (patch-ad) = 9634874d725628070bba635eeb66ae62a23cec56
diff --git a/misc/usbprog/patches/patch-aa b/misc/usbprog/patches/patch-aa
new file mode 100644
index 00000000000..aa5d0f0d92a
--- /dev/null
+++ b/misc/usbprog/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2010/07/21 11:25:42 drochner Exp $
+
+--- configure.orig 2010-07-15 15:46:31.000000000 +0000
++++ configure
+@@ -16506,7 +16506,7 @@ else
+ have_libusb="no"
+ fi
+
+- if test "${have_libusb}" == yes; then
++ if test "${have_libusb}" = yes; then
+ if test "${ac_cv_header_usb_h+set}" = set; then
+ { $as_echo "$as_me:$LINENO: checking for usb.h" >&5
+ $as_echo_n "checking for usb.h... " >&6; }
diff --git a/misc/usbprog/patches/patch-ab b/misc/usbprog/patches/patch-ab
new file mode 100644
index 00000000000..206b9715bd3
--- /dev/null
+++ b/misc/usbprog/patches/patch-ab
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1.1.1 2010/07/21 11:25:42 drochner Exp $
+
+--- usbprog/date.cc.orig 2010-07-15 16:07:07.000000000 +0000
++++ usbprog/date.cc
+@@ -14,7 +14,6 @@
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+-#define _XOPEN_SOURCE
+ #include <cstdio>
+ #include <string>
+ #include <time.h>
diff --git a/misc/usbprog/patches/patch-ac b/misc/usbprog/patches/patch-ac
new file mode 100644
index 00000000000..ad5fde66cb2
--- /dev/null
+++ b/misc/usbprog/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2010/07/21 11:25:42 drochner Exp $
+
+--- src/Makefile.in.orig 2010-07-15 16:35:33.000000000 +0000
++++ src/Makefile.in
+@@ -255,7 +255,7 @@ usbprog_SOURCES = io.h io.cc \
+ commands.cc commands.h \
+ main.cc
+
+-usbprog_LDADD = ../usbprog/libusbprog.la
++usbprog_LDADD = ../usbprog/libusbprog.la ../md5/libmd5.a
+ man_MANS = usbprog.1
+ all: all-am
+
diff --git a/misc/usbprog/patches/patch-ad b/misc/usbprog/patches/patch-ad
new file mode 100644
index 00000000000..2a0300296bd
--- /dev/null
+++ b/misc/usbprog/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1.1.1 2010/07/21 11:25:42 drochner Exp $
+
+--- gui/Makefile.in.orig 2010-07-15 16:36:15.000000000 +0000
++++ gui/Makefile.in
+@@ -268,7 +268,7 @@ EXTRA_DIST = usbprog.xpm usbprog_icon.xp
+ @GUI_TRUE@ pindialog.cc pindialog.h \
+ @GUI_TRUE@ viewer.cc viewer.h
+
+-@GUI_TRUE@usbprog_gui_LDADD = ../usbprog/libusbprog.la \
++@GUI_TRUE@usbprog_gui_LDADD = ../usbprog/libusbprog.la ../md5/libmd5.a \
+ @GUI_TRUE@ @WX_LIBS@
+
+ @GUI_TRUE@man_MANS = usbprog-gui.1