freebsd-ports/www/chromium/files/patch-third_party__libusb__libusb.gyp
Rene Ladan 4446d44189 - Update to 21.0.1180.81
- Drop build dependency on devel/subversion
Submitted by:	George Liaskos
Security:	CVE-2012-[2846-2860], CVE-2012-[2862-2863]
2012-08-28 20:25:56 +00:00

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)',