Ticket #24891: pyusb.patch

File pyusb.patch, 1.2 KB (added by Lars.Rasmusson@…, 14 years ago)

patch of setup.py and Portfile to use the patch

  • Portfile

    diff --git a/Portfile b/Portfile
    index 9c9968a..77945fc 100644
    a b checksums md5 5667a00af1ac0d5062103b4512e227f8 \ 
    2121
    2222depends_lib-append  port:libusb-compat
    2323
     24patchfiles          setup.patch
     25
    2426post-destroot {
    2527   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    2628   xinstall -m 644 -W ${worksrcpath} README license.txt \
  • new file files/setup.patch

    diff --git a/files/setup.patch b/files/setup.patch
    new file mode 100644
    index 0000000..d4503c7
    - +  
     1--- setup.py.orig       2010-05-14 22:20:20.000000000 +0200
     2+++ setup.py    2010-05-14 22:20:41.000000000 +0200
     3@@ -35,8 +35,8 @@
     4                        '-framework',
     5                        'IOKit',
     6                        '-L/sw/lib',
     7-                       '-L/usr/local/lib']
     8-    extra_compile_args = ['-I/sw/include','-I/usr/local/lib']
     9+                       '-L/opt/local/lib']
     10+    extra_compile_args = ['-I/sw/include','-I/opt/local/include']
     11 # Juha Torkkel has reported problems compiling on freebsd
     12 # when libusb is in /usr/local tree. I don't know on freebsd, but
     13 # on Linux the paths to usr/local are in $PATH.