Package: libusb Version: 0.1.12 Revision: 10 Maintainer: Ben Hines Source: http://download.sourceforge.net/%n/%n-%v.tar.gz Source-MD5: caf182cbc7565dac0fd72155919672e6 #BuildDepends: libtool14 (>= 1.5.4-1) BuildDependsOnly: true Depends: %N-shlibs (= %v-%r) GCC: 3.3 SetLDFLAGS: -Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,IOKit NoSetMAKEFLAGS: true SetMAKEFLAGS: -j1 CompileScript: << #!/bin/sh -e # cp %p/share/libtool/ltmain.sh . # perl -pi.bak -e 's/shrext_cmds/shrext/' ltmain.sh # perl -pi.bak -e 's,-flat_namespace -undefined suppress,-undefined dynamic_lookup,g' configure ./configure --disable-build-docs %c # /usr/bin/perl -pi.bak -e 's/^library_names_spec=.*/library_names_spec=\"\\\${libname}\\\${release}\\\${versuffix}.dylib \\\${libname}\${release}\\\${major}\dylib \\\${libname}.dylib\"/g' libtool /usr/bin/head -n 7 usb.c >> LICENSE make << #Patch: %n.patch InstallScript: << make install DESTDIR=%d # for some reason, libusb's build strips out the -Wl's? # perl -pi -e 's/-Xlinker -framework -Xlinker (\S*)/-Wl,-framework,$1/g; s/-framework (\S*)/-Wl,-framework,$1/g;' %i/bin/libusb-config << DocFiles: AUTHORS INSTALL.libusb NEWS README LICENSE SplitOff: << Package: %N-shlibs Files: lib/libusb-*.dylib Shlibs: %p/lib/libusb-0.1.4.dylib 9.0.0 %n (>= 0.1.8-10) DocFiles: LICENSE << # Description: Portable library for USB device access DescDetail: << libusb's aim is to create a library for use by user level applications to access USB devices regardless of OS. << License: LGPL Homepage: http://libusb.sourceforge.net/