Re: cvs commit: ports/www/chromium Makefile

From: Alexey Dokuchaev <>
Date: Fri, 8 Apr 2011 15:37:10 +0000
On Fri, Apr 08, 2011 at 12:24:57PM +0000, b. f. wrote:
> I guess that we should just trust users to configure them properly.

Yes, I also believe that if user wants to build a package for machine other
than theirs, they are expected to know how these things work and what to do
to get the work done.  From our side, we should provide easy and straight-
forward means of such customizations.

Summarizing our discussion, what do you think of the following?

.if ! ${MACHINE_CPU:Msse2} || defined(PACKAGE_BUILDING) && ${ARCH} != "amd64"
GYP_DEFINES+=	disable_sse2=1

Default package would have reasonable defaults now, custom port build can
be controlled by passing desired MACHINE_CPU.  Building SSE2-enabled
package for i386 is a bit tricky, but cannot be possibly polluted by
stale cached OPTIONS value.

> > On the other hand, Chromium is web browser, which it most likely is going
> > to be used on users' desktop, where SSE2 is probably feels like home for
> > a while already.  :-)
> ... for those people with new hardware.  But there are still quite a
> few desktop machines that don't have SSE2, but can run modern
> web-browsers, and these machines frequently use packages built
> elsewhere.  I have a couple myself.

True.  But for this case, making default package for i386 SSE2-free
should be just what's wanted.

Received on Fri Apr 08 2011 - 15:37:10 UTC