Date: Thu, 26 May 2011 00:15:43 -0400 From: "Mikhail T." <mi+thun@aldan.algebra.com> To: gecko@freebsd.org, beat@FreeBSD.org Subject: building lightning as part of thunderbird Message-ID: <4DDDD3EF.9040907@aldan.algebra.com>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------020000040008050704080209 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit It turns out, Lightning can already be built together with the rest of thunderbird <https://developer.mozilla.org/En/Simple_Thunderbird_build#Building_Thunderbird_and_Lightning> with the simple --enable-calendar configure-option. The attached patch does that unconditionally, but adding the OPTION (WITH_LIGHTNING?) is easy too. The patch installs the lightning.xpi into the same location, where deskutils/lightning-thunderbird installs it --- deliberately. With this addition, the lightning-thunderbird port (which currently rebuilds vast amounts of C and C++ code for just one shared library) can be removed. But, of course, the location can changed --- to something underneath lib/thunderbird, for example... Yours, -mi --------------020000040008050704080209 Content-Type: text/plain; name="thunderbird-lightning.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="thunderbird-lightning.patch" Index: Makefile =================================================================== RCS file: /home/pcvs/ports/mail/thunderbird/Makefile,v retrieving revision 1.125 diff -U 2 -r1.125 Makefile --- Makefile 29 Apr 2011 06:37:41 -0000 1.125 +++ Makefile 26 May 2011 04:06:11 -0000 @@ -30,4 +31,6 @@ MAKE_ENV= PTHREAD_LDFLAGS="${PTHREAD_LIBS}" HAS_CONFIGURE= yes +CONFIGURE_ARGS+=--enable-calendar +LIGHTNING_DIR= share/lightning USE_BZIP2= yes USE_GMAKE= yes @@ -119,4 +124,6 @@ @${ECHO_CMD} 'share/pixmaps/${PORTNAME_ICON}' >> ${PLIST} @${ECHO_CMD} '@dirrmtry share/applications' >> ${PLIST} + @${PRINTF} '%s/lightning.xpi\n@dirrmtry %s\n' \ + ${LIGHTNING_DIR} ${LIGHTNING_DIR} >> ${PLIST} post-install: @@ -124,4 +131,6 @@ ${INSTALL_DATA} ${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop ${PREFIX}/share/applications ${LN} -sf ${PORTNAME_ICON_SRC} ${PREFIX}/share/pixmaps/${PORTNAME_ICON} + ${MKDIR} ${PREFIX}/${LIGHTNING_DIR} + ${INSTALL_DATA} ${MOZSRC}/dist/xpi-stage/lightning.xpi ${PREFIX}/${LIGHTNING_DIR} .include <bsd.port.post.mk> --------------020000040008050704080209--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DDDD3EF.9040907>