2010-06-23 13:10:48 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.94 2010/06/23 17:10:48 landry Exp $
|
2004-01-18 06:47:42 -05:00
|
|
|
|
2007-03-19 18:02:38 -04:00
|
|
|
SHARED_ONLY= Yes
|
2008-02-12 18:19:37 -05:00
|
|
|
ONLY_FOR_ARCHS= alpha amd64 arm i386 powerpc sparc sparc64
|
2004-01-18 06:47:42 -05:00
|
|
|
|
2010-04-03 05:26:45 -04:00
|
|
|
COMMENT= e-mail, rss and usenet client based on Mozilla codebase
|
2004-01-18 06:47:42 -05:00
|
|
|
|
2010-06-23 13:10:48 -04:00
|
|
|
VER= 3.0.5
|
2010-04-03 05:26:45 -04:00
|
|
|
DISTNAME= comm-1.9.1
|
2010-06-23 13:10:48 -04:00
|
|
|
PKGNAME= mozilla-thunderbird-${VER}
|
2010-04-03 05:26:45 -04:00
|
|
|
|
|
|
|
# need to be in synch with SO_VERSION in www/seamonkey
|
|
|
|
# for productivity/sunbird,-lighting and mail/enigmail to work ine
|
2010-06-23 13:10:48 -04:00
|
|
|
SO_VERSION= 16.0
|
2005-04-09 04:11:18 -04:00
|
|
|
# NOTE: Must bump minor version if any shlib's are removed from the
|
2006-12-21 16:52:12 -05:00
|
|
|
# components dir to avoid pkg_add -r issues. Whenever PKGNAME gets
|
|
|
|
# bumped and/or SO_VERSION changes, remember to update enigmail's
|
2009-11-18 03:43:39 -05:00
|
|
|
# and sunbird SO_VERSION and LIB_DEPENDS to match.
|
2006-12-21 16:52:12 -05:00
|
|
|
|
2010-04-03 05:26:45 -04:00
|
|
|
.for _lib in accessibility appcomps auth autoconfig caps chardet chrome commandlines \
|
2010-06-23 13:10:48 -04:00
|
|
|
composer cookie docshell embedcomponents fileview \
|
2010-04-03 05:26:45 -04:00
|
|
|
gkgfxthebes gklayout gkplugin htmlpars i18n imgicon imglib2 import \
|
|
|
|
intlapp jar50 jsd mail mailcomps mork mozfind mozldap msgsmime necko \
|
|
|
|
nsappshell permissions pipboot pipnss pippki pref rdf remoteservice \
|
|
|
|
satchel spellchecker storagecomps system-pref tkautocomplete \
|
|
|
|
toolkitcomps txmgr uconv ucvmath universalchardet unixproxy webbrwsr \
|
|
|
|
widget_gtk2 windowds xpautocomplete xpconnect xpinstall zipwriter \
|
|
|
|
gfxpsshar gkgfx gtkxtbin ldap60 ldif60 mozjs prldap60 sqlite3 ssldap60 \
|
|
|
|
thebes xpcom xpcom_core xul nullplugin unixprintplugin
|
2006-01-01 11:02:36 -05:00
|
|
|
SHARED_LIBS+= ${_lib} ${SO_VERSION}
|
|
|
|
.endfor
|
2004-01-18 06:47:42 -05:00
|
|
|
|
|
|
|
CATEGORIES= mail news
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.mozilla.org/projects/thunderbird/
|
|
|
|
|
2007-06-22 14:51:30 -04:00
|
|
|
# MPL
|
2004-01-18 06:47:42 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2009-03-09 17:32:22 -04:00
|
|
|
|
|
|
|
WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
|
2010-04-03 05:26:45 -04:00
|
|
|
WANTLIB += Xi Xinerama Xrandr Xrender Xt atk-1.0 c cairo expat
|
2009-03-09 17:32:22 -04:00
|
|
|
WANTLIB += fontconfig freetype gio-2.0 glib-2.0 glitz gmodule-2.0
|
|
|
|
WANTLIB += gobject-2.0 gthread-2.0 jpeg m pango-1.0 pangocairo-1.0
|
2010-04-03 05:26:45 -04:00
|
|
|
WANTLIB += pangoft2-1.0 pixman-1 png pthread pthread-stubs
|
2010-06-23 13:10:48 -04:00
|
|
|
WANTLIB += xcb sndio stdc++ z xcb-render xcb-render-util
|
2004-01-18 06:47:42 -05:00
|
|
|
|
2007-04-06 10:48:28 -04:00
|
|
|
MASTER_SITES= http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${VER}/source/
|
2010-04-03 05:26:45 -04:00
|
|
|
DISTFILES= thunderbird-${VER}.source.tar.bz2
|
2004-01-18 06:47:42 -05:00
|
|
|
|
2010-04-03 05:26:45 -04:00
|
|
|
MODULES= devel/gettext lang/python
|
2009-05-09 18:47:08 -04:00
|
|
|
RUN_DEPENDS= :desktop-file-utils-*:devel/desktop-file-utils
|
2005-11-15 04:21:50 -05:00
|
|
|
BUILD_DEPENDS= :libIDL-*:devel/libIDL \
|
2006-12-16 07:22:32 -05:00
|
|
|
:zip->=2.3:archivers/zip
|
2006-11-17 14:20:19 -05:00
|
|
|
LIB_DEPENDS= gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2 \
|
2009-08-21 12:40:42 -04:00
|
|
|
nspr4.>=21,plc4.>=21,plds4.>=21:nspr->=4.8:devel/nspr \
|
2010-04-03 05:26:45 -04:00
|
|
|
nss3.>=25,smime3.>=25,softokn3.>=25,ssl3.>=25:nss->=3.12.6:security/nss
|
2004-01-18 06:47:42 -05:00
|
|
|
|
|
|
|
VMEM_WARNING= Yes
|
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
# Regression tests are too hard to adapt to run here
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2010-04-03 05:26:45 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/mozilla/build/autoconf \
|
|
|
|
${WRKSRC}/mozilla/js/src/build/autoconf \
|
2004-08-02 12:08:23 -04:00
|
|
|
${WRKSRC}/directory/c-sdk/config/autoconf
|
|
|
|
|
2004-05-06 10:39:49 -04:00
|
|
|
AUTOCONF_VERSION= 2.13
|
2004-04-09 05:52:09 -04:00
|
|
|
CONFIGURE_STYLE= autoconf no-autoheader
|
2004-02-15 14:41:58 -05:00
|
|
|
CONFIGURE_ARGS= --with-system-jpeg=${LOCALBASE} \
|
2004-01-18 06:47:42 -05:00
|
|
|
--with-system-zlib=/usr/lib \
|
2006-11-17 14:20:19 -05:00
|
|
|
--with-system-nspr \
|
2007-04-30 18:40:31 -04:00
|
|
|
--with-system-nss \
|
2004-01-18 06:47:42 -05:00
|
|
|
--with-pthreads \
|
2007-04-30 18:40:31 -04:00
|
|
|
--disable-optimize \
|
2004-02-15 14:41:58 -05:00
|
|
|
--disable-debug \
|
|
|
|
--disable-tests \
|
|
|
|
--disable-pedantic \
|
2006-01-23 07:34:06 -05:00
|
|
|
--disable-installer \
|
|
|
|
--disable-updater \
|
|
|
|
--disable-gnomeui \
|
|
|
|
--disable-gnomevfs \
|
2010-04-03 05:26:45 -04:00
|
|
|
--disable-dbus \
|
|
|
|
--enable-default-toolkit=cairo-gtk2 \
|
2006-01-23 07:34:06 -05:00
|
|
|
--enable-xinerama \
|
|
|
|
--enable-svg \
|
|
|
|
--enable-svg-renderer=cairo \
|
|
|
|
--enable-system-cairo \
|
2007-04-30 18:40:31 -04:00
|
|
|
--enable-canvas \
|
2007-06-22 14:51:30 -04:00
|
|
|
--enable-official-branding \
|
|
|
|
--enable-application=mail
|
2006-01-23 07:34:06 -05:00
|
|
|
|
2010-04-03 05:26:45 -04:00
|
|
|
#http://groups.google.com/group/mozilla.support.thunderbird/browse_thread/thread/c2b667c871db035a?pli=1
|
|
|
|
#system sqlite must be built with FTS3 enabled
|
|
|
|
# --enable-system-sqlite \
|
|
|
|
|
|
|
|
ALL_TARGET= default
|
|
|
|
|
2006-01-23 07:34:06 -05:00
|
|
|
MAKE_ENV= MOZ_CO_PROJECT=mail \
|
2010-04-03 05:26:45 -04:00
|
|
|
LD_LIBRARY_PATH="${WRKSRC}/mozilla/dist/bin" \
|
2005-04-16 15:22:13 -04:00
|
|
|
BUILD_OFFICIAL=1 \
|
|
|
|
MOZILLA_OFFICIAL=1 \
|
2007-04-30 18:40:31 -04:00
|
|
|
SO_VERSION="${SO_VERSION}"
|
2006-01-23 07:34:06 -05:00
|
|
|
CONFIGURE_ENV= ${MAKE_ENV} \
|
2007-04-30 18:40:31 -04:00
|
|
|
PKG_CONFIG_PATH="${LOCALBASE}/lib/pkgconfig:${X11BASE}/lib/pkgconfig" \
|
|
|
|
MOZ_ENABLE_COREXFONTS=1 \
|
|
|
|
topsrcdir=${WRKSRC}
|
2004-01-18 06:47:42 -05:00
|
|
|
|
2010-04-03 05:26:45 -04:00
|
|
|
MOB= ${WRKSRC}/mozilla/dist/bin
|
2004-01-18 06:47:42 -05:00
|
|
|
MOZ= ${PREFIX}/mozilla-thunderbird
|
|
|
|
|
2007-04-30 18:40:31 -04:00
|
|
|
DATADIRS= chrome components defaults dictionaries extensions \
|
2010-04-03 05:26:45 -04:00
|
|
|
greprefs isp modules plugins res
|
2007-04-30 18:40:31 -04:00
|
|
|
|
2009-05-09 18:47:08 -04:00
|
|
|
post-extract:
|
2010-04-03 05:26:45 -04:00
|
|
|
cp -f ${FILESDIR}/sydney_audio_sndio.c \
|
|
|
|
${WRKSRC}/mozilla/media/libsydneyaudio/src/
|
|
|
|
cp -f ${FILESDIR}/nsSound.cpp ${WRKSRC}/mozilla/widget/src/gtk2/
|
2009-05-09 18:47:08 -04:00
|
|
|
|
2004-01-18 06:47:42 -05:00
|
|
|
pre-configure:
|
2010-04-03 05:26:45 -04:00
|
|
|
cd ${WRKSRC}/directory/c-sdk && ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF}
|
|
|
|
cd ${WRKSRC}/mozilla && ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF}
|
|
|
|
cd ${WRKSRC}/mozilla/js/src && ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF}
|
2010-04-27 16:57:55 -04:00
|
|
|
${SUBST_CMD} ${WRKSRC}/mozilla/xpcom/io/nsAppFileLocationProvider.cpp \
|
|
|
|
${WRKSRC}/mozilla/js/src/xpconnect/shell/Makefile.in \
|
2010-04-03 05:26:45 -04:00
|
|
|
${WRKSRC}/mozilla/extensions/spellcheck/hunspell/src/mozHunspell.cpp \
|
|
|
|
${WRKSRC}/mozilla/build/unix/mozilla.in \
|
|
|
|
${WRKSRC}/mozilla/toolkit/xre/nsXREDirProvider.cpp
|
2004-01-18 06:47:42 -05:00
|
|
|
|
|
|
|
do-install:
|
2010-04-03 05:26:45 -04:00
|
|
|
cd ${MOB} && \
|
2007-04-30 18:40:31 -04:00
|
|
|
find ${DATADIRS} -type d \
|
2007-06-22 14:51:30 -04:00
|
|
|
-exec ${INSTALL_DATA_DIR} ${MOZ}/{} \; && \
|
2007-04-30 18:40:31 -04:00
|
|
|
find ${DATADIRS} ! -type d \
|
|
|
|
-exec ${INSTALL_DATA} -m 644 {} ${MOZ}/{} \;
|
2010-04-03 05:26:45 -04:00
|
|
|
${INSTALL_DATA} ${MOB}/*.so.${SO_VERSION} ${MOZ}
|
|
|
|
${INSTALL_DATA} ${MOB}/*.ini ${MOZ}
|
|
|
|
${INSTALL_SCRIPT} ${MOB}/thunderbird ${PREFIX}/bin/
|
2005-04-09 04:11:18 -04:00
|
|
|
${INSTALL_SCRIPT} ${MOB}/run-mozilla.sh ${MOZ}
|
2007-04-30 18:40:31 -04:00
|
|
|
${INSTALL_PROGRAM} ${MOB}/regxpcom \
|
|
|
|
${MOB}/thunderbird-bin \
|
|
|
|
${MOB}/mozilla-xremote-client ${MOZ}
|
2010-06-23 13:10:48 -04:00
|
|
|
${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} -c ${FILESDIR}/README.OpenBSD \
|
2010-04-03 05:26:45 -04:00
|
|
|
${MOZ}/README.OpenBSD
|
2008-02-04 14:52:25 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
|
2010-06-23 13:10:48 -04:00
|
|
|
${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} -c ${FILESDIR}/thunderbird.desktop \
|
2010-04-03 05:26:45 -04:00
|
|
|
${PREFIX}/share/applications/thunderbird.desktop
|
2004-01-18 06:47:42 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|