Files
haikuports/www-client/bezilla/bezilla-2.0.0.22.recipe
2015-09-10 20:02:51 +03:00

107 lines
2.4 KiB
Bash

SUMMARY="Fork of Mozilla Firefox for Haiku"
DESCRIPTION="BeZilla 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/mmadia/bezilla"
COPYRIGHT="1995-2009 Mozilla Developers and Contributors"
LICENSE="MPL v1.1"
REVISION="1"
SOURCE_URI="git+https://github.com/mmadia/bezilla.git#686254"
PATCHES="bezilla-2.0.0.22.patchset"
ARCHITECTURES="x86_gcc2 x86 ?arm"
SECONDARY_ARCHITECTURES="x86_gcc2 x86 ?arm"
PROVIDES="
bezilla$secondaryArchSuffix = $portVersion
cmd:firefox$secondaryArchSuffix = $portVersion
app:BeZilla$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
bezilla${secondaryArchSuffix}_devel = $portVersion
cmd:firefox_config$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
bezilla$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libidl$secondaryArchSuffix
devel:libglib$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:m4
cmd:gawk
cmd:perl
cmd:xargs
cmd:tar
cmd:zip
cmd:autoconf_2.13$secondaryArchSuffix
"
BUILD()
{
cd mozilla
autoconf-2.13
pushd nsprpub
autoconf-2.13
popd
pushd directory/c-sdk
autoconf-2.13
popd
export MOZCONFIG=../supporting-files/mozilla-configs/browser.mozconfig
runConfigure --omit-dirs 'docDir dataRootDir' configure
make $jobArgs
}
INSTALL()
{
cd mozilla
make install
mkdir $appsDir
mv $libDir/firefox-2.0.0.22pre $appsDir/BeZilla
mv $appsDir/BeZilla/firefox-bin $appsDir/BeZilla/BeZilla
# creating the lib and add-ons
mkdir $appsDir/BeZilla/lib
mkdir $appsDir/BeZilla/add-ons
# arranging the files in lib and add-ons directories
cd $appsDir/BeZilla
mv libnspr4.so libnss3.so libnssutil3.so libplc4.so libplds4.so \
libsmime3.so libsoftokn3.so libsqlite3.so libssl3.so libxpcom.so \
libxpcom_compat.so libxpcom_core.so lib
mv libfreebl3.so libnssckbi.so libnssdbm3.so libxpistub.so add-ons
cp $sourceDir/supporting-files/persdict.dat $appsDir/BeZilla/defaults/profile
cp $sourceDir/supporting-files/haiku-widget-theme/browser/classic.jar $appsDir/BeZilla/chrome
ln -sf ../lib/libsoftokn3.so add-ons
fixPkgconfig
packageEntries devel \
$developDir \
$dataDir/idl \
$dataDir/aclocal \
$binDir/firefox-config
# TODO: fix $dist_bin/$MOZILLA_BIN in cmd:firefox script
addAppDeskbarSymlink $appsDir/BeZilla/BeZilla
}