Chromium without system ffmpeg dependency (Was: fixes for
Makefile pkg-plist and build-in ffmpeg)
Y. A.
nexther0 at gmail.com
Tue Mar 29 10:51:14 UTC 2011
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 at 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+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
> > CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
> > MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
> > .endif
> >
> >
> >
> > 2011/3/28 Y. A. <nexther0 at gmail.com <mailto:nexther0 at 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=="arm"', {
> > 'ffmpeg_asm_lib': 0,
> > }],
> > - ['OS=="mac" or OS=="win"', {
> > + ['OS=="mac" or OS=="win" or OS=="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=
> > 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 at gmail.com <mailto:nexther0 at gmail.com>>
> >
> > hi!
> > see FreeBSD Porter's
> > Handbook
> http://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.html#AEN2560
> > <
> http://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.html#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 at freebsd.org <mailto:rene at 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.log
> > >
> > > 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é
> > --
> > http://www.rene-ladan.nl:8080/
> >
> > GPG fingerprint = ADBC ECCD EB5F A6B4 549F 600D 8C9E 647A
> > E564 2BFC
> > (subkeys.pgp.net <http://subkeys.pgp.net>)
> >
> >
> >
> >
>
> --
> http://www.rene-ladan.nl:8080/
>
> GPG fingerprint = ADBC ECCD EB5F A6B4 549F 600D 8C9E 647A E564 2BFC
> (subkeys.pgp.net)
>
More information about the freebsd-chromium
mailing list