mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
117 lines
2.7 KiB
Bash
117 lines
2.7 KiB
Bash
SUMMARY="Unofficial Haiku port of Mozilla Firefox ESR"
|
|
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-2025 Mozilla Developers and Contributors"
|
|
LICENSE="MPL v2.0"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/threedeyes/Gecko4Haiku/releases/download/${portVersion}esr/Iceweasel-${portVersion}.en-US.haiku-x86_64.tar.xz#noarchive"
|
|
CHECKSUM_SHA256="8826a5fa816730fb08bd7781ef4bd79e1587bb5e3bf3b7822a52b39f727f4e8a"
|
|
PATCHES="iceweasel_launcher-$portVersion.patchset"
|
|
|
|
ADDITIONAL_FILES="
|
|
iceweasel.rdef.in
|
|
iceweasel_launcher.rdef.in
|
|
"
|
|
|
|
ARCHITECTURES="x86_64"
|
|
DISABLE_SOURCE_PACKAGE="true"
|
|
|
|
PROVIDES="
|
|
iceweasel_esr_bin = $portVersion
|
|
app:Iceweasel = $portVersion
|
|
"
|
|
CONFLICTS="
|
|
iceweasel
|
|
iceweasel_esr
|
|
iceweasel_bin
|
|
"
|
|
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:libgio_2.0
|
|
lib:libglib_2.0
|
|
lib:libgobject_2.0
|
|
lib:libgtk_3
|
|
lib:libharfbuzz
|
|
lib:libintl
|
|
lib:libmediahelpers
|
|
lib:libnotify
|
|
lib:libnspr4
|
|
lib:libnss3
|
|
lib:libpango_1.0
|
|
lib:libpangocairo_1.0
|
|
lib:libpng16
|
|
lib:libz
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc
|
|
cmd:tar
|
|
cmd:xz
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cd tools/haiku-launcher
|
|
gcc -o "Iceweasel Browser" launcher.cpp -lbe
|
|
}
|
|
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $appsDir
|
|
tar -xJf Iceweasel-$portVersion.en-US.haiku-x86_64.tar.xz -C $appsDir
|
|
|
|
cp "tools/haiku-launcher/Iceweasel Browser" $appsDir/Iceweasel
|
|
|
|
# arranging the files in lib directories
|
|
mkdir -p $appsDir/Iceweasel/lib
|
|
cd $appsDir/Iceweasel
|
|
mv \
|
|
libgkcodecs.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
|
|
|
|
sed \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
$portDir/additional-files/iceweasel_launcher.rdef.in > iceweasel_launcher.rdef
|
|
|
|
addResourcesToBinaries iceweasel.rdef "$appsDir/Iceweasel/Iceweasel"
|
|
addResourcesToBinaries iceweasel_launcher.rdef "$appsDir/Iceweasel/Iceweasel Browser"
|
|
|
|
addAppDeskbarSymlink $appsDir/Iceweasel/Iceweasel
|
|
}
|