summaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-08-01 12:00:37 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-08-01 12:00:37 +0800
commit07019cf317a58467f2ba01120cf0940ca2060f64 (patch)
tree1e3aab1231e37acd36752015cb14f29a9c5fbc2a /mail
parent5e8e096d0d8101d3aa25bc737d9adbeb54fb2557 (diff)
downloadmarcuscom-ports-07019cf317a58467f2ba01120cf0940ca2060f64.tar.gz
marcuscom-ports-07019cf317a58467f2ba01120cf0940ca2060f64.tar.zst
marcuscom-ports-07019cf317a58467f2ba01120cf0940ca2060f64.zip
X11BASE -> LOCALBASE, thunderbird lives in LOCALBASE. Bump the PORTREVISION.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6908 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'mail')
-rw-r--r--mail/moztraybiff/Makefile62
-rw-r--r--mail/moztraybiff/distinfo3
-rw-r--r--mail/moztraybiff/files/patch-Makefile11
-rw-r--r--mail/moztraybiff/files/patch-components_Makefile11
-rw-r--r--mail/moztraybiff/files/patch-make-install.rdf14
-rw-r--r--mail/moztraybiff/files/pkg-message.in9
-rw-r--r--mail/moztraybiff/pkg-descr9
7 files changed, 119 insertions, 0 deletions
diff --git a/mail/moztraybiff/Makefile b/mail/moztraybiff/Makefile
new file mode 100644
index 000000000..0b5587382
--- /dev/null
+++ b/mail/moztraybiff/Makefile
@@ -0,0 +1,62 @@
+# New ports collection makefile for: moztraybiff
+# Date created: 19 March, 2005
+# Whom: Adam Weinberger <adamw@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= moztraybiff
+PORTVERSION= 1.2.2
+PORTREVISION= 1
+CATEGORIES= mail gnome
+MASTER_SITES= ${MASTER_SITE_MOZDEV}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTNAME= mozTrayBiff-${PORTVERSION}
+
+MAINTAINER= adamw@FreeBSD.org
+COMMENT= New mail tray icon for Thunderbird
+
+BROKEN= fails to install
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/thunderbird/components/libwidget_gtk2.so:${PORTSDIR}/mail/thunderbird \
+ zip:${PORTSDIR}/archivers/zip
+RUN_DEPENDS= ${LOCALBASE}/lib/thunderbird/components/libwidget_gtk2.so:${PORTSDIR}/mail/thunderbird
+
+.if !exists(../thunderbird/Makefile)
+BROKEN= ${PORTNAME} needs the Thunderbird port in order to build
+.else
+TBVER!= cd ../thunderbird && ${MAKE} -V PORTVERSION
+.endif
+
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_GNOME= libgnome
+MAKE_ARGS+= MOZILLA_PLATFORM=tbird TBVER=${TBVER} MOZ_TRUNK=0
+
+FILENAME= mozTrayBiff-${PORTVERSION}-tb${TBVER}.xpi
+PLIST_FILES= share/${PORTNAME}/${FILENAME}
+PLIST_DIRS= share/${PORTNAME}
+
+SUB_FILES= pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+.if ${OSVERSION} < 500000
+ @${REINPLACE_CMD} -e "s|-fshort-wchar||" \
+ ${WRKSRC}/components/Makefile
+.endif
+ @${REINPLACE_CMD} -e "s|^#!/bin/bash|#!/bin/sh|" \
+ ${WRKSRC}/get-platform
+
+do-install:
+ @${MKDIR} ${DATADIR}
+ @${INSTALL} -m 644 ${WRKSRC}/${FILENAME} ${DATADIR}
+
+post-install:
+ @${ECHO_MSG}
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO_MSG}
+
+.include <bsd.port.post.mk>
diff --git a/mail/moztraybiff/distinfo b/mail/moztraybiff/distinfo
new file mode 100644
index 000000000..3b415268f
--- /dev/null
+++ b/mail/moztraybiff/distinfo
@@ -0,0 +1,3 @@
+MD5 (mozTrayBiff-1.2.2.tar.gz) = d599f3772eb4c905f2fa5c7a17a81a55
+SHA256 (mozTrayBiff-1.2.2.tar.gz) = d8d819a33ac632cb64776e5f926d1d6f99a3986f7f322ac36fb48187e4d55775
+SIZE (mozTrayBiff-1.2.2.tar.gz) = 47948
diff --git a/mail/moztraybiff/files/patch-Makefile b/mail/moztraybiff/files/patch-Makefile
new file mode 100644
index 000000000..d4bfbd1c7
--- /dev/null
+++ b/mail/moztraybiff/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig Fri Jan 6 18:51:34 2006
++++ Makefile Mon Jan 16 13:01:55 2006
+@@ -19,7 +19,7 @@
+ XPI_EXTRA_FILES = install.js
+ endif
+ ifeq ($(MOZILLA_PLATFORM),tbird)
+-REAL_CONFIG = mozilla-thunderbird-config
++REAL_CONFIG = thunderbird-config
+ XPI_VERSION := $(XPI_VERSION)-tb${MOZILLA_VERSION}
+ XPI_EXTRA_FILES = install.rdf
+ endif
diff --git a/mail/moztraybiff/files/patch-components_Makefile b/mail/moztraybiff/files/patch-components_Makefile
new file mode 100644
index 000000000..583bc78d8
--- /dev/null
+++ b/mail/moztraybiff/files/patch-components_Makefile
@@ -0,0 +1,11 @@
+--- components/Makefile.orig Sun Apr 24 09:25:02 2005
++++ components/Makefile Fri Sep 9 01:47:59 2005
+@@ -27,7 +27,7 @@
+ $(shell pkg-config --libs $(GTK_PACKAGE))
+
+ MOZ_INCLUDES := \
+- $(shell $(MOZILLA_CONFIG) --cflags)
++ $(shell $(MOZILLA_CONFIG) --cflags) $(shell $(REAL_CONFIG) --cflags)
+
+ CFLAGS += \
+ -fPIC
diff --git a/mail/moztraybiff/files/patch-make-install.rdf b/mail/moztraybiff/files/patch-make-install.rdf
new file mode 100644
index 000000000..6cf5fd26f
--- /dev/null
+++ b/mail/moztraybiff/files/patch-make-install.rdf
@@ -0,0 +1,14 @@
+--- make-install.rdf.orig Mon Dec 12 14:23:05 2005
++++ make-install.rdf Mon Dec 12 14:23:39 2005
+@@ -1,9 +1,9 @@
+ #!/usr/bin/perl
+
+-my $machine = `gcc -dumpmachine`;
++my $machine = `uname`;
+ chomp $machine;
+
+-$machine =~ /^(.*?)\-/
++$machine =~ /^(.*?)$/
+ or die "Unable to parse machine name";
+ my $arch = $1;
+
diff --git a/mail/moztraybiff/files/pkg-message.in b/mail/moztraybiff/files/pkg-message.in
new file mode 100644
index 000000000..cc9d44ea4
--- /dev/null
+++ b/mail/moztraybiff/files/pkg-message.in
@@ -0,0 +1,9 @@
+The extension has been installed in %%DATADIR%%/
+
+To use this extension:
+ * Open up Thunderbird
+ * Choose Tools|Extensions from the menu
+ * Click the "Install" button
+ * Navigate to %%DATADIR%%/
+ * Select the file that appears in that directory
+ * Restart Thunderbird
diff --git a/mail/moztraybiff/pkg-descr b/mail/moztraybiff/pkg-descr
new file mode 100644
index 000000000..b19d62dff
--- /dev/null
+++ b/mail/moztraybiff/pkg-descr
@@ -0,0 +1,9 @@
+Mozilla New Mail Icon is an extension which displays an icon in the
+system tray when new mail arrives in Mozilla Thunderbird. While it
+supports the standard (FreeDesktop.org) system tray, as used by GNOME,
+KDE and IceWM, it requires GNOME libraries to build and run.
+
+It builds and installs an .xpi file, which can be installed through
+Thunderbird's extension manager. See the pkg-message for more details.
+
+WWW: http://moztraybiff.mozdev.org/