head	1.10;
access;
symbols
	pkgsrc-2017Q3:1.9.0.4
	pkgsrc-2017Q3-base:1.9
	pkgsrc-2017Q2:1.7.0.4
	pkgsrc-2017Q2-base:1.7
	pkgsrc-2017Q1:1.7.0.2
	pkgsrc-2017Q1-base:1.7
	pkgsrc-2016Q4:1.4.0.4
	pkgsrc-2016Q4-base:1.4
	pkgsrc-2016Q3:1.4.0.2
	pkgsrc-2016Q3-base:1.4
	pkgsrc-2016Q2:1.2.0.2
	pkgsrc-2016Q2-base:1.2;
locks; strict;
comment	@# @;


1.10
date	2017.10.27.17.48.30;	author ryoon;	state dead;
branches;
next	1.9;
commitid	5JxkMLJMGh5nuIcA;

1.9
date	2017.09.08.02.38.40;	author ryoon;	state Exp;
branches;
next	1.8;
commitid	Z3LDLQtL2xn22l6A;

1.8
date	2017.09.06.09.03.02;	author wiz;	state Exp;
branches;
next	1.7;
commitid	7oVVD1ktSLaUd76A;

1.7
date	2017.02.12.06.25.41;	author ryoon;	state Exp;
branches;
next	1.6;
commitid	k6LcxswBlcMUXCFz;

1.6
date	2017.02.06.13.55.39;	author wiz;	state Exp;
branches;
next	1.5;
commitid	gPJ49nTI4WujETEz;

1.5
date	2017.01.21.20.06.50;	author ryoon;	state Exp;
branches;
next	1.4;
commitid	XHtF6XJOdLqPdSCz;

1.4
date	2016.08.04.17.03.36;	author ryoon;	state Exp;
branches;
next	1.3;
commitid	2O6EMHxyKJmLF0hz;

1.3
date	2016.08.03.10.23.06;	author adam;	state Exp;
branches;
next	1.2;
commitid	AsJCxHnjaXbduQgz;

1.2
date	2016.06.19.06.30.29;	author ryoon;	state Exp;
branches;
next	1.1;
commitid	9phsp7tF2tgqE2bz;

1.1
date	2016.04.17.18.22.21;	author ryoon;	state Exp;
branches;
next	;
commitid	kYErSctBTRkdC03z;


desc
@@


1.10
log
@Remove thunderbird{24,31,38}
@
text
@# $NetBSD: Makefile,v 1.9 2017/09/08 02:38:40 ryoon Exp $

DISTNAME=	# empty
PKGNAME=	thunderbird38-${TB_VER}
PKGREVISION=	6
TB_VER=		38.8.0
CATEGORIES=	mail
MASTER_SITES=	${MASTER_SITE_MOZILLA:=thunderbird/releases/${TB_VER}/source/}
DISTFILES=	thunderbird-${TB_VER}.source.tar.bz2

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://www.mozillamessaging.com/en-US/thunderbird/
COMMENT=	Organize, secure and customize your mail

USE_TOOLS+=	unzip pax
WRKSRC=		${WRKDIR}/comm-esr38
MOZILLA_DIR=	mozilla/
PLIST_SRC+=	${PLIST_SRC_DFLT}

CONFIG_GUESS_OVERRIDE+=	ldap/sdks/c-sdk/config/autoconf/config.guess
CONFIG_SUB_OVERRIDE+=	ldap/sdks/c-sdk/config/autoconf/config.sub

CONFIGURE_ARGS+=	--enable-application=mail
# Disable WebRTC support for Thunderbird unconditionally.
CONFIGURE_ARGS+=	--disable-webrtc

ALL_ENV+=		MOZILLA_PKG_NAME=thunderbird38

.include "../../mk/bsd.prefs.mk"

#SUBST_CLASSES+=			ext-compat
#SUBST_STAGE.ext-compat=		pre-configure
#SUBST_MESSAGE.ext-compat=	Fixing extension compatibility
#SUBST_FILES.ext-compat=		mailnews/extensions/enigmail/package/install.rdf
#SUBST_FILES.ext-compat+=	calendar/*/install.rdf
#SUBST_FILES.ext-compat+=	calendar/*/*/install.rdf
#SUBST_SED.ext-compat=		-e 's,\(<em:maxVersion>\).*<,\19.0<,g'

SUBST_CLASSES+=		sys-dic
SUBST_STAGE.sys-dic=	pre-configure
SUBST_MESSAGE.sys-dic=	Reference to system hunspell dictionaries.
SUBST_FILES.sys-dic=	mozilla/extensions/spellcheck/hunspell/src/mozHunspell.cpp
SUBST_VARS.sys-dic=	PREFIX

CHECK_INTERPRETER_SKIP+=lib/thunderbird-sdk/sdk/bin/header.py
CHECK_INTERPRETER_SKIP+=lib/thunderbird-sdk/sdk/bin/typelib.py
CHECK_INTERPRETER_SKIP+=lib/thunderbird-sdk/sdk/bin/xpidl.py
CHECK_INTERPRETER_SKIP+=lib/thunderbird-sdk/sdk/bin/xpt.py

pre-configure:
	cd ${WRKSRC} && mkdir ${OBJDIR}
	cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} autoconf
	cd ${WRKSRC}/mozilla && ${SETENV} ${CONFIGURE_ENV} autoconf
	cd ${WRKSRC}/mozilla/js/src && ${SETENV} ${CONFIGURE_ENV} autoconf
	cd ${WRKSRC}/ldap/sdks/c-sdk && ${SETENV} ${CONFIGURE_ENV} autoconf
	touch ${WRKSRC}/.mozconfig

do-build:
# XXX for some reason it doesn't work unless -j is explicitly specified
	cd ${WRKSRC}/${OBJDIR} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} -j${MAKE_JOBS:U1}

MOZILLA=thunderbird38
MOZILLA_NAME=thunderbird38
post-build:
	${SED} -e 's|@@MOZILLA@@|${MOZILLA}|g'				\
	  -e 's|@@MOZILLA_NAME@@|${MOZILLA_NAME}|g'			\
	  -e 's|@@MOZILLA_ICON@@|${MOZILLA}.png|g'			\
	  < ${FILESDIR}/desktop.in					\
	  > ${WRKDIR}/desktop

INSTALLATION_DIRS+=	lib/${MOZILLA}/extensions
INSTALLATION_DIRS+=	share/applications share/pixmaps
post-install:
	${INSTALL_DATA} ${WRKDIR}/desktop				\
	  ${DESTDIR}${PREFIX}/share/applications/${MOZILLA}.desktop
	${INSTALL_DATA} ${WRKSRC}/${OBJDIR}/dist/thunderbird/chrome/icons/default/default48.png	\
	  ${DESTDIR}${PREFIX}/share/pixmaps/${MOZILLA}.png
	@@${STEP_MSG} "Installing bundled thunderbird extensions."
	rm -rf ${WRKDIR}/extensions
	${MKDIR} ${WRKDIR}/extensions
	${RUN} for e in ${XPI_FILES}; do				\
	  subdir="`${UNZIP_CMD} -c "$$e" install.rdf | awk '/^    <em:id>/ {sub(".*<em:id>","");sub("</em:id>.*","");print;exit;}'`" &&	\
	  ${MKDIR} "${WRKDIR}/extensions/$$subdir" &&			\
	  cd "${WRKDIR}/extensions/$$subdir" &&				\
	  ${UNZIP_CMD} -aqo $$e;					\
	done
	cd ${WRKDIR}/extensions && pax -rw .				\
	   ${DESTDIR}${PREFIX}/lib/${MOZILLA}/extensions/.
	rm -rf ${WRKDIR}/extensions

.include "../../www/firefox38/mozilla-common.mk"
.include "options.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"
@


1.9
log
@Recursive revbump from audio/pulseaudio-11.0
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2017/09/06 09:03:02 wiz Exp $
@


1.8
log
@Follow some redirects.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2017/02/12 06:25:41 ryoon Exp $
d5 1
a5 1
PKGREVISION=	5
@


1.7
log
@Recursive revbump from fonts/harfbuzz
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2017/02/06 13:55:39 wiz Exp $
d12 1
a12 1
HOMEPAGE=	http://www.mozillamessaging.com/en-US/thunderbird/
@


1.6
log
@Recursive bump for harfbuzz's new graphite2 dependency.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2017/01/21 20:06:50 ryoon Exp $
d5 1
a5 1
PKGREVISION=	4
@


1.5
log
@Recursive revbump from audio/pulseaudio-10.0
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2016/08/04 17:03:36 ryoon Exp $
d5 1
a5 1
PKGREVISION=	3
@


1.4
log
@Recursive revbump from audio/pulseaudio
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2016/08/03 10:23:06 adam Exp $
d5 1
a5 1
PKGREVISION=	2
@


1.3
log
@Revbump after graphics/gd update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2016/06/19 06:30:29 ryoon Exp $
d5 1
a5 1
PKGREVISION=	1
@


1.2
log
@Update to 38.8.0

Changelog:
Security bugs
Fixed in Thunderbird 38.8
    2016-39 Miscellaneous memory safety hazards (rv:46.0 / rv:45.1 / rv:38.8)
    2016-36 Use-after-free during processing of DER encoded keys in NSS
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2016/04/17 18:22:21 ryoon Exp $
d5 1
@


1.1
log
@Import thunderbird38-38.7.2 as mail/thunderbird38.

Mozilla Thunderbird is a redesign of the Mozilla mail component. The
goal is to produce a cross platform stand alone mail application using
the XUL user interface language. This version uses the gtk2 toolkit.

This package tracks 38 ESR branch.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.167 2016/04/11 19:01:56 ryoon Exp $
d5 1
a5 1
TB_VER=		38.7.2
@

