firefox
This commit is contained in:
parent
b033c5c2b2
commit
1d60ee1aa9
|
@ -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
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Firefox
|
||||||
|
Comment=Browser
|
||||||
|
Exec=firefox
|
||||||
|
Icon=firefox_default48.png
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Categories=Application;Network;
|
|
@ -4,153 +4,57 @@
|
||||||
# Depends on: autoconf2 libbluray pulseaudio gconf yasm sqlite libvpx libevent nss alsa-lib gtk2 gtk3 xorg-app zip unzip gstreamer1 gstreamer1-plugins-base gstreamer1-plugins-good gstreamer1-plugins-libav
|
# Depends on: autoconf2 libbluray pulseaudio gconf yasm sqlite libvpx libevent nss alsa-lib gtk2 gtk3 xorg-app zip unzip gstreamer1 gstreamer1-plugins-base gstreamer1-plugins-good gstreamer1-plugins-libav
|
||||||
|
|
||||||
name=firefox
|
name=firefox
|
||||||
version=49.0.2
|
version=53.0
|
||||||
release=2
|
release=1
|
||||||
source=(https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$version/source/firefox-$version.source.tar.xz
|
source=(https://ftp.mozilla.org/pub/firefox/releases/$version/source/firefox-$version.source.tar.xz
|
||||||
http://download-origin.cdn.mozilla.net/pub/firefox/releases/$version/linux-x86_64/xpi/tr.xpi)
|
firefox-install-dir.patch firefox.desktop)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
cd firefox-$version
|
||||||
|
|
||||||
cd $SRC
|
sed -i '/^ftfntfmt.h/ i freetype/ftfntfmt.h' config/system-headers
|
||||||
ARCH=`uname -m`
|
# stupid workaround
|
||||||
|
sed -i '2,7d' js/src/configure
|
||||||
|
patch -p1 -i $SRC/firefox-install-dir.patch
|
||||||
|
|
||||||
#for lang in tr
|
cat <<- EOF > .mozconfig
|
||||||
#do
|
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-shared
|
||||||
#wget http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/$version/linux-$ARCH/xpi/$lang.xpi
|
mk_add_options MOZ_MAKE_FLAGS="-j1"
|
||||||
#done
|
ac_add_options --prefix=/usr
|
||||||
|
ac_add_options --enable-default-toolkit=cairo-gtk3
|
||||||
cd $name-$version
|
ac_add_options --with-system-jpeg
|
||||||
cat > mozconfig << "EOF"
|
ac_add_options --with-system-zlib
|
||||||
# If you have a multicore machine, all cores will be used by default.
|
ac_add_options --with-system-png
|
||||||
# If desired, you can reduce the number of cores used, e.g. to 1, by
|
|
||||||
# uncommenting the next line and setting a valid number of CPU cores.
|
|
||||||
#mk_add_options MOZ_MAKE_FLAGS="-j1"
|
|
||||||
|
|
||||||
# If you have installed DBus-Glib comment out this line:
|
|
||||||
ac_add_options --disable-dbus
|
|
||||||
|
|
||||||
# If you have installed dbus-glib, and you have installed (or will install)
|
|
||||||
# wireless-tools, and you wish to use geolocation web services, comment out
|
|
||||||
# this line
|
|
||||||
ac_add_options --disable-necko-wifi
|
|
||||||
|
|
||||||
# Uncomment this option if you wish to build with gtk+-2
|
|
||||||
#ac_add_options --enable-default-toolkit=cairo-gtk2
|
|
||||||
|
|
||||||
# Uncomment these lines if you have installed optional dependencies:
|
|
||||||
#ac_add_options --enable-system-hunspell
|
|
||||||
#ac_add_options --enable-startup-notification
|
|
||||||
|
|
||||||
# Comment out following option if you have PulseAudio installed
|
|
||||||
#ac_add_options --disable-pulseaudio
|
|
||||||
|
|
||||||
# If you have installed GConf, comment out this line
|
|
||||||
ac_add_options --disable-gconf
|
|
||||||
|
|
||||||
# Comment out following options if you have not installed
|
|
||||||
# recommended dependencies:
|
|
||||||
ac_add_options --enable-system-sqlite
|
|
||||||
ac_add_options --with-system-libevent
|
|
||||||
ac_add_options --with-system-libvpx
|
|
||||||
ac_add_options --with-system-nspr
|
ac_add_options --with-system-nspr
|
||||||
ac_add_options --with-system-nss
|
ac_add_options --with-system-nss
|
||||||
ac_add_options --with-system-icu
|
ac_add_options --with-system-cairo
|
||||||
|
|
||||||
# If you are going to apply the patch for system graphite
|
|
||||||
# and system harfbuzz, uncomment these lines:
|
|
||||||
#ac_add_options --with-system-graphite2
|
|
||||||
#ac_add_options --with-system-harfbuzz
|
|
||||||
|
|
||||||
# Stripping is now enabled by default.
|
|
||||||
# Uncomment these lines if you need to run a debugger:
|
|
||||||
#ac_add_options --disable-strip
|
|
||||||
#ac_add_options --disable-install-strip
|
|
||||||
|
|
||||||
# The BLFS editors recommend not changing anything below this line:
|
|
||||||
ac_add_options --prefix=/usr
|
|
||||||
ac_add_options --enable-application=browser
|
|
||||||
|
|
||||||
ac_add_options --disable-crashreporter
|
|
||||||
ac_add_options --disable-updater
|
|
||||||
ac_add_options --disable-tests
|
|
||||||
|
|
||||||
ac_add_options --enable-optimize
|
|
||||||
|
|
||||||
ac_add_options --enable-gio
|
|
||||||
ac_add_options --enable-official-branding
|
|
||||||
ac_add_options --enable-safe-browsing
|
|
||||||
ac_add_options --enable-url-classifier
|
|
||||||
|
|
||||||
# From firefox-40, using system cairo causes firefox to crash
|
|
||||||
# frequently when it is doing background rendering in a tab.
|
|
||||||
#ac_add_options --enable-system-cairo
|
|
||||||
ac_add_options --enable-system-ffi
|
ac_add_options --enable-system-ffi
|
||||||
ac_add_options --enable-system-pixman
|
ac_add_options --enable-system-pixman
|
||||||
|
ac_add_options --enable-system-sqlite
|
||||||
|
ac_add_options --enable-alsa
|
||||||
ac_add_options --with-pthreads
|
ac_add_options --with-pthreads
|
||||||
|
ac_add_options --enable-official-branding
|
||||||
ac_add_options --with-system-bz2
|
ac_add_options --with-distribution-id=org.milislinux
|
||||||
ac_add_options --with-system-jpeg
|
ac_add_options --enable-extensions=default,-gnomevfs
|
||||||
ac_add_options --with-system-png
|
ac_add_options --disable-tests
|
||||||
ac_add_options --with-system-zlib
|
ac_add_options --disable-dbus
|
||||||
|
ac_add_options --disable-debug
|
||||||
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir
|
ac_add_options --disable-updater
|
||||||
|
ac_add_options --disable-gnomeui
|
||||||
|
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-rust
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
test $(uname -m) = "i686" && sed -i 's/enable-optimize/disable-optimize/' mozconfig || true
|
SHELL=/bin/sh make -f client.mk build
|
||||||
|
SHELL=/bin/sh make -f client.mk DESTDIR=$PKG install
|
||||||
|
|
||||||
export CFLAGS=$CFLAGS_HOLD
|
mkdir -p $PKG/usr/share/pixmaps
|
||||||
export CXXFLAGS_HOLD=$CXXFLAGS
|
ln -s /usr/lib/firefox/browser/chrome/icons/default/default48.png $PKG/usr/share/pixmaps/firefox_default48.png
|
||||||
export CFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
|
install -D -m 0644 $SRC/firefox.desktop $PKG/usr/share/applications/firefox.desktop
|
||||||
export CXXFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2"
|
# Remove crap
|
||||||
|
rm $PKG/usr/lib/firefox/browser/features/{firefox@getpocket.com.xpi,webcompat@mozilla.org.xpi}
|
||||||
|
|
||||||
SHELL=/bin/sh make -f client.mk
|
|
||||||
|
|
||||||
mkdir -pv $PKG/usr/{bin,lib{,/mozilla/plugins}}
|
|
||||||
|
|
||||||
SHELL=/bin/sh make -f client.mk DESTDIR=$PKG install INSTALL_SDK=
|
|
||||||
|
|
||||||
chown -R 0:0 $PKG/usr/lib/firefox-$version
|
|
||||||
ln -sf ../lib/firefox-$version/firefox $PKG/usr/bin
|
|
||||||
ln -sf ../mozilla/plugins $PKG/usr/lib/firefox-$version
|
|
||||||
|
|
||||||
# Need for gnash
|
|
||||||
mkdir -p $PKG/usr/include/npapi
|
|
||||||
cp -v dom/plugins/base/*.h $PKG/usr/include/npapi
|
|
||||||
|
|
||||||
# Launcher
|
|
||||||
mkdir -pv $PKG/usr/share/applications &&
|
|
||||||
cat > $PKG/usr/share/applications/firefox.desktop << "EOF" &&
|
|
||||||
[Desktop Entry]
|
|
||||||
Encoding=UTF-8
|
|
||||||
Type=Application
|
|
||||||
Name=Firefox
|
|
||||||
Comment=Mozilla Firefox
|
|
||||||
Icon=firefox
|
|
||||||
Exec=firefox
|
|
||||||
Categories=Network;GTK;Application;Browser;WebBrowser;
|
|
||||||
StartupNotify=true
|
|
||||||
Terminal=false
|
|
||||||
EOF
|
|
||||||
mkdir -pv $PKG/usr/share/pixmaps
|
|
||||||
ln -sf /usr/lib/firefox-$version/browser/icons/mozicon128.png $PKG/usr/share/pixmaps/firefox.png
|
|
||||||
|
|
||||||
|
|
||||||
for lang in tr
|
|
||||||
do
|
|
||||||
install -Dm644 $SRC/$lang.xpi \
|
|
||||||
$PKG/usr/lib/firefox-$version/browser/extensions/langpack-$lang@firefox.mozilla.org.xpi
|
|
||||||
done
|
|
||||||
|
|
||||||
cat > $PKG/usr/lib/firefox-$version/defaults/pref/vendor.js << "EOF"
|
|
||||||
// Use LANG environment variable to choose locale
|
|
||||||
pref("intl.locale.matchOS", true);
|
|
||||||
|
|
||||||
// Disable default browser checking.
|
|
||||||
pref("browser.shell.checkDefaultBrowser", false);
|
|
||||||
|
|
||||||
// Don't disable our bundled extensions in the application directory
|
|
||||||
pref("extensions.autoDisableScopes", 11);
|
|
||||||
pref("extensions.shownSelectionUI", true);
|
|
||||||
EOF
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue