mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
151 lines
3.1 KiB
Bash
151 lines
3.1 KiB
Bash
SUMMARY="Unofficial Haiku port of Mozilla Firefox"
|
|
DESCRIPTION="Iceweasel is an open source web browser. \
|
|
It achieves balance between ease of use and customization, catering to the \
|
|
needs of both casual and power users."
|
|
HOMEPAGE="https://github.com/kenz-gelsoft/gecko-dev"
|
|
COPYRIGHT="1995-2024 Mozilla Developers and Contributors"
|
|
LICENSE="MPL v2.0"
|
|
REVISION="1"
|
|
srcGitRev="83d7a3516e837c6dfa87010fdbabf2f33e706ccf"
|
|
SOURCE_URI="https://github.com/kenz-gelsoft/gecko-dev/archive/$srcGitRev.zip"
|
|
CHECKSUM_SHA256="c280fc49db970a8beb1329dc1dec4e7c0916948fbaed9a7e738f2aec5a552aa3"
|
|
SOURCE_DIR="gecko-dev-$srcGitRev"
|
|
PATCHES="gecko-dev-$portVersion.patch"
|
|
ADDITIONAL_FILES="iceweasel.rdef.in"
|
|
|
|
ARCHITECTURES="!x86_64"
|
|
|
|
PROVIDES="
|
|
iceweasel= $portVersion
|
|
app:Iceweasel= $portVersion
|
|
cmd:iceweasel= $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
lib:libatk_1.0
|
|
lib:libcairo
|
|
lib:libcairo_gobject
|
|
lib:libdbus_1
|
|
lib:libevent_2.1
|
|
lib:libgdk_3
|
|
lib:libgdk_pixbuf_2.0
|
|
lib:libglib_2.0
|
|
lib:libgtk_3
|
|
lib:libharfbuzz
|
|
lib:libintl
|
|
lib:libnspr4
|
|
lib:libnss3
|
|
lib:libpango_1.0
|
|
lib:libpangocairo_1.0
|
|
lib:libpng16
|
|
lib:libz
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
devel:libdbus_1
|
|
devel:libdbus_glib_1
|
|
devel:libevent
|
|
devel:libglib_2.0
|
|
devel:libgtk_3
|
|
devel:libnspr4
|
|
devel:libnss3
|
|
devel:libpng16
|
|
devel:libvpx
|
|
devel:libwebp
|
|
devel:libzstd
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
llvm18
|
|
nodejs16
|
|
rust_bin
|
|
cmd:autoconf_2.13
|
|
cmd:cbindgen
|
|
cmd:clang++
|
|
cmd:gawk
|
|
# We need gcc even if we use clang to compile.
|
|
cmd:gcc
|
|
cmd:git
|
|
cmd:m4
|
|
cmd:make
|
|
cmd:nasm
|
|
cmd:perl
|
|
cmd:pip3
|
|
cmd:pkg_config
|
|
cmd:python3
|
|
cmd:tar
|
|
cmd:xargs
|
|
cmd:zip
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
chmod +x \
|
|
build/cargo-linker \
|
|
mach
|
|
|
|
rm -f mozconfig
|
|
cp haiku_mozconfig mozconfig
|
|
echo "ac_add_options --with-app-name=Iceweasel" >> mozconfig
|
|
|
|
./mach -vv \
|
|
--no-interactive bootstrap \
|
|
--application-choice="Firefox for Desktop" \
|
|
--exclude=sysroot-wasm32-wasi
|
|
|
|
./mach build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
./mach install
|
|
|
|
mkdir -p $appsDir
|
|
|
|
# TODO: /usr/local/lib => $libDir
|
|
mv /usr/local/lib/Iceweasel $appsDir/Iceweasel
|
|
|
|
mkdir -p $appsDir/Iceweasel/lib
|
|
|
|
# arranging the files in lib directories
|
|
cd $appsDir/Iceweasel
|
|
# NSS libs
|
|
# mv \
|
|
# libfreebl3.so \
|
|
# libnss3.so \
|
|
# libnssckbi.so \
|
|
# libnssutil3.so \
|
|
# libsmime3.so \
|
|
# libsoftokn3.so \
|
|
# libssl3.so \
|
|
# lib
|
|
mv \
|
|
libgkcodecs.so \
|
|
libipcclientcerts.so \
|
|
liblgpllibs.so \
|
|
libmozavcodec.so \
|
|
libmozavutil.so \
|
|
libmozgtk.so \
|
|
libmozsqlite3.so \
|
|
libmozwayland.so \
|
|
libxul.so \
|
|
lib
|
|
|
|
local APP_SIGNATURE="application/x-vnd.iceweasel"
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
|
local LONG_INFO="$SUMMARY"
|
|
sed \
|
|
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
$portDir/additional-files/iceweasel.rdef.in > iceweasel.rdef
|
|
|
|
addResourcesToBinaries iceweasel.rdef $appsDir/Iceweasel/Iceweasel
|
|
|
|
addAppDeskbarSymlink $appsDir/Iceweasel/Iceweasel
|
|
}
|