diff options
author | Florian Smeets <flo@FreeBSD.org> | 2011-07-04 21:27:06 +0000 |
---|---|---|
committer | Florian Smeets <flo@FreeBSD.org> | 2011-07-04 21:27:06 +0000 |
commit | 3959fb2a1fe074d474c300206da1efde528bee3e (patch) | |
tree | c542464059b5e9a160288040c977c932c23fe416 /mail/thunderbird | |
parent | 2f1dc101f4d0be5b7984d37f0f954cbf9b530fae (diff) | |
download | ports-3959fb2a1fe074d474c300206da1efde528bee3e.tar.gz ports-3959fb2a1fe074d474c300206da1efde528bee3e.zip |
Notes
Diffstat (limited to 'mail/thunderbird')
-rw-r--r-- | mail/thunderbird/Makefile | 21 | ||||
-rw-r--r-- | mail/thunderbird/files/pkg-message.in | 10 |
2 files changed, 30 insertions, 1 deletions
diff --git a/mail/thunderbird/Makefile b/mail/thunderbird/Makefile index 5b32e07c702b..44bff50a6b60 100644 --- a/mail/thunderbird/Makefile +++ b/mail/thunderbird/Makefile @@ -54,7 +54,7 @@ PORTNAME_ICON_SRC= ${PREFIX}/lib/${MOZILLA}/chrome/icons/default/default48.png SYSTEM_PREFS= ${FAKEDIR}/lib/${PORTNAME}/defaults/pref/${PORTNAME}.js MOZ_PIS_SCRIPTS=moz_pis_S50cleanhome -OPTIONS= +OPTIONS= LIGHTNING "Enable calendar extension" off .include <bsd.port.pre.mk> @@ -90,6 +90,16 @@ LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \ BUILD_DEPENDS+= yasm:${PORTSDIR}/devel/yasm .endif +.if defined(WITH_LIGHTNING) +MOZ_OPTIONS+= --enable-calendar +MOZ_MK_OPTIONS+= MOZ_CO_PROJECT=calendar +LIGHTNING_DIR= share/lightning +SUB_FILES+= pkg-message +PKGMESSAGE= ${WRKDIR}/pkg-message +.else +MOZ_OPTIONS+= --disable-calendar +.endif + post-extract:: ${SED} -e 's|@PORTNAME_ICON@|${PORTNAME_ICON}|' \ <${FILESDIR}/thunderbird.desktop.in >${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop @@ -124,10 +134,19 @@ pre-install: @${ECHO_CMD} 'share/applications/${PORTNAME}.desktop' >> ${PLIST} @${ECHO_CMD} 'share/pixmaps/${PORTNAME_ICON}' >> ${PLIST} @${ECHO_CMD} '@dirrmtry share/applications' >> ${PLIST} +.if defined(WITH_LIGHTNING) + @${PRINTF} '%s/lightning-${PORTNAME}.xpi\n@dirrmtry %s\n' \ + ${LIGHTNING_DIR} ${LIGHTNING_DIR} >> ${PLIST} +.endif post-install: ${MKDIR} ${PREFIX}/share/applications ${INSTALL_DATA} ${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop ${PREFIX}/share/applications ${LN} -sf ${PORTNAME_ICON_SRC} ${PREFIX}/share/pixmaps/${PORTNAME_ICON} +.if defined(WITH_LIGHTNING) + ${MKDIR} ${PREFIX}/${LIGHTNING_DIR} + ${INSTALL_DATA} ${MOZSRC}/dist/xpi-stage/lightning.xpi ${PREFIX}/${LIGHTNING_DIR}/lightning-${PORTNAME}.xpi + @${CAT} ${PKGMESSAGE} +.endif .include <bsd.port.post.mk> diff --git a/mail/thunderbird/files/pkg-message.in b/mail/thunderbird/files/pkg-message.in new file mode 100644 index 000000000000..d602afe8ecbb --- /dev/null +++ b/mail/thunderbird/files/pkg-message.in @@ -0,0 +1,10 @@ +***************************************************************************** +In order to activate the Lightning extension, every user should install the +XPI file into his own profile via the menu: + +Tools -> Add-ons -> Extensions -> Icon left of the search field + -> Install From File + +The XPI file was installed as: +%%PREFIX%%/share/lightning/lightning-thunderbird.xpi +***************************************************************************** |