Ticket #37875: dfu-programmer.patch

File dfu-programmer.patch, 1.7 KB (added by g5pw (Aljaž Srebrnič), 11 years ago)
  • Portfile

     
    44PortSystem 1.0
    55
    66name              dfu-programmer
    7 version           0.5.4
     7version           0.6.2
    88categories        cross devel
    99maintainers       vogelgsang.org:chris
    1010description       dfu-programmer is a Device Firmware Update based USB programmer for Atmel chips with a USB bootloader.
     
    1616homepage          http://dfu-programmer.sourceforge.net/
    1717platforms         darwin
    1818master_sites      sourceforge
    19 checksums         md5 707dcd0f957a74e92456ea6919faa772 \
    20                   sha1 f0fcc8faa0f11e53feaa36a01307328a0b0993d3 \
    21                   rmd160 2c04af6f1a4a3b2df668a6ec40d23bf9f37aff68
    22 depends_lib       port:libusb-compat
     19
     20depends_lib       port:libusb
    2321configure.args    --mandir=${prefix}/share/man
     22
     23checksums           rmd160  1dbf982c5e986a56287fefe103ff2641a6b0af93 \
     24                    sha256  0120966a424dd98124962055750e90cbd6c7b6b0fbf5b187bf435daa0a24af65
     25
     26
     27patchfiles          configure.patch
  • files/configure.patch

     
     1--- configure   2013-07-19 01:26:22.000000000 +0200
     2+++ configure.new       2014-04-25 12:08:31.000000000 +0200
     3@@ -3582,7 +3582,7 @@
     4 have_libusb_1_0=no
     5 if test "$disable_libusb_1_0" = "no"; then
     6   have_libusb_1_0=yes
     7-  LIBUSB_1_0_CFLAGS=-I/usr/include/libusb-1.0
     8+  LIBUSB_1_0_CFLAGS="-I$prefix/include/libusb-1.0"
     9   LIBUSB_1_0_LIBS=-lusb-1.0
     10   if test "$have_libusb_1_0" = "yes"; then
     11     $as_echo "using libusb_1.0";