diff options
Diffstat (limited to 'deskutils/lightning/Makefile')
-rw-r--r-- | deskutils/lightning/Makefile | 111 |
1 files changed, 76 insertions, 35 deletions
diff --git a/deskutils/lightning/Makefile b/deskutils/lightning/Makefile index 6c6cd6b94491..c739addd89fe 100644 --- a/deskutils/lightning/Makefile +++ b/deskutils/lightning/Makefile @@ -3,76 +3,117 @@ # Whom: Michael Johnson <ahze@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/deskutils/sunbird/Makefile,v 1.19 2006/10/13 04:40:20 ahze Exp $ # -PORTNAME= sunbird -PORTVERSION= 0.9 -PORTREVISION= 3 -PORTEPOCH= 1 +PORTNAME= lightning +DISTVERSION= 1.0 CATEGORIES= deskutils MASTER_SITES= ${MASTER_SITE_MOZILLA_EXTENDED} -MASTER_SITE_SUBDIR= calendar/sunbird/releases/${DISTVERSION}/source -DISTNAME= lightning-${PORTNAME}-${DISTVERSION}-source +MASTER_SITE_SUBDIR= calendar/${PORTNAME}/releases/${DISTVERSION}b1/source +DISTNAME= ${PORTNAME}-sunbird-${DISTVERSION}b1.source MAINTAINER= gecko@FreeBSD.org -COMMENT= Redesign of the Mozilla Calendar with XUL interface +COMMENT= An integrated calendar for Thunderbird and SeaMonkey -USE_AUTOTOOLS= libtool:22 +OPTIONS+= THUNDERBIRD "Install Thunderbird 3.0" on \ + SEAMONKEY "Install SeaMonkey 2.0" off + +USE_AUTOTOOLS= autoconf:213 libtool:22 ALL_TARGET= default CONFIGURE_ENV= LOCALBASE=${LOCALBASE} +MAKE_ENV= PTHREAD_LDFLAGS="${PTHREAD_LIBS}" HAS_CONFIGURE= yes USE_GMAKE= yes USE_BZIP2= yes USE_GECKO= gecko +MAKE_JOBS_SAFE= yes WANT_GNOME= yes WANT_PERL= yes -SUNBIRD= ${PORTNAME} -SUNBIRD_ICON_SRC= ${PREFIX}/lib/sunbird/chrome/icons/default/default.xpm -SUNBIRD_ICON= ${PORTNAME}.xpm +USE_MOZILLA= -png -dbm -jpeg -xft +MOZ_TOOLKIT= cairo-gtk2 LIBS= -Wl,-Bsymbolic -lc MOZ_PKGCONFIG_FILES= ${PORTNAME}-js ${PORTNAME}-xpcom ${PORTNAME}-plugin PKGCONFIG_FILES= ${MOZ_PKG_CONFIG_FILES} MOZ_OPTIONS= --enable-application=calendar \ --enable-system-cairo \ - --with-system-nss \ --enable-canvas MOZ_MK_OPTIONS= MOZ_CO_PROJECT=calendar - -GECKO_PLIST_PRE_FILES= lib/sunbird/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/chrome.manifest \ - lib/sunbird/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.manifest +NOGECKO_PLIST= yes +NOGECKO_INSTALL= yes .include <bsd.init.mk> .include <bsd.libnames.mk> .include <bsd.port.pre.mk> -.if ${ARCH}=="sparc64" -BROKEN= does not build +.if defined(WITH_THUNDERBIRD) +RUN_DEPENDS+= ${LOCALBASE}/lib/thunderbird/thunderbird-bin:${PORTSDIR}/mail/thunderbird3 +.endif + +.if defined(WITH_SEAMONKEY) +RUN_DEPENDS+= ${LOCALBASE}/lib/seamonkey/seamonkey-bin:${PORTSDIR}/www/seamonkey2 +.endif + +XPI_FILE= ${DISTNAME}-${GECKO}-freebsd${OSVERSION:C/([0-9]).+/\1/}-${ARCH}.xpi +PLIST_FILES= %%DATADIR%%/${XPI_FILE} +PLIST_DIRS= %%DATADIR%% + +WRKSRC= ${WRKDIR}/comm-1.9.1 +MOZSRC:= ${WRKSRC}/mozilla + +.if ${OSVERSION} < 700000 +LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio +EXTRA_PATCHES= ${FILESDIR}/releng6_pulseaudio +.else +EXTRA_PATCHES= ${FILESDIR}/liboggplay_oss +.endif + +GECKO_PTHREAD_LIBS!=${CC} -dumpspecs | ${GREP} -m 1 '%{\!pg: %{pthread:' | ${SED} -e 's|^.*%{\!pg: %{pthread:|| ; s|}.*$$||' || ${TRUE} + +.if defined(WITHOUT_DBUS) +MOZ_OPTIONS+= --disable-dbus +.else +LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib .endif post-patch: - @${SED} -e 's|@SUNBIRD_ICON@|${SUNBIRD_ICON}|' \ - ${FILESDIR}/sunbird.desktop.in >${WRKDIR}/sunbird.desktop + ${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS:C/-pthread/${GECKO_PTHREAD_LIBS}/}|' \ + ${MOZSRC}/storage/build/Makefile.in \ + ${MOZSRC}/db/sqlite3/src/Makefile.in @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ - ${WRKSRC}/security/manager/ssl/src/Makefile.in + ${MOZSRC}/security/manager/ssl/src/Makefile.in \ + ${MOZSRC}/js/src/config/mkdepend/Makefile.in \ + ${MOZSRC}/js/src/config/config.mk @${REINPLACE_CMD} -e 's|%%LIB_BZ2%%|${LIBBZ2}|' \ - ${WRKSRC}/toolkit/mozapps/update/src/updater/Makefile.in + ${MOZSRC}/toolkit/mozapps/update/src/updater/Makefile.in + @${REINPLACE_CMD} -e 's|-lc_r|${PTHREAD_LIBS}|g ; \ + s|-lpthread|${PTHREAD_LIBS}|g ; \ + s|echo aout|echo elf|g ; \ + s|/usr/X11R6|${LOCALBASE}|g' \ + ${MOZSRC}/js/src/configure \ + ${MOZSRC}/configure -post-build: - @(cd ${WRKSRC}/xpfe/components/autocomplete/src && ${GMAKE}) +pre-configure: + (cd ${WRKSRC} && ${AUTOCONF}) + (cd ${MOZSRC} && ${AUTOCONF}) + (cd ${MOZSRC}/js/src/ && ${AUTOCONF}) -pre-install: - ${ECHO_CMD} 'share/applications/sunbird.desktop' >> ${PLIST} - ${ECHO_CMD} 'share/pixmaps/${SUNBIRD_ICON}' >> ${PLIST} - ${ECHO_CMD} '@unexec ${RMDIR} %D/share/applications 2>/dev/null || ${TRUE}' >> ${PLIST} - ${ECHO_CMD} '@dirrmtry lib/sunbird/plugins' >> ${PLIST} - ${ECHO_CMD} '@dirrmtry lib/sunbird' >> ${PLIST} +# XXX: Workaround for bug 533070. Should be fixed in next release + ${CP} ${WRKSRC}/calendar/sunbird/app/*.png ${WRKSRC}/calendar/sunbird/branding/nightly/ + ${CP} ${WRKSRC}/calendar/sunbird/app/*.xpm ${WRKSRC}/calendar/sunbird/branding/nightly/ + ${CP} ${WRKSRC}/calendar/sunbird/app/*.ico ${WRKSRC}/calendar/sunbird/branding/nightly/ + ${MKDIR} ${WRKSRC}/calendar/sunbird/branding/nightly/content/ + ${CP} ${WRKSRC}/calendar/sunbird/base/branding/*.png ${WRKSRC}/calendar/sunbird/branding/nightly/content/ + ${MKDIR} ${WRKSRC}/calendar/sunbird/branding/nightly/locales/en-US + ${CP} ${WRKSRC}/calendar/locales/en-US/chrome/branding/brand.* ${WRKSRC}/calendar/sunbird/branding/nightly/locales/en-US/ + +post-build: + @(cd ${MOZSRC}/xpfe/components/autocomplete/src && ${GMAKE}) do-install: - ${MKDIR} ${PREFIX}/share/applications ${PREFIX}/share/pixmaps - ${INSTALL_DATA} ${WRKDIR}/sunbird.desktop ${PREFIX}/share/applications - ${LN} -sf ${SUNBIRD_ICON_SRC} ${PREFIX}/share/pixmaps/${SUNBIRD_ICON} - ${TOUCH} ${PREFIX}/lib/sunbird/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/chrome.manifest - ${TOUCH} ${PREFIX}/lib/sunbird/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}/chrome.manifest + ${MKDIR} ${DATADIR} + ${INSTALL_DATA} ${MOZSRC}/dist/xpi-stage/${PORTNAME}.xpi ${DATADIR}/${XPI_FILE} + +post-install: + @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> |