#24891: fix to build py26-pyusb by making it find usb.h ---------------------------------------+------------------------------------ Reporter: Lars.Rasmusson@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: | Keywords: Port: py26-pyusb | ---------------------------------------+------------------------------------ Changes (by Lars.Rasmusson@…): * status: closed => reopened * resolution: fixed => Comment: The patch to setup.py that ended up in macports was incorrect. It should include from {{{ __PREFIX__/include}}}, not {{{ __PREFIX__/lib}}}. So setup.py.diff should be changed like this. {{{ --- setup.py.diff.orig 2010-05-17 11:42:27.000000000 +0200 +++ setup.py.diff 2010-05-17 11:42:45.000000000 +0200 @@ -8,7 +8,7 @@ - '-L/usr/local/lib'] - extra_compile_args = ['-I/sw/include','-I/usr/local/lib'] + '-L__PREFIX__/lib'] -+ extra_compile_args = ['-I__PREFIX__/lib'] ++ extra_compile_args = ['-I__PREFIX__/include'] # Juha Torkkel has reported problems compiling on freebsd # when libusb is in /usr/local tree. I don't know on freebsd, but # on Linux the paths to usr/local are in $PATH. }}} -- Ticket URL: <http://trac.macports.org/ticket/24891#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS