Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 874D3CAC5A5 for ; Thu, 25 Sep 2025 02:58:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 4EAF0611B2; Thu, 25 Sep 2025 02:58:40 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id nDb-tkWYkNY0; Thu, 25 Sep 2025 02:58:39 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 4F422612C6 Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id 4F422612C6; Thu, 25 Sep 2025 02:58:39 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists1.osuosl.org (Postfix) with ESMTP id 7E70512D for ; Thu, 25 Sep 2025 02:58:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 6FEBC83E60 for ; Thu, 25 Sep 2025 02:58:37 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id mYyyh8cDeTgD for ; Thu, 25 Sep 2025 02:58:36 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=89.238.66.15; helo=helium.openadk.org; envelope-from=wbx@openadk.org; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 3B4BB83E5E DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 3B4BB83E5E Received: from helium.openadk.org (helium.openadk.org [89.238.66.15]) by smtp1.osuosl.org (Postfix) with ESMTPS id 3B4BB83E5E for ; Thu, 25 Sep 2025 02:58:35 +0000 (UTC) Received: by helium.openadk.org (Postfix, from userid 1000) id 184D731E0C93; Thu, 25 Sep 2025 04:58:33 +0200 (CEST) Date: Thu, 25 Sep 2025 04:58:33 +0200 From: Waldemar Brodkorb To: buildroot@buildroot.org Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Operating-System: Linux 6.12.43+deb13-amd64 x86_64 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openadk.org; s=2022; t=1758769114; bh=tnecoxQmL++dgdzkhWWVoDmlnZF+GvqEIedmPDPqngU=; h=Date:From:To:Subject:From; b=wxw2tdCIOSnPziQ9U928saeyVJ/dsO79eg2sHjSo0+uajJhS1JbmM2SPypWIZoXu4 pfsjo/AOrgQPTVa15SRTUdTPWf753Gjr685c9JHpgGjUXQe35rH0WrBLAc+JSh0AIE 3q7iT86genUZG1CSdZb8NImIplZOgDAbzV4Y2o0yQvd52ED5OFozHJQsHw3JOM4tTu 3sBKaYBCYPQofupgyYtoS2pwp+vW8YQ2HPeLwPv5X2NzpdKk2pNEc9pfP+gUmny2F4 fA4Urk8Fs11dkIV64xkmTA19VUUpLnUprkjDPuHAZqurQ/8dmpDWcg7rIq26dIRnMI HQ3ppBlHrN+/Q== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dmarc=none (p=none dis=none) header.from=openadk.org X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=openadk.org header.i=@openadk.org header.a=rsa-sha256 header.s=2022 header.b=wxw2tdCI Subject: [Buildroot] [PATCH 5/5] package/firefox: new package X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Popular Webbrowser. Tested on Raspberry PI4 (aarch64) and Qemu X86_64. You need some fonts to be installed to make use of it, f.e. Dejavu fonts. To compile firefox you need a machine with approximately 24 GB of RAM. The system PNG library can not be used, because it does not have APNG support. Signed-off-by: Waldemar Brodkorb --- DEVELOPERS | 1 + package/Config.in | 1 + package/firefox/Config.in | 53 ++++++++++++++++++++++ package/firefox/firefox.hash | 3 ++ package/firefox/firefox.mk | 88 ++++++++++++++++++++++++++++++++++++ 5 files changed, 146 insertions(+) create mode 100644 package/firefox/Config.in create mode 100644 package/firefox/firefox.hash create mode 100644 package/firefox/firefox.mk diff --git a/DEVELOPERS b/DEVELOPERS index 7915470fcc..aec811a3b0 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -3407,6 +3407,7 @@ F: package/asterisk/ F: package/cbindgen/ F: package/evilwm/ F: package/fbv/ +F: package/firefox/ F: package/libaom/ F: package/libjwt/ F: package/mksh/ diff --git a/package/Config.in b/package/Config.in index 465ea484df..36f3db1394 100644 --- a/package/Config.in +++ b/package/Config.in @@ -399,6 +399,7 @@ comment "X applications" source "package/dillo/Config.in" source "package/docker/Config.in" source "package/feh/Config.in" + source "package/firefox/Config.in" source "package/mupdf/Config.in" source "package/nodm/Config.in" source "package/pcmanfm/Config.in" diff --git a/package/firefox/Config.in b/package/firefox/Config.in new file mode 100644 index 0000000000..75811f9d63 --- /dev/null +++ b/package/firefox/Config.in @@ -0,0 +1,53 @@ +config BR2_PACKAGE_FIREFOX + bool "firefox" + depends on BR2_aarch64 || BR2_x86_64 + depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS + depends on BR2_PACKAGE_XORG7 + depends on BR2_USE_WCHAR # glib2 + depends on BR2_TOOLCHAIN_HAS_THREADS # glib2 + depends on BR2_USE_MMU # glib2 + depends on BR2_INSTALL_LIBSTDCPP # pango + depends on BR2_TOOLCHAIN_HAS_SYNC_4 # pango -> harfbuzz + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # pango -> harfbuzz + depends on BR2_PACKAGE_HAS_LIBGL + select BR2_PACKAGE_ALSA_LIB + select BR2_PACKAGE_DAV1D + select BR2_PACKAGE_DBUS_GLIB + select BR2_PACKAGE_FONTCONFIG + select BR2_PACKAGE_HARFBUZZ + select BR2_PACKAGE_HOST_NODEJS + select BR2_PACKAGE_HOST_NODEJS_SRC + select BR2_PACKAGE_HOST_PYTHON3 + select BR2_PACKAGE_HOST_PYTHON3_BZIP2 + select BR2_PACKAGE_HOST_PYTHON3_CURSES + select BR2_PACKAGE_HOST_PYTHON3_SQLITE + select BR2_PACKAGE_HOST_PYTHON3_SSL + select BR2_PACKAGE_LIBFFI + select BR2_PACKAGE_ICU + select BR2_PACKAGE_JPEG + select BR2_PACKAGE_LIBAOM + select BR2_PACKAGE_LIBGTK3 + select BR2_PACKAGE_LIBNSS + select BR2_PACKAGE_LIBVPX + select BR2_PACKAGE_PANGO + select BR2_PACKAGE_ZLIB + select BR2_PACKAGE_XLIB_LIBXCOMPOSITE + select BR2_PACKAGE_XLIB_LIBXCURSOR + select BR2_PACKAGE_XLIB_LIBXDAMAGE + select BR2_PACKAGE_XLIB_LIBXRANDR + select BR2_PACKAGE_XLIB_LIBICE + select BR2_PACKAGE_XLIB_LIBSM + help + Popular webbrowser. + + https://www.firefox.com + +comment "firefox needs a toolchain w/ wchar, threads, C++" + depends on BR2_PACKAGE_XORG7 && BR2_USE_MMU + depends on !BR2_INSTALL_LIBSTDCPP + depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS + +comment "firefox needs an OpenGL (GLX) provider" + depends on BR2_USE_MMU + depends on BR2_TOOLCHAIN_HAS_SYNC_4 + depends on !BR2_PACKAGE_HAS_LIBGL diff --git a/package/firefox/firefox.hash b/package/firefox/firefox.hash new file mode 100644 index 0000000000..a2566529ba --- /dev/null +++ b/package/firefox/firefox.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 956dce675c3b706d563caf07ed3ca9af632ab830be710dfd4351da78a0a2ef55 firefox-140.2.0esr.source.tar.xz +sha256 d10965daab0b819bef778c629a94cdd094ffb4ede37239b3d263884a574352c0 toolkit/content/license.html diff --git a/package/firefox/firefox.mk b/package/firefox/firefox.mk new file mode 100644 index 0000000000..ea62dc62e8 --- /dev/null +++ b/package/firefox/firefox.mk @@ -0,0 +1,88 @@ +################################################################################ +# +# firefox +# +################################################################################ + +FIREFOX_VERSION = 140.2.0esr +FIREFOX_SOURCE = firefox-$(FIREFOX_VERSION).source.tar.xz +FIREFOX_SITE = https://ftp.mozilla.org/pub/firefox/releases/$(FIREFOX_VERSION)/source +FIREFOX_LICENSE = MPL-2.0 +FIREFOX_LICENSE_FILES = toolkit/content/license.html +FIREFOX_DEPENDENCIES = \ + host-nodejs \ + host-cbindgen \ + host-clang \ + host-nasm \ + alsa-lib \ + dav1d \ + dbus-glib \ + fontconfig \ + harfbuzz \ + jpeg \ + libaom \ + libgtk3 \ + libnss \ + libvpx \ + pango \ + pixman \ + zlib \ + xlib_libXcomposite \ + xlib_libXcursor \ + xlib_libXdamage \ + xlib_libXrandr \ + xlib_libICE \ + xlib_libSM + +FIREFOX_CONF_OPTS = \ + --enable-application=browser \ + --enable-official-branding \ + --disable-audio-backends \ + --disable-webrtc \ + --disable-printing \ + --without-wasm-sandboxed-libraries \ + --disable-profiling \ + --disable-pulseaudio \ + --disable-crashreporter \ + --disable-tests \ + --with-system-av1 \ + --with-system-ffi \ + --with-system-icu \ + --with-system-jpeg \ + --with-system-libvpx \ + --with-system-nss \ + --with-system-pixman \ + --with-system-zlib \ + --with-clang-path=$(HOST_DIR)/bin/clang + +# build directory can't be the directory where configure are there, so.. +define FIREFOX_CONFIGURE_CMDS + (mkdir -p $(@D)/build; cd $(@D)/build; rm -rf config.cache; \ + PATH=$(BR_PATH) \ + CC="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS)" \ + CROSS_COMPILE=1 \ + ../configure \ + --target=$(GNU_TARGET_NAME) \ + --with-toolchain-prefix=$(GNU_TARGET_NAME)- \ + --prefix=/usr \ + $(FIREFOX_CONF_OPTS) \ + ) +endef + +define FIREFOX_BUILD_CMDS + $(MAKE) -C $(@D)/build \ + CC="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS)" \ + all +endef + +define FIREFOX_INSTALL_TARGET_CMDS + $(MAKE) -C $(@D)/build \ + DESTDIR=$(TARGET_DIR) \ + CC="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS)" \ + install +endef + +$(eval $(generic-package)) -- 2.47.3 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot