export CC="gcc -m32"
export CXX="g++ -m32"
mk_add_options PYTHON=/usr/bin/python2
mk_add_options AUTOCONF=/usr/bin/autoconf-2.13

# Set GTK Version to 2 or 3
_GTK_VERSION=2

ac_add_options --target=powerpc-linux-gnu
ac_add_options --host=powerpc-linux-gnu 
ac_add_options --with-system-jpeg 
ac_add_options --enable-application=navigator
ac_add_options --enable-optimize
ac_add_options --enable-jxl
ac_add_options --enable-strip
ac_add_options --enable-default-toolkit=cairo-gtk2 
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-crashreporter
ac_add_options --disable-webrtc
ac_add_options --disable-necko-wifi
ac_add_options --disable-safe-browsing
ac_add_options --disable-devtools
ac_add_options --disable-pulseaudio
ac_add_options --disable-jemalloc
ac_add_options --disable-updater
ac_add_options --disable-gconf 
ac_add_options --disable-gamepad
ac_add_options --disable-precompiled-startupcache 

export MOZ_TELEMETRY_REPORTING=0
export MOZ_ADDON_SIGNING=0
export MOZ_REQUIRE_SIGNING=0

# https://repo.palemoon.org/MoonchildProductions/UXP/archive/master.tar.gz (Goanna layout and rendering engine)
# https://github.com/wicknix/SeaLion/archive/refs/tags/33.2.1.tar.gz (SeaLion source code)
# Extract SL source, then extract UXP source. It'll extract to a folder called "uxp". Rename it to "platform" and move it to the
# SL source tree.
# Copy this mozconfig to the SL source directory and rename it to .mozconfig.
# Build with ./mach build
# Copy the icudt63b.dat to obj-powerpc-linux-gnu/dist/bin.
# ./mach run and ./mach package.
# Extract the sealion xz package and copy the icudt63b.dat again to the sealion folder.
