openbsd-ports/www/chromium/patches/patch-third_party_ffmpeg_ffmpeg_gyp
espie 5cb978edde cut the "monster patches" into small pieces. pval can fix it to his liking
if he comes back.
In the mean time, fix build of chromium by adding the required
-I/usr/local/includes to gyp glue where needed.
2010-12-13 09:51:45 +00:00

45 lines
1.9 KiB
Plaintext

$OpenBSD: patch-third_party_ffmpeg_ffmpeg_gyp,v 1.1 2010/12/13 09:51:46 espie Exp $
--- third_party/ffmpeg/ffmpeg.gyp.orig Tue Mar 30 07:33:58 2010
+++ third_party/ffmpeg/ffmpeg.gyp Sun Nov 28 00:11:29 2010
@@ -43,7 +43,7 @@
'ffmpeg_variant%': '<(target_arch)',
'use_system_ffmpeg%': 0,
- 'use_system_yasm%': 0,
+ 'use_system_yasm%': 1,
# Locations for generated artifacts.
'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/third_party/ffmpeg',
@@ -56,7 +56,7 @@
#
# TODO(ajwong): Per the comment above, reduce this conditional's size and
# determine if in-tree build in Windows is tractable.
- ['(OS!="linux" and OS!="freebsd" and OS!="openbsd" and OS!="solaris" and OS!="mac") or use_system_ffmpeg!=0', {
+ ['(OS!="linux" and OS!="freebsd" and OS!="solaris" and OS!="mac") or use_system_ffmpeg!=0', {
'variables': {
'target_for_binaries': 'ffmpeg_binaries',
'ffmpeg_include_root': 'include',
@@ -129,11 +129,11 @@
'source/patched-ffmpeg-mt/libavutil/pixdesc.c', # TODO(fbarchard): Review this file.
'source/patched-ffmpeg-mt/libavutil/rational.c',
# Config file for the OS and architecture.
- 'source/config/<(ffmpeg_branding)/<(OS)/<(ffmpeg_config)/config.h',
+ 'source/config/<(ffmpeg_branding)/linux/<(ffmpeg_config)/config.h',
'source/config/libavutil/avconfig.h',
],
'include_dirs': [
- 'source/config/<(ffmpeg_branding)/<(OS)/<(ffmpeg_config)',
+ 'source/config/<(ffmpeg_branding)/linux/<(ffmpeg_config)',
'source/patched-ffmpeg-mt',
'source/config',
],
@@ -751,7 +751,7 @@
],
},
],
- ['OS=="linux" or OS=="freebsd" or OS=="solaris"', {
+ ['OS=="linux" or OS=="solaris"', {
'link_settings': {
'libraries': [
# We need dl for dlopen() and friends.