2009-11-29 04:28:04 +01:00
|
|
|
# $NetBSD: Makefile,v 1.41 2009/11/29 03:28:35 tnn Exp $
|
2009-11-29 04:06:42 +01:00
|
|
|
#
|
2004-04-20 01:25:27 +02:00
|
|
|
|
2009-11-29 04:06:42 +01:00
|
|
|
DISTNAME= thunderbird-${TB_VER}.source
|
|
|
|
PKGNAME= thunderbird-${TB_VER}
|
|
|
|
TB_VER= 3.0rc1
|
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_MOZILLA:=thunderbird/releases/${TB_VER}/source/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2005-04-02 16:48:35 +02:00
|
|
|
|
2009-11-29 04:06:42 +01:00
|
|
|
MAINTAINER= tnn@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.mozillamessaging.com/en-US/thunderbird/
|
|
|
|
COMMENT= Organize, secure and customize your mail
|
2004-04-20 01:25:27 +02:00
|
|
|
|
2009-11-29 04:06:42 +01:00
|
|
|
WRKSRC= ${WRKDIR}/comm-1.9.1
|
|
|
|
MOZILLA_DIR= mozilla/
|
2007-08-15 18:02:41 +02:00
|
|
|
|
2009-11-29 04:06:42 +01:00
|
|
|
CONFIG_GUESS_OVERRIDE+= directory/c-sdk/config/autoconf/config.guess
|
|
|
|
CONFIG_SUB_OVERRIDE+= directory/c-sdk/config/autoconf/config.sub
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-application=mail
|
|
|
|
CONFIGURE_ARGS+= --enable-static
|
|
|
|
|
|
|
|
ALL_ENV+= MOZILLA_PKG_NAME=thunderbird
|
|
|
|
|
|
|
|
MOZILLA_PATCHES= ${.CURDIR}/../../devel/xulrunner/patches/patch-*
|
|
|
|
pre-patch:
|
|
|
|
@${STEP_MSG} "Applying common mozilla patches from devel/xulrunner"
|
|
|
|
.for i in ${MOZILLA_PATCHES}
|
|
|
|
${RUN} ${CAT} ${i} | ${PATCH} -s -p0 -d ${WRKSRC}/${MOZILLA_DIR} || \
|
|
|
|
{ ${ERROR_MSG} "Patch ${i} failed"; ${_PKGSRC_PATCH_FAIL}; }
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC}/directory/c-sdk && ${SETENV} ${CONFIGURE_ENV} autoconf
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} autoconf
|
|
|
|
cd ${WRKSRC}/mozilla && ${SETENV} ${CONFIGURE_ENV} autoconf
|
|
|
|
cd ${WRKSRC}/mozilla/js/src && ${SETENV} ${CONFIGURE_ENV} autoconf
|
|
|
|
cd ${WRKSRC}/mozilla/nsprpub && ${SETENV} ${CONFIGURE_ENV} autoconf
|
|
|
|
cd ${WRKSRC}/directory/c-sdk && ${SETENV} ${CONFIGURE_ENV} autoconf
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
# XXX for some reason it doesn't work unless -j is explicitly specified
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} -j${MAKE_JOBS:U1}
|
|
|
|
|
|
|
|
MOZILLA=thunderbird
|
|
|
|
MOZILLA_NAME=Thunderbird
|
2009-11-29 04:28:04 +01:00
|
|
|
post-build:
|
|
|
|
${SED} -e 's|@MOZILLA@|${MOZILLA}|g' \
|
2009-11-29 04:06:42 +01:00
|
|
|
-e 's|@MOZILLA_NAME@|${MOZILLA_NAME}|g' \
|
|
|
|
-e 's|@MOZILLA_ICON@|${MOZILLA}.png|g' \
|
|
|
|
< ${FILESDIR}/desktop.in \
|
|
|
|
> ${WRKDIR}/desktop
|
2009-11-29 04:28:04 +01:00
|
|
|
|
|
|
|
INSTALLATION_DIRS+= share/applications share/pixmaps
|
|
|
|
post-install:
|
2009-11-29 04:06:42 +01:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/desktop \
|
|
|
|
${DESTDIR}${PREFIX}/share/applications/${MOZILLA}.desktop
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/mail/branding/nightly/mailicon48.png \
|
|
|
|
${DESTDIR}${PREFIX}/share/pixmaps/${MOZILLA}.png
|
|
|
|
|
|
|
|
.include "../../devel/xulrunner/mozilla-common.mk"
|
|
|
|
.include "options.mk"
|
|
|
|
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
|
2005-09-18 07:04:37 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|