Date: Tue, 29 Mar 2011 08:44:43 +0200 From: Rene Ladan <rene@freebsd.org> To: "Y. A." <nexther0@gmail.com> Cc: freebsd-chromium@freebsd.org Subject: Re: Chromium without system ffmpeg dependency (Was: fixes for Makefile pkg-plist and build-in ffmpeg) Message-ID: <4D917FDB.2090808@freebsd.org> In-Reply-To: <AANLkTinXNnReeUy74ca_Tkn=zaPDFXLsT7HyBCNtbQuo@mail.gmail.com> References: <AANLkTimA2nTeyy5JOJsd1vmyyRUd47-k6jrEUrr_GF7W@mail.gmail.com> <AANLkTinXNnReeUy74ca_Tkn=zaPDFXLsT7HyBCNtbQuo@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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=="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@gmail.com <mailto:nexther0@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@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 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D917FDB.2090808>