diff --git a/mail-client/mailnews/mailnews-2.0.0.25.recipe b/mail-client/mailnews/mailnews-2.0.0.25.recipe new file mode 100644 index 000000000..a9517e899 --- /dev/null +++ b/mail-client/mailnews/mailnews-2.0.0.25.recipe @@ -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 + " diff --git a/mail-client/mailnews/patches/mailnews-2.0.0.25.patchset b/mail-client/mailnews/patches/mailnews-2.0.0.25.patchset new file mode 100644 index 000000000..c773cb654 --- /dev/null +++ b/mail-client/mailnews/patches/mailnews-2.0.0.25.patchset @@ -0,0 +1,81 @@ +From 26c3bfafc76c0e78a354b2c1ed265f057e9a25ea Mon Sep 17 00:00:00 2001 +From: Theodore Kokkoris +Date: Fri, 12 Dec 2014 13:45:46 +0200 +Subject: Enable Haiku support in configure.in + + +diff --git a/mozilla/configure.in b/mozilla/configure.in +index 23cc7e7..9bd8cb5 100755 +--- a/mozilla/configure.in ++++ b/mozilla/configure.in +@@ -885,12 +885,8 @@ if test -n "$CROSS_COMPILE"; then + mingw*) OS_ARCH=WINNT ;; + wince*) OS_ARCH=WINCE ;; + darwin*) OS_ARCH=Darwin OS_TARGET=Darwin ;; +- beos* | haiku*) OS_ARCH=BeOS OS_TARGET=BeOS ;; +-dnl ------------------------------------------------------- +-dnl Cross-compiling-haiku - This should probably be +-dnl beos*) OS_ARCH=BeOS OS_TARGET=BeOS ;; +-dnl haiku*) OS_ARCH=Haiku OS_TARGET=Haiku ;; +-dnl ------------------------------------------------------- ++ beos*) OS_ARCH=BeOS OS_TARGET=BeOS ;; ++ haiku*) OS_ARCH=Haiku OS_TARGET=Haiku ;; + esac + else + OS_TARGET=`uname -s` +-- +2.2.2 + + + +From 207233d6d8837083f36506f1e8a3fcfdce0f5c64 Mon Sep 17 00:00:00 2001 +From: Sergei Reznikov +Date: Wed, 22 Apr 2015 10:05:15 +0300 +Subject: mozconfig clean-up + + +diff --git a/supporting-files/mozilla-configs/mailnews.mozconfig b/supporting-files/mozilla-configs/mailnews.mozconfig +index a49ad60..98b123a 100644 +--- a/supporting-files/mozilla-configs/mailnews.mozconfig ++++ b/supporting-files/mozilla-configs/mailnews.mozconfig +@@ -13,19 +13,12 @@ mk_add_options CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot + + # ----------------------------------------------------- + # --- EDIT THESE VALUES TO REFLECT YOUR LOCAL BUILD --- +-export GLIB_CONFIG=/boot/common/bin/glib-config +-mk_add_options GLIB_CONFIG=/boot/common/bin/glib-config + +-export LIBIDL_CONFIG=/boot/common/bin/libIDL-config +-mk_add_options LIBIDL_CONFIG=/boot/common/bin/libIDL-config + + # --- Set the outputdir for the build --- + mk_add_options MOZ_OBJDIR=/moz_obj/mailnews + +-# autoconf 2.13 was built by +-#./configure --prefix=/boot/common/autoconf-2.13 --program-suffix=-2.13 --bindir=/boot/common/bin/ +-# make && make install +-export AUTOCONF='/boot/common/bin/autoconf-2.13 -m /boot/common/autoconf-2.13/share/autoconf' ++export AUTOCONF='autoconf-2.13' + # ----------------------------------------------------- + + # Automatic updates not currently supported on BeOS. Delete this when we add this feature. +@@ -40,7 +33,7 @@ ac_add_options --disable-canvas + + # Utilize Haiku's default shared libraries + ac_add_options --with-system-jpeg +-#ac_add_options --with-system-png ++ac_add_options --with-system-png + ac_add_options --with-system-zlib + + ac_add_options --enable-nspr-threads +@@ -61,6 +54,7 @@ mk_add_options BUILD_OPT=1 + ac_add_options --enable-static --disable-shared + ac_add_options --enable-strip + ac_add_options --enable-reorder ++ac_add_options --disable-debug + #ac_add_options --enable-js-static-build + + # ---------------------------------------------------------------------------- +-- +2.2.2 +