Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Mar 2011 13:51:13 +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:  <AANLkTimV9sifCgnTwnPrHk8Zq4Pdjuap8Q5F%2BY6oqctb@mail.gmail.com>
In-Reply-To: <4D917FDB.2090808@freebsd.org>
References:  <AANLkTimA2nTeyy5JOJsd1vmyyRUd47-k6jrEUrr_GF7W@mail.gmail.com> <AANLkTinXNnReeUy74ca_Tkn=zaPDFXLsT7HyBCNtbQuo@mail.gmail.com> <4D917FDB.2090808@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
thanks.  with proper config.h for ffmpeg also safe to
remove files/patch-third_party__ffmpeg__patched-ffmpeg-mt__libavutil_mem.c
2011/3/29 Rene Ladan <rene@freebsd.org>

> Committed as r127, thanks!
>
> Op 28-03-2011 15:10, Y. A. schreef:
> > 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 <mailto: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.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 <mailto: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.htm=
l#AEN2560
> >we
> >         already include bsd.port.options.mk <http://bsd.port.options.mk=
>
> >         and do not need deprecated bsd.port.pre.mk <
> http://bsd.port.pre.mk>.
> >
> >
> >         2011/3/27 Rene Ladan <rene@freebsd.org <mailto: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 t=
o
> >             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 sinc=
e
> >             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 647=
A
> >             E564 2BFC
> >             (subkeys.pgp.net <http://subkeys.pgp.net>)
> >
> >
> >
> >
>
> --
> 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?AANLkTimV9sifCgnTwnPrHk8Zq4Pdjuap8Q5F%2BY6oqctb>