commit c655635e2afcc3594de2ecf892c8172d5ff8a835 Author: Danny Rawlins <monster.romster@gmail.com> Date: Wed Dec 26 21:23:08 2018 +1100 firefox: picked up port diff --git a/firefox/.footprint b/firefox/.footprint new file mode 100644 index 00000000..3d23bf8e --- /dev/null +++ b/firefox/.footprint @@ -0,0 +1,51 @@ +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/default128.png +-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 +-rw-r--r-- root/root usr/lib/firefox/browser/chrome/icons/default/default64.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 +-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/TwemojiMozilla.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 +-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/.signature b/firefox/.signature new file mode 100644 index 00000000..a29d52b1 --- /dev/null +++ b/firefox/.signature @@ -0,0 +1,6 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF35E6EBxoEPGZoWhYPmJnA7Y1Wmr1Rdz/5x9IK39qudbaL9a1Mg9cfIj1pYDws9sc7C/OZhYIeO4xiV+fHYwMugg= +SHA256 (Pkgfile) = d87211aaf4eb0f9b0c693a68cdecdb2894c791f58be4aad0baebca33767e1284 +SHA256 (.footprint) = ba83ace6604f2c04a4e10eb00060ef7d98360e643f3674b29314fe9cec899189 +SHA256 (firefox-64.0.source.tar.xz) = da40f2f8f1cbf0ddb3454aa9f65bb1a2b2043ca9b1724aecd016337be77d537f +SHA256 (firefox.desktop) = 8ba3439f3dfc5cab883641969c93d8d15f8f20d7188d9568346b2edad52d6f91 diff --git a/firefox/Pkgfile b/firefox/Pkgfile new file mode 100644 index 00000000..9c3e8859 --- /dev/null +++ b/firefox/Pkgfile @@ -0,0 +1,62 @@ +# Description: The Mozilla Firefox browser with Alsa support +# URL: https://www.mozilla.com/firefox/ +# Maintainer: Danny Rawlins, crux at romster dot me +# Depends on: alsa-lib autoconf-2.13 cbindgen clang gtk gtk3 libidl nodejs nss unzip util-linux xorg-libxt yasm zip libnotify +# Optional: sccache + +name=firefox +version=64.0 +release=1 +source=(https://ftp.mozilla.org/pub/firefox/releases/$version/source/firefox-$versio... + firefox.desktop) + +build() { + cd firefox-$version + + if [ -n "$(pkginfo -i | grep '^sccache ')" ]; then + export RUSTC_WRAPPER=/usr/bin/sccache + fi + +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 --enable-system-ffi + ac_add_options --enable-system-pixman + ac_add_options --enable-system-sqlite + ac_add_options --enable-alsa + ac_add_options --disable-pulseaudio + 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-gconf +EOF + + export MOZ_MAKE_FLAGS="-j ${JOBS-1}" + export MOZBUILD_STATE_PATH="$PKGMK_SOURCE_DIR/.mozbuild" + export CARGO_HOME="$PKGMK_SOURCE_DIR" + + ./mach build + DESTDIR=$PKG ./mach install + + install -d $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 -r $PKG/usr/lib/firefox/browser/features + rm $PKG/usr/lib/firefox/removed-files + + install -d $PKG/etc/revdep.d + echo "/usr/lib/firefox" > $PKG/etc/revdep.d/firefox +} diff --git a/firefox/README b/firefox/README new file mode 100644 index 00000000..49f9d6b3 --- /dev/null +++ b/firefox/README @@ -0,0 +1,3 @@ +For h.264 support you will need to install the additional port: + +contrib/ffmpeg3 diff --git a/firefox/firefox.desktop b/firefox/firefox.desktop new file mode 100644 index 00000000..813f693f --- /dev/null +++ b/firefox/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;