summaryrefslogtreecommitdiff
path: root/firefox-pa
diff options
context:
space:
mode:
authorFredrik Rinnestam <fredrik@crux.nu>2018-03-03 16:03:42 +0100
committerFredrik Rinnestam <fredrik@crux.nu>2018-03-03 16:03:42 +0100
commit932d0757c96df11e7e51ad16601f6525f742c2a9 (patch)
treec376025a508e1a33b4591fe9bc9f560c2751120f /firefox-pa
parent328cb0b311a59992877c924c144a7c8876a64558 (diff)
downloadopt-932d0757c96df11e7e51ad16601f6525f742c2a9.tar.gz
opt-932d0757c96df11e7e51ad16601f6525f742c2a9.tar.xz
firefox-pa: new port. Firefox with PA support
Diffstat (limited to 'firefox-pa')
-rw-r--r--firefox-pa/.footprint63
-rw-r--r--firefox-pa/.md5sum3
-rw-r--r--firefox-pa/.signature7
-rw-r--r--firefox-pa/Pkgfile59
-rw-r--r--firefox-pa/README3
-rw-r--r--firefox-pa/firefox-install-dir.patch19
-rw-r--r--firefox-pa/firefox.desktop8
7 files changed, 162 insertions, 0 deletions
diff --git a/firefox-pa/.footprint b/firefox-pa/.footprint
new file mode 100644
index 000000000..fa6727f4a
--- /dev/null
+++ b/firefox-pa/.footprint
@@ -0,0 +1,63 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/revdep.d/
+-rw-r--r-- root/root etc/revdep.d/firefox
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+lrwxrwxrwx root/root usr/bin/firefox -> /usr/lib/firefox/firefox
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/firefox/
+-rw-r--r-- root/root usr/lib/firefox/application.ini
+drwxr-xr-x root/root usr/lib/firefox/browser/
+-rw-r--r-- root/root usr/lib/firefox/browser/blocklist.xml
+-rw-r--r-- root/root usr/lib/firefox/browser/chrome.manifest (EMPTY)
+drwxr-xr-x root/root usr/lib/firefox/browser/chrome/
+drwxr-xr-x root/root usr/lib/firefox/browser/chrome/icons/
+drwxr-xr-x root/root usr/lib/firefox/browser/chrome/icons/default/
+-rw-r--r-- root/root usr/lib/firefox/browser/chrome/icons/default/default16.png
+-rw-r--r-- root/root usr/lib/firefox/browser/chrome/icons/default/default32.png
+-rw-r--r-- root/root usr/lib/firefox/browser/chrome/icons/default/default48.png
+drwxr-xr-x root/root usr/lib/firefox/browser/extensions/
+-rw-r--r-- root/root usr/lib/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
+drwxr-xr-x root/root usr/lib/firefox/browser/features/
+-rw-r--r-- root/root usr/lib/firefox/browser/features/activity-stream@mozilla.org.xpi
+-rw-r--r-- root/root usr/lib/firefox/browser/features/followonsearch@mozilla.com.xpi
+-rw-r--r-- root/root usr/lib/firefox/browser/features/formautofill@mozilla.org.xpi
+-rw-r--r-- root/root usr/lib/firefox/browser/features/onboarding@mozilla.org.xpi
+-rw-r--r-- root/root usr/lib/firefox/browser/features/shield-recipe-client@mozilla.org.xpi
+drwxr-xr-x root/root usr/lib/firefox/browser/icons/
+-rw-r--r-- root/root usr/lib/firefox/browser/icons/mozicon128.png
+-rw-r--r-- root/root usr/lib/firefox/browser/omni.ja
+-rw-r--r-- root/root usr/lib/firefox/chrome.manifest (EMPTY)
+drwxr-xr-x root/root usr/lib/firefox/defaults/
+drwxr-xr-x root/root usr/lib/firefox/defaults/pref/
+-rw-r--r-- root/root usr/lib/firefox/defaults/pref/channel-prefs.js
+-rw-r--r-- root/root usr/lib/firefox/dependentlibs.list
+drwxr-xr-x root/root usr/lib/firefox/dictionaries/
+-rw-r--r-- root/root usr/lib/firefox/dictionaries/en-US.aff
+-rw-r--r-- root/root usr/lib/firefox/dictionaries/en-US.dic
+-rwxr-xr-x root/root usr/lib/firefox/firefox
+-rwxr-xr-x root/root usr/lib/firefox/firefox-bin
+drwxr-xr-x root/root usr/lib/firefox/fonts/
+-rw-r--r-- root/root usr/lib/firefox/fonts/EmojiOneMozilla.ttf
+drwxr-xr-x root/root usr/lib/firefox/gmp-clearkey/
+drwxr-xr-x root/root usr/lib/firefox/gmp-clearkey/0.1/
+-rwxr-xr-x root/root usr/lib/firefox/gmp-clearkey/0.1/libclearkey.so
+-rw-r--r-- root/root usr/lib/firefox/gmp-clearkey/0.1/manifest.json
+drwxr-xr-x root/root usr/lib/firefox/gtk2/
+-rwxr-xr-x root/root usr/lib/firefox/gtk2/libmozgtk.so
+-rw-r--r-- root/root usr/lib/firefox/icudt59l.dat
+-rwxr-xr-x root/root usr/lib/firefox/liblgpllibs.so
+-rwxr-xr-x root/root usr/lib/firefox/libmozavcodec.so
+-rwxr-xr-x root/root usr/lib/firefox/libmozavutil.so
+-rwxr-xr-x root/root usr/lib/firefox/libmozgtk.so
+-rwxr-xr-x root/root usr/lib/firefox/libmozsandbox.so
+-rwxr-xr-x root/root usr/lib/firefox/libxul.so
+-rw-r--r-- root/root usr/lib/firefox/omni.ja
+-rwxr-xr-x root/root usr/lib/firefox/pingsender
+-rw-r--r-- root/root usr/lib/firefox/platform.ini
+-rwxr-xr-x root/root usr/lib/firefox/plugin-container
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/applications/
+-rw-r--r-- root/root usr/share/applications/firefox.desktop
+drwxr-xr-x root/root usr/share/pixmaps/
+lrwxrwxrwx root/root usr/share/pixmaps/firefox_default48.png -> /usr/lib/firefox/browser/chrome/icons/default/default48.png
diff --git a/firefox-pa/.md5sum b/firefox-pa/.md5sum
new file mode 100644
index 000000000..e05359c73
--- /dev/null
+++ b/firefox-pa/.md5sum
@@ -0,0 +1,3 @@
+a64c6cd4785ba1ae094faae16105dbf2 firefox-58.0.2.source.tar.xz
+afe61c7760e835bd12d5dfd40af4ec84 firefox-install-dir.patch
+cf6971669f70b440cb6ff8df8b2722ae firefox.desktop
diff --git a/firefox-pa/.signature b/firefox-pa/.signature
new file mode 100644
index 000000000..1d557ff68
--- /dev/null
+++ b/firefox-pa/.signature
@@ -0,0 +1,7 @@
+untrusted comment: verify with /etc/ports/opt.pub
+RWSE3ohX2g5d/Zs8YdY3Yhjjc/hqBt/H6ysJequiuovdjKRcbxY6oqF0DkUYIWjcE8+1/DfPX0hxR85NrpYqseYfHjirlRvtOwo=
+SHA256 (Pkgfile) = 29bc2a48bd4828f6475b9d8ae9665903c8defdede1029b74732ba89dac46d672
+SHA256 (.footprint) = cfe1113d37d46db558269cba0faef956b05236b40cc7517a88dd2d515649a816
+SHA256 (firefox-58.0.2.source.tar.xz) = 2b7794e4c2a24fa388f3acb2956c96bb2c3eae455467f0e386788ebaea7240c3
+SHA256 (firefox-install-dir.patch) = 32c0102521b7296627ba457575c742746400680c3aecd18be8b1b382dccdc0ce
+SHA256 (firefox.desktop) = 8ba3439f3dfc5cab883641969c93d8d15f8f20d7188d9568346b2edad52d6f91
diff --git a/firefox-pa/Pkgfile b/firefox-pa/Pkgfile
new file mode 100644
index 000000000..3b723fddb
--- /dev/null
+++ b/firefox-pa/Pkgfile
@@ -0,0 +1,59 @@
+# Description: The Mozilla Firefox browser with PulseAudio support
+# URL: https://www.mozilla.com/firefox/
+# Maintainer: Fredrik Rinnestam, fredrik at crux dot nu
+# Depends on: nss, autoconf-2.13, unzip, zip, libidl, gtk, gtk3, python, xorg-libxt, yasm, mesa3d, rust, pulseaudio
+
+name=firefox-pa
+version=58.0.2
+release=1
+source=(https://ftp.mozilla.org/pub/firefox/releases/$version/source/firefox-$version.source.tar.xz
+ firefox-install-dir.patch firefox.desktop)
+
+build() {
+ cd firefox-$version
+
+ # stupid workaround
+ sed -i '2,7d' js/src/configure
+ patch -p1 -i $SRC/firefox-install-dir.patch
+
+cat <<- EOF > .mozconfig
+ mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-shared
+ ac_add_options --prefix=/usr
+ ac_add_options --enable-default-toolkit=cairo-gtk3
+ ac_add_options --with-system-jpeg
+ ac_add_options --with-system-zlib
+ ac_add_options --with-system-png
+ ac_add_options --with-system-nspr
+ ac_add_options --with-system-nss
+ ac_add_options --with-system-cairo
+ ac_add_options --enable-system-ffi
+ ac_add_options --enable-system-pixman
+ ac_add_options --enable-system-sqlite
+ ac_add_options --with-pthreads
+ ac_add_options --enable-official-branding
+ ac_add_options --with-distribution-id=nu.crux
+ ac_add_options --enable-extensions=default,-gnomevfs
+ ac_add_options --disable-tests
+ ac_add_options --disable-dbus
+ ac_add_options --disable-debug
+ ac_add_options --disable-updater
+ ac_add_options --disable-crashreporter
+ ac_add_options --disable-necko-wifi
+ #ac_add_options --disable-pulseaudio
+ ac_add_options --disable-gconf
+ ac_add_options --disable-stylo
+EOF
+
+ ./mach build
+ DESTDIR=$PKG ./mach install
+
+ mkdir -p $PKG/usr/share/pixmaps
+ ln -s /usr/lib/firefox/browser/chrome/icons/default/default48.png $PKG/usr/share/pixmaps/firefox_default48.png
+ install -D -m 0644 $SRC/firefox.desktop $PKG/usr/share/applications/firefox.desktop
+ # Remove crap
+ rm $PKG/usr/lib/firefox/browser/features/{firefox@getpocket.com.xpi,webcompat@mozilla.org.xpi,aushelper@mozilla.org.xpi,screenshots@mozilla.org.xpi}
+ rm $PKG/usr/lib/firefox/removed-files
+
+ mkdir -p $PKG/etc/revdep.d
+ echo "/usr/lib/firefox" > $PKG/etc/revdep.d/firefox
+}
diff --git a/firefox-pa/README b/firefox-pa/README
new file mode 100644
index 000000000..aaa1d5056
--- /dev/null
+++ b/firefox-pa/README
@@ -0,0 +1,3 @@
+For html5 video and h.264 support you will need to install the additional port:
+
+ffmpeg
diff --git a/firefox-pa/firefox-install-dir.patch b/firefox-pa/firefox-install-dir.patch
new file mode 100644
index 000000000..7f753bdbe
--- /dev/null
+++ b/firefox-pa/firefox-install-dir.patch
@@ -0,0 +1,19 @@
+diff -rupN firefox-45.0b2.orig/config/baseconfig.mk firefox-45.0b2/config/baseconfig.mk
+--- firefox-45.0b2.orig/config/baseconfig.mk 2016-02-02 18:20:35.472808496 +0100
++++ firefox-45.0b2/config/baseconfig.mk 2016-02-02 18:22:04.606017747 +0100
+@@ -2,10 +2,10 @@
+ # directly in python/mozbuild/mozbuild/base.py for gmake validation.
+ # We thus use INCLUDED_AUTOCONF_MK to enable/disable some parts depending
+ # whether a normal build is happening or whether the check is running.
+-includedir := $(includedir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
+-idldir = $(datadir)/idl/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
+-installdir = $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
+-sdkdir = $(libdir)/$(MOZ_APP_NAME)-devel-$(MOZ_APP_VERSION)
++includedir := $(includedir)/$(MOZ_APP_NAME)
++idldir = $(datadir)/idl/$(MOZ_APP_NAME)
++installdir = $(libdir)/$(MOZ_APP_NAME)
++sdkdir = $(libdir)/$(MOZ_APP_NAME)-devel
+ ifeq (.,$(DEPTH))
+ DIST = dist
+ else
+
diff --git a/firefox-pa/firefox.desktop b/firefox-pa/firefox.desktop
new file mode 100644
index 000000000..813f693f8
--- /dev/null
+++ b/firefox-pa/firefox.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Firefox
+Comment=Browser
+Exec=firefox
+Icon=firefox_default48.png
+Terminal=false
+Type=Application
+Categories=Application;Network;

Generated by cgit