aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2005-04-02 16:50:51 +0800
committeradamw <adamw@FreeBSD.org>2005-04-02 16:50:51 +0800
commit98d253a6bfab8724930ef243ab7df8ca9ff8d693 (patch)
treea6a08f8fd31c1f7e2d62d0827b1d0e7f41550498 /mail
parent538ff8640fd1664f273cd56a5e5b66279b60ddda (diff)
downloadfreebsd-ports-gnome-98d253a6bfab8724930ef243ab7df8ca9ff8d693.tar.gz
freebsd-ports-gnome-98d253a6bfab8724930ef243ab7df8ca9ff8d693.tar.zst
freebsd-ports-gnome-98d253a6bfab8724930ef243ab7df8ca9ff8d693.zip
Determine where thunderbird is installed automatically,
rather than having to code it in in numerous places every time thunderbird gets upgraded.
Diffstat (limited to 'mail')
-rw-r--r--mail/moztraybiff/Makefile15
-rw-r--r--mail/moztraybiff/files/patch-components_Makefile2
2 files changed, 11 insertions, 6 deletions
diff --git a/mail/moztraybiff/Makefile b/mail/moztraybiff/Makefile
index 7289151932bb..22fb26e3bd03 100644
--- a/mail/moztraybiff/Makefile
+++ b/mail/moztraybiff/Makefile
@@ -15,9 +15,11 @@ DISTNAME= mozTrayBiff-${PORTVERSION}
MAINTAINER= adamw@FreeBSD.org
COMMENT= New mail tray icon for Thunderbird
-BUILD_DEPENDS= ${X11BASE}/lib/thunderbird/lib/thunderbird-1.0.2/components/libwidget_gtk2.so:${PORTSDIR}/mail/thunderbird \
+BUILD_DEPENDS= ${X11BASE}/lib/thunderbird/lib/thunderbird-${TBVER}/components/libwidget_gtk2.so:${PORTSDIR}/mail/thunderbird \
zip:${PORTSDIR}/archivers/zip
-RUN_DEPENDS= ${X11BASE}/lib/thunderbird/lib/thunderbird-1.0.2/components/libwidget_gtk2.so:${PORTSDIR}/mail/thunderbird
+RUN_DEPENDS= ${X11BASE}/lib/thunderbird/lib/thunderbird-${TBVER}/components/libwidget_gtk2.so:${PORTSDIR}/mail/thunderbird
+
+TBVER!= cd ../thunderbird && ${MAKE} -V PORTVERSION
USE_X_PREFIX= yes
USE_GMAKE= yes
@@ -25,17 +27,20 @@ USE_GNOME= libgnome
USE_REINPLACE= yes
MAKE_ARGS+= MOZILLA_PLATFORM=tbird
-FILENAME= mozTrayBiff-${PORTVERSION}-FreeBSD-tb1.0.2.xpi
+FILENAME= mozTrayBiff-${PORTVERSION}-FreeBSD-tb${TBVER}.xpi
PLIST_FILES= ${DATADIR}/${FILENAME}
PLIST_DIRS= ${DATADIR}
PKGMESSAGE= ${WRKDIR}/pkg-message
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 500000
post-patch:
- ${REINPLACE_CMD} -e "s|-fshort-wchar||" ${WRKSRC}/components/Makefile
+.if ${OSVERSION} < 500000
+ @${REINPLACE_CMD} -e "s|-fshort-wchar||" \
+ ${WRKSRC}/components/Makefile
.endif
+ @${REINPLACE_CMD} -e "s|%%TBVER%%|${TBVER}|" \
+ ${WRKSRC}/components/Makefile
post-build:
${SED} 's|%%DATADIR%%|${DATADIR}|' ${PKGDIR}/pkg-message > ${PKGMESSAGE}
diff --git a/mail/moztraybiff/files/patch-components_Makefile b/mail/moztraybiff/files/patch-components_Makefile
index 9d11441e4d9c..082c0512f21c 100644
--- a/mail/moztraybiff/files/patch-components_Makefile
+++ b/mail/moztraybiff/files/patch-components_Makefile
@@ -7,7 +7,7 @@
- $(shell $(MOZILLA_CONFIG) --cflags)
+ $(shell $(MOZILLA_CONFIG) --cflags) \
+ $(shell for i in \
-+ `find $${X11BASE}/lib/thunderbird/include/thunderbird-1.0 -type d`; \
++ `find $${X11BASE}/lib/thunderbird/include/thunderbird-%%TBVER%% -type d`; \
+ do echo -n "-I$$i "; done)
CXXFLAGS += \