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

next in thread | previous in thread | raw e-mail | index | archive | help
found solution to build on FreeBSD 8 with SSE3

add to Makefile after '.include <bsd.port.options.mk.':

.if ${OSVERSION} < 900033
BUILD_DEPENDS+=3D       ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
CONFIGURE_ENV+=3D COMPILER_PATH=3D${LOCALBASE}/bin
MAKE_ENV+=3D      COMPILER_PATH=3D${LOCALBASE}/bin
.endif



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

> 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.tx=
t
> 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 +02=
00
> +++ third_party/ffmpeg/ffmpeg.gyp       2011-03-28 11:33:03.000000000 +03=
00
> @@ -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.ht=
ml#AEN2560
>> <http://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.h=
tml#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 instruction=
s
>>> > (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.log
>>> >
>>> > Maybe this is binutils related (that build uses 2.15 since there is n=
o
>>> > 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?AANLkTinXNnReeUy74ca_Tkn=zaPDFXLsT7HyBCNtbQuo>