%bcond_without system_libmtp # system libmtp
%bcond_without system_libusb # system libusb-1
%bcond_without system_libwebp # system libwebp
+%bcond_without system_libxnvctrl # system libxnvctrl
%bcond_without system_minizip # system minizip
%bcond_without system_opus # system opus codec support, http://www.opus-codec.org/examples/
%bcond_without system_speex # system speex
Patch7: dlopen_sonamed_gl.patch
Patch8: chromium_useragent.patch.in
Patch9: chromium-ppapi.patch
+Patch10: system-libxnvctrl.patch
# https://bugs.gentoo.org/show_bug.cgi?id=393471
# libjpeg-turbo >= 1.1.90 supports that feature
Patch11: chromium-revert-jpeg-swizzle-r2.patch
%{?with_system_libusb:BuildRequires: libusb-devel >= 1.0}
%{?with_system_libvpx:BuildRequires: libvpx-devel >= 0.9.5-2}
%{?with_system_libwebp:BuildRequires: libwebp-devel >= 0.1.99}
+%{?with_system_libxvnctrl:BuildRequires: libXNVCtrl-devel >= 310.19}
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel
BuildRequires: lzma
%{gyp_with system_libusb} \
%{gyp_with system_libvpx} \
%{gyp_with system_libwebp} \
+ %{gyp_with system_libxnvctrl} \
%{gyp_with system_minizip} \
%{gyp_with system_opus} \
%{gyp_with system_speex} \
--- /dev/null
+--- chromium-browser-24.0.1312.45/src/third_party/libXNVCtrl/libXNVCtrl.gyp~ 2013-01-04 00:45:32.000000000 +0200
++++ chromium-browser-24.0.1312.45/src/third_party/libXNVCtrl/libXNVCtrl.gyp 2013-01-04 00:45:35.620067292 +0200
+@@ -3,16 +3,54 @@
+ # found in the LICENSE file.
+
+ {
+- 'targets': [
+- {
+- 'target_name': 'libXNVCtrl',
+- 'type': 'static_library',
+- 'sources': [
+- 'NVCtrl.c',
+- 'NVCtrl.h',
+- 'NVCtrlLib.h',
+- 'nv_control.h',
++ 'variables': {
++ 'use_system_libxnvctrl%': 0,
++ },
++ 'conditions': [
++ ['use_system_libxnvctrl==0', {
++ 'targets': [
++ {
++ 'target_name': 'libXNVCtrl',
++ 'type': 'static_library',
++ 'sources': [
++ 'NVCtrl.c',
++ 'NVCtrl.h',
++ 'NVCtrlLib.h',
++ 'nv_control.h',
++ ],
++ },
+ ],
+- },
+- ],
++ }, { # use_system_libxnvctrl==1
++ 'conditions': [
++ ['sysroot!=""', {
++ 'variables': {
++ 'pkg-config': '../../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
++ },
++ }, {
++ 'variables': {
++ 'pkg-config': 'pkg-config'
++ },
++ }],
++ ],
++ 'targets': [
++ {
++ 'target_name': 'libXNVCtrl',
++ 'type': 'none',
++ 'direct_dependent_settings': {
++ 'cflags': [
++ '<!@(<(pkg-config) --cflags libXNVCtrl)',
++ ],
++ },
++ 'link_settings': {
++ 'ldflags': [
++ '<!@(<(pkg-config) --libs-only-L --libs-only-other libXNVCtrl)',
++ ],
++ 'libraries': [
++ '<!@(<(pkg-config) --libs-only-l libXNVCtrl)',
++ ],
++ },
++ }
++ ],
++ }],
++ ]
+ }