- Drop build dependency on devel/subversion Submitted by: George Liaskos Security: CVE-2012-[2846-2860], CVE-2012-[2862-2863]
48 lines
1.6 KiB
Python
48 lines
1.6 KiB
Python
--- third_party/libusb/libusb.gyp.orig 2012-08-27 06:35:03.000000000 +0300
|
|
+++ third_party/libusb/libusb.gyp 2012-08-28 06:46:24.000000000 +0300
|
|
@@ -10,23 +10,33 @@
|
|
{
|
|
'target_name': 'libusb',
|
|
'conditions': [
|
|
- ['OS == "linux" and use_system_libusb', {
|
|
+ ['(OS == "linux" or os_bsd == 1) and use_system_libusb', {
|
|
'type': 'none',
|
|
'direct_dependent_settings': {
|
|
'defines': [
|
|
'USE_SYSTEM_LIBUSB',
|
|
],
|
|
- 'cflags': [
|
|
- '<!@(pkg-config --cflags libusb-1.0)',
|
|
- ],
|
|
- 'link_settings': {
|
|
- 'ldflags': [
|
|
- '<!@(pkg-config --libs-only-L --libs-only-other libusb-1.0)',
|
|
- ],
|
|
- 'libraries': [
|
|
- '<!@(pkg-config --libs-only-l libusb-1.0)',
|
|
- ],
|
|
- },
|
|
+ 'conditions': [
|
|
+ ['OS == "freebsd"', {
|
|
+ 'link_settings': {
|
|
+ 'libraries': [
|
|
+ '-lusb',
|
|
+ ],
|
|
+ },
|
|
+ }, {
|
|
+ 'cflags': [
|
|
+ '<!@(pkg-config --cflags libusb-1.0)',
|
|
+ ],
|
|
+ 'link_settings': {
|
|
+ 'ldflags': [
|
|
+ '<!@(pkg-config --libs-only-L --libs-only-other libusb-1.0)',
|
|
+ ],
|
|
+ 'libraries': [
|
|
+ '<!@(pkg-config --libs-only-l libusb-1.0)',
|
|
+ ],
|
|
+ },
|
|
+ }],
|
|
+ ],
|
|
},
|
|
}, {
|
|
'type': '<(library)',
|