1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00

add an option to build the lightning (calendar) extension

Submitted by:	mi (original version)
This commit is contained in:
Florian Smeets 2011-07-04 21:27:06 +00:00
parent 2f1dc101f4
commit 3959fb2a1f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=277068
4 changed files with 60 additions and 2 deletions

View File

@ -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>

View File

@ -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
*****************************************************************************

View File

@ -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>

View File

@ -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
*****************************************************************************