diff --git a/talimatname/genel/firefox/firefox-install-dir.patch b/talimatname/genel/firefox/firefox-install-dir.patch new file mode 100644 index 000000000..51fe4ba0a --- /dev/null +++ b/talimatname/genel/firefox/firefox-install-dir.patch @@ -0,0 +1,12 @@ +diff -up firefox-29.0/mozilla-release/config/baseconfig.mk.orig firefox-29.0/mozilla-release/config/baseconfig.mk +--- mozilla-release/config/baseconfig.mk.orig 2014-04-22 15:38:52.948165295 +0200 ++++ mozilla-release/config/baseconfig.mk 2014-04-22 15:42:20.387481673 +0200 +@@ -4,7 +4,7 @@ + # 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) ++installdir = $(libdir)/$(MOZ_APP_NAME) + sdkdir = $(libdir)/$(MOZ_APP_NAME)-devel-$(MOZ_APP_VERSION) + ifndef TOP_DIST + TOP_DIST = dist diff --git a/talimatname/genel/firefox/talimat b/talimatname/genel/firefox/talimat index 7c756f195..92e02ff6d 100644 --- a/talimatname/genel/firefox/talimat +++ b/talimatname/genel/firefox/talimat @@ -1,16 +1,16 @@ # Description: Standalone web browser from mozilla.org # URL: http://www.mozilla.com/firefox/ # Packager: alihan-ozturk28@hotmail.com -# Depends on: 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 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 version=47.0.1 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/mozilla.org/firefox/releases/$version/source/firefox-$version.source.tar.xz + firefox-install-dir.patch) build() { - cd $SRC ARCH=`uname -m` @@ -20,6 +20,13 @@ wget http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/$version/ done cd $name-$version +patch -Np1 -i ../firefox-install-dir.patch + +CPPFLAGS+=" -O2" +LDFLAGS+=" -Wl,-z,now" +CFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2" +CXXFLAGS+=" -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2" + cat > mozconfig << "EOF" ac_add_options --enable-default-toolkit=cairo-gtk3 ac_add_options --enable-system-sqlite @@ -54,7 +61,7 @@ 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= +SHELL=/bin/sh make -f client.mk DESTDIR=$PKG INSTALL_SDK= install chown -R 0:0 $PKG/usr/lib/firefox-$version ln -sf ../lib/firefox-$version/firefox $PKG/usr/bin