Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2011 12:50:57 +0300
From:      "Y. A." <nexther0@gmail.com>
To:        Rene Ladan <rene@freebsd.org>
Cc:        freebsd-chromium@freebsd.org
Subject:   Chromium without system ffmpeg dependency (Was: fixes for Makefile pkg-plist and build-in ffmpeg)
Message-ID:  <AANLkTimA2nTeyy5JOJsd1vmyyRUd47-k6jrEUrr_GF7W@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
hi!

Think I found proper way to build chromium without system ffmpeg dependency=
:

1. we don't need patches:
   files/patch-media__media.gyp
   files/patch-media__ffmpeg__ffmpeg_common.h
   files/patch-third_party__ffmpeg__patched-ffmpeg-mt__libavutil_mem.c.txt
2. replace content files/patch-third_party__ffmpeg__ffmpeg.gyp with:
--- begin ---
--- third_party/ffmpeg/ffmpeg.gyp.orig  2011-03-23 10:02:47.000000000 +0200
+++ third_party/ffmpeg/ffmpeg.gyp       2011-03-28 11:33:03.000000000 +0300
@@ -56,7 +56,7 @@
       ['target_arch=3D=3D"arm"', {
         'ffmpeg_asm_lib': 0,
       }],
-      ['OS=3D=3D"mac" or OS=3D=3D"win"', {
+      ['OS=3D=3D"mac" or OS=3D=3D"win" or OS=3D=3D"freebsd"', {
         'os_config%': '<(OS)',
       }, {  # all other Unix OS's use the linux config
         'os_config%': 'linux',
@@ -82,7 +82,7 @@
     'ffmpeg_variant%': '<(target_arch)',

     'use_system_ffmpeg%': 0,
-    'use_system_yasm%': 0,
+    'use_system_yasm%': 1,
     'build_ffmpegsumo%': 1,
     'use_system_vpx%': 0,
--- end ---
3. change Makefile: remove ffmpeg from LIB_DEPENDS=3D
4. optional (for FreeBSD 8.2 but CHROMIUM still cannot render pages):
     change '+#define HAVE_SSSE3 1' to '+#define HAVE_SSSE3 0' in:

files/patch-third_party__ffmpeg__config__Chrome__freebsd__ia32__config.h

files/patch-third_party__ffmpeg__config__Chrome__freebsd__x64__config.h

files/patch-third_party__ffmpeg__config__Chromium__freebsd__ia32__config.h

files/patch-third_party__ffmpeg__config__Chromium__freebsd__x64__config.h



build chromium and enjoy :)

2011/3/28 Y. A. <nexther0@gmail.com>

> hi!
> see FreeBSD Porter's Handbook
> http://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.htm=
l#AEN2560
> <http://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.ht=
ml#AEN2560>we
> already include bsd.port.options.mk and do not need deprecated
> bsd.port.pre.mk.
>
>
> 2011/3/27 Rene Ladan <rene@freebsd.org>
>
>> Op 27-03-2011 13:54, Rene Ladan schreef:
>> [..]
>> > My 8.2-STABLE i386 tinderbox complains about unrecognized instructions
>> > (pabsw, pmulhrsw, palignr) during the build and decides to give up
>> > prematurely. This is with:
>> >
>> [..]
>> > Full log at
>> > http://rene-ladan.nl:8080/tb/errors/8-FreeBSD/chromium-10.0.648.204.lo=
g
>> >
>> > Maybe this is binutils related (that build uses 2.15 since there is no
>> > dependency on binutils from ports).
>> >
>> A (partial) patch for this is attached.  I guess some gyp files need to
>> be updated too?
>>
>> Regards,
>> Ren=E9
>> --
>> http://www.rene-ladan.nl:8080/
>>
>> GPG fingerprint =3D ADBC ECCD EB5F A6B4 549F  600D 8C9E 647A E564 2BFC
>> (subkeys.pgp.net)
>>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimA2nTeyy5JOJsd1vmyyRUd47-k6jrEUrr_GF7W>