openbsd-ports/devel/p5-Device-USB/patches/patch-lib_Device_USB_pm
jasper fe02efde2d - import p5-Device-USB 0.28
This module provides a Perl interface to the C library libusb. This
library supports a relatively full set of functionality to access a USB
device. In addition to the libusb, functioality, Device::USB provides a
few convenience features that are intended to produce a more Perl-ish
interface.

with help from landry@ to unfuck it's LIBS handling.
2010-01-10 21:41:55 +00:00

13 lines
622 B
Plaintext

$OpenBSD: patch-lib_Device_USB_pm,v 1.1.1.1 2010/01/10 21:41:55 jasper Exp $
--- lib/Device/USB.pm.orig Tue Jan 5 00:15:49 2010
+++ lib/Device/USB.pm Tue Jan 5 00:16:07 2010
@@ -10,7 +10,7 @@ use Inline (
($ENV{LIBUSB_LIBDIR}
? ( LIBS => "-L\"$ENV{LIBUSB_LIBDIR}\" " .
($^O eq 'MSWin32' ? ' -llibusb -L\"$ENV{WINDDK}\\lib\\crt\\i386\" -lmsvcrt ' : '-lusb') )
- : ( LIBS => '-lusb', )
+ : ( LIBS => '-L${LOCALBASE}/lib -lusb', )
),
($ENV{LIBUSB_INCDIR} ? ( INC => "-I\"$ENV{LIBUSB_INCDIR}\"" ) : () ),
NAME => 'Device::USB',