Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jan 2011 09:59:00 +0800
From:      =?GB2312?B?wuOxvLXEzs/Fow==?= <sipingal@gmail.com>
To:        gnome@FreeBSD.org
Subject:   Fwd: Is possible to add the "configure --enable_system_cairo" as option for the firefox
Message-ID:  <AANLkTiny_WN7kWBKVrwPKxG5qy_sfnrpVkednz6t6PGd@mail.gmail.com>
In-Reply-To: <4D2C4FCD.2030009@FreeBSD.org>
References:  <AANLkTimnBCez-WsSvmA4ev1k8rGz_1CLWN%2B-cXERqJhQ@mail.gmail.com> <4D2C4FCD.2030009@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Gnome,

The new version of cairo(1.10.2) has been released and it fixed some bugs
which are addressed in
http://www.freebsd.org/cgi/getmsg.cgi?fetch=3D48037+0+/usr/local/www/db/tex=
t/2010/cvs-ports/20101205.cvs-ports.
Could you please merge the update? Is possible to add this patch to the
cairo port?
http://bugs.gentoo.org/attachment.cgi?id=3D241939&action=3Ddiff&context=3Dp=
atch&collapsed=3D&headers=3D1&format=3Draw

Thank you very much in advance.

Best regards,
Sipingal Liu

---------- Forwarded message ----------
From: Beat Gaetzi <beat@freebsd.org>
Date: 2011/1/11
Subject: Re: Is possible to add the "configure --enable_system_cairo" as
option for the firefox
To: =E8=A3=B8=E5=A5=94=E7=9A=84=E8=9C=97=E7=89=9B <sipingal@gmail.com>
Cc: gecko@freebsd.org


Hi,

On 11.01.2011 07:47, =E8=A3=B8=E5=A5=94=E7=9A=84=E8=9C=97=E7=89=9B wrote:
> Hi Gecko,
>
> I'm using follow patch to improve my system font display.
>
>
http://bugs.gentoo.org/attachment.cgi?id=3D241939&action=3Ddiff&context=3Dp=
atch&collapsed=3D&headers=3D1&format=3Draw
>
> e.g
> 1. save the patch as /tmp/cairo-1.10-cleartype.patch
>
> 2. reinstall freetype2
> # cd /usr/ports/print/freetype2 && make WITH_LCD_FILTERING=3Dyes && make
> deinstall reinstall clean
>
> 3. reinstall cairo
> # cd /usr/ports/graphics/cairo && make extract && cd work/cairo* && patch
> -Np1 < /tmp/cairo-1.10-cleartype.patch && cd ../.. && make && make
deinstall
> reinstall clean
>
> After that, everythings looks great except the firefox display. I tried t=
o
> compare the build options(firefox url "about:buildconfig") with my gentoo
> box. It looks like the --enable-system-cairo option made the difference.
So
> I modify the firefox Makefile and add the option "--enable-system-cairo".
I
> finally got what I want. But I would like to have an option to choice the
> behavior, using system cairo, not hack the Makefile.
>
> Is possible to add the option for the firefox? Thank you in advance.

I assume you are using Firefox 3.6. Firefox was using system cairo until
cairo was updated to 1.10.0 because gif and svg image were no longer
rendered correctly:
http://www.freebsd.org/cgi/getmsg.cgi?fetch=3D48037+0+/usr/local/www/db/tex=
t/2010/cvs-ports/20101205.cvs-ports

If you like to revert this change you could use this patch:

Index: Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/pcvs/ports/www/firefox/Makefile,v
retrieving revision 1.235
diff -u -r1.235 Makefile
--- Makefile    10 Dec 2010 12:43:26 -0000      1.235
+++ Makefile    11 Jan 2011 12:39:21 -0000
@@ -21,7 +21,7 @@
 USE_AUTOTOOLS=3D autoconf213
 USE_GECKO=3D     gecko
 MOZ_PKGCONFIG_FILES=3D   # empty
-USE_MOZILLA=3D   -png -nss -dbm -jpeg -xft -cairo
+USE_MOZILLA=3D   -png -nss -dbm -jpeg -xft
 MOZILLA_NAME=3D  Firefox${MOZILLA_SUFX}
 MOZILLA_SUFX=3D  3
 MOZILLA=3D       ${PORTNAME}${MOZILLA_SUFX}

HTH,
Beat

--
Beat G=C3=A4tzi       | FreeBSD Committer
beat@FreeBSD.org | http://www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTiny_WN7kWBKVrwPKxG5qy_sfnrpVkednz6t6PGd>