[firefox] Gtk3 support - WIP

Martin Stransky stransky at fedoraproject.org
Fri Oct 31 09:43:22 UTC 2014


commit 88a98103f7b29336661e7dfee23f44ae865c7adb
Author: Martin Stransky <stransky at redhat.com>
Date:   Fri Oct 31 10:43:18 2014 +0100

    Gtk3 support - WIP

 firefox-mozconfig |    1 -
 firefox.spec      |   18 ++++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/firefox-mozconfig b/firefox-mozconfig
index c3ca652..749a012 100644
--- a/firefox-mozconfig
+++ b/firefox-mozconfig
@@ -13,7 +13,6 @@ ac_add_options --disable-tests
 ac_add_options --disable-mochitest
 ac_add_options --disable-installer
 ac_add_options --enable-xinerama
-ac_add_options --enable-default-toolkit=cairo-gtk2
 ac_add_options --disable-xprint
 ac_add_options --disable-strip
 ac_add_options --enable-system-cairo
diff --git a/firefox.spec b/firefox.spec
index 262fda7..6a4b656 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -10,9 +10,17 @@
 %define system_ffi        1
 %endif
 
+# Build for Gtk3?
+%define toolkit_gtk3      0
+
 # Use system cairo?
 %define system_cairo      0
 
+# Gtk3 needs system cairo
+%if %{toolkit_gtk3}
+%define system_cairo      1
+%endif
+
 %define enable_gstreamer  1
 
 # Separated plugins are supported on x86(64) only
@@ -155,7 +163,11 @@ BuildRequires:  zip
 BuildRequires:  bzip2-devel
 BuildRequires:  zlib-devel
 BuildRequires:  libIDL-devel
+%if %{toolkit_gtk3}
+BuildRequires:  gtk3-devel
+%else
 BuildRequires:  gtk2-devel
+%endif
 BuildRequires:  krb5-devel
 BuildRequires:  pango-devel
 BuildRequires:  freetype-devel >= %{freetype_version}
@@ -289,6 +301,12 @@ cd %{tarballdir}
 %endif
 %{__cp} %{SOURCE24} mozilla-api-key
 
+%if %{toolkit_gtk3}
+echo "ac_add_options --enable-default-toolkit=cairo-gtk3" >> .mozconfig
+%else
+echo "ac_add_options --enable-default-toolkit=cairo-gtk2" >> .mozconfig
+%endif
+
 %if %{?system_nss}
 echo "ac_add_options --with-system-nspr" >> .mozconfig
 echo "ac_add_options --with-system-nss" >> .mozconfig


More information about the scm-commits mailing list