mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
MailNews (Thunderbird fork): added recipe fore version 2.0.0.25
This commit is contained in:
114
mail-client/mailnews/mailnews-2.0.0.25.recipe
Normal file
114
mail-client/mailnews/mailnews-2.0.0.25.recipe
Normal file
@@ -0,0 +1,114 @@
|
||||
SUMMARY="Fork of Mozilla Thunderbird for Haiku"
|
||||
DESCRIPTION="Thunderbird is an open source mail client. \
|
||||
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"
|
||||
SRC_URI="git+https://github.com/mmadia/bezilla.git#686254"
|
||||
REVISION="1"
|
||||
LICENSE="MPL v1.1"
|
||||
COPYRIGHT="1995-2009 Mozilla Developers and Contributors"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 ?arm"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86 ?arm"
|
||||
|
||||
PROVIDES="
|
||||
mailnews$secondaryArchSuffix = $portVersion
|
||||
cmd:thunderbird$secondaryArchSuffix = $portVersion
|
||||
app:MailNews$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
devel:libidl$secondaryArchSuffix
|
||||
devel:libglib$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:m4
|
||||
cmd:gawk
|
||||
cmd:perl
|
||||
cmd:xargs
|
||||
cmd:tar
|
||||
cmd:zip
|
||||
cmd:autoconf_2.13$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PATCHES="mailnews-2.0.0.25.patchset"
|
||||
|
||||
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/mailnews.mozconfig
|
||||
|
||||
runConfigure --omit-dirs 'docDir dataRootDir' configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd mozilla
|
||||
make install
|
||||
|
||||
mkdir $appsDir
|
||||
|
||||
mv $libDir/thunderbird-2.0.0.25pre $appsDir/MailNews
|
||||
mv $appsDir/MailNews/thunderbird-bin $appsDir/MailNews/MailNews
|
||||
|
||||
# creating the lib and add-ons
|
||||
mkdir $appsDir/MailNews/lib
|
||||
mkdir $appsDir/MailNews/add-ons
|
||||
|
||||
# arranging the files in lib and add-ons directories
|
||||
cd $appsDir/MailNews
|
||||
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 libldap50.so libmozjs.so \
|
||||
libprldap50.so lib
|
||||
|
||||
mv libfreebl3.so libnssckbi.so libnssdbm3.so libxpistub.so add-ons
|
||||
|
||||
cp $sourceDir/supporting-files/persdict.dat $appsDir/MailNews/defaults/profile
|
||||
|
||||
# TODO: create Haiku theme based on browser widgets
|
||||
# cp $sourceDir/supporting-files/haiku-widget-theme/mailnews/classic.jar $appsDir/MailNews/chrome
|
||||
|
||||
ln -sf ../lib/libsoftokn3.so add-ons
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$dataDir/idl \
|
||||
$dataDir/aclocal \
|
||||
$binDir/thunderbird-config
|
||||
|
||||
# TODO: fix $dist_bin/$MOZILLA_BIN in cmd:thunderbird script
|
||||
|
||||
addAppDeskbarSymlink $appsDir/MailNews/MailNews
|
||||
}
|
||||
|
||||
# ----- devel package -------------------------------------------------------
|
||||
|
||||
PROVIDES_devel="
|
||||
mailnews${secondaryArchSuffix}_devel = $portVersion
|
||||
cmd:thunderbird_config$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
mailnews$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
Reference in New Issue
Block a user