pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/firefox Add gtk3 (cairo-gtk3) option for firefox.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1cacc3e09d80
branches:  trunk
changeset: 358385:1cacc3e09d80
user:      abs <abs%pkgsrc.org@localhost>
date:      Sat Feb 11 12:12:02 2017 +0000

description:
Add gtk3 (cairo-gtk3) option for firefox.
Default build is unchanged with gtk2 (cairo-gtk2)

diffstat:

 www/firefox/PLIST             |   4 +++-
 www/firefox/mozilla-common.mk |   4 ++--
 www/firefox/options.mk        |  22 +++++++++++++++++++++-
 3 files changed, 26 insertions(+), 4 deletions(-)

diffs (88 lines):

diff -r 3a17ed5508da -r 1cacc3e09d80 www/firefox/PLIST
--- a/www/firefox/PLIST Sat Feb 11 11:28:04 2017 +0000
+++ b/www/firefox/PLIST Sat Feb 11 12:12:02 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.115 2017/01/25 13:24:51 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.116 2017/02/11 12:12:02 abs Exp $
 bin/firefox
 lib/firefox/application.ini
 lib/firefox/browser/blocklist.xml
@@ -3397,6 +3397,7 @@
 lib/firefox/gmp-clearkey/0.1/clearkey.info
 lib/firefox/gmp-clearkey/0.1/libclearkey.so
 lib/firefox/greprefs.js
+${PLIST.gtk3}lib/firefox/gtk2/libmozgtk.so
 lib/firefox/hyphenation/hyph_af.dic
 lib/firefox/hyphenation/hyph_bg.dic
 lib/firefox/hyphenation/hyph_ca.dic
@@ -3434,6 +3435,7 @@
 lib/firefox/hyphenation/hyph_tr.dic
 lib/firefox/hyphenation/hyph_uk.dic
 lib/firefox/liblgpllibs.so
+${PLIST.gtk3}lib/firefox/libmozgtk.so
 ${PLIST.avx86}lib/firefox/libmozavcodec.so
 ${PLIST.avx86}lib/firefox/libmozavutil.so
 lib/firefox/libmozsqlite3.so
diff -r 3a17ed5508da -r 1cacc3e09d80 www/firefox/mozilla-common.mk
--- a/www/firefox/mozilla-common.mk     Sat Feb 11 11:28:04 2017 +0000
+++ b/www/firefox/mozilla-common.mk     Sat Feb 11 12:12:02 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mozilla-common.mk,v 1.86 2017/01/27 01:36:21 maya Exp $
+# $NetBSD: mozilla-common.mk,v 1.87 2017/02/11 12:12:02 abs Exp $
 #
 # common Makefile fragment for mozilla packages based on gecko 2.0.
 #
@@ -48,7 +48,6 @@
 CONFIGURE_ARGS+=       --enable-pie
 CONFIGURE_ARGS+=       --disable-tests
 CONFIGURE_ARGS+=       --with-pthreads
-CONFIGURE_ARGS+=       --enable-default-toolkit=cairo-gtk2
 CONFIGURE_ARGS+=       --enable-system-cairo
 CONFIGURE_ARGS+=       --enable-system-pixman
 CONFIGURE_ARGS+=       --with-system-libvpx
@@ -205,6 +204,7 @@
 .include "../../multimedia/libvpx/buildlink3.mk"
 .include "../../net/libIDL/buildlink3.mk"
 .include "../../textproc/hunspell/buildlink3.mk"
+# gtk2 needed even if --enable-default-toolkit=cairo-gtk3
 BUILDLINK_API_DEPENDS.gtk2+=  gtk2+>=2.18.3nb1
 .include "../../x11/gtk2/buildlink3.mk"
 .include "../../multimedia/ffmpeg3/buildlink3.mk"
diff -r 3a17ed5508da -r 1cacc3e09d80 www/firefox/options.mk
--- a/www/firefox/options.mk    Sat Feb 11 11:28:04 2017 +0000
+++ b/www/firefox/options.mk    Sat Feb 11 12:12:02 2017 +0000
@@ -1,6 +1,11 @@
-# $NetBSD: options.mk,v 1.35 2017/02/04 11:14:27 maya Exp $
+# $NetBSD: options.mk,v 1.36 2017/02/11 12:12:02 abs Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.firefox
+
+PKG_OPTIONS_REQUIRED_GROUPS=   gtk
+PKG_OPTIONS_GROUP.gtk=         gtk2 gtk3
+PKG_SUGGESTED_OPTIONS=         gtk2
+
 PKG_SUPPORTED_OPTIONS= official-mozilla-branding
 PKG_SUPPORTED_OPTIONS+=        debug debug-info mozilla-jemalloc webrtc
 PKG_SUPPORTED_OPTIONS+=        alsa oss pulseaudio dbus
@@ -23,6 +28,21 @@
 
 .include "../../mk/bsd.options.mk"
 
+PLIST_VARS+=           gtk3
+.if !empty(PKG_OPTIONS:Mgtk2)
+CONFIGURE_ARGS+=       --enable-default-toolkit=cairo-gtk2
+BUILDLINK_API_DEPENDS.gtk2+=  gtk2+>=2.18.3nb1
+.include "../../x11/gtk2/buildlink3.mk"
+PLIST.gtk3=            no
+.endif
+
+# As of firefox-51 gtk2 is still pulled in implicitly
+.if !empty(PKG_OPTIONS:Mgtk3)
+CONFIGURE_ARGS+=       --enable-default-toolkit=cairo-gtk3
+.include "../../x11/gtk3/buildlink3.mk"
+PLIST.gtk3=            yes
+.endif
+
 .if !empty(PKG_OPTIONS:Malsa)
 CONFIGURE_ARGS+=       --enable-alsa
 .include "../../audio/alsa-lib/buildlink3.mk"



Home | Main Index | Thread Index | Old Index