2008-07-25 13:41:06 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.72 2008/07/25 17:41:06 martynas 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
|
|
|
|
2007-09-15 20:17:04 -04:00
|
|
|
COMMENT= redesign of Mozilla's mail component
|
2004-01-18 06:47:42 -05:00
|
|
|
|
2008-07-24 06:10:33 -04:00
|
|
|
VER= 2.0.0.16
|
2004-01-18 06:47:42 -05:00
|
|
|
DISTNAME= mozilla
|
2008-07-25 13:41:06 -04:00
|
|
|
PKGNAME= mozilla-thunderbird-${VER}p0
|
2007-04-30 18:40:31 -04:00
|
|
|
SO_VERSION= 13.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
|
|
|
|
# SO_VERSION and LIB_DEPENDS to match.
|
|
|
|
|
2006-01-23 07:34:06 -05:00
|
|
|
.for _lib in accessibility appcomps auth autoconfig caps chrome commandlines \
|
2007-04-30 18:40:31 -04:00
|
|
|
composer docshell editor embedcomponents fileview gfx_gtk gfxps \
|
|
|
|
gfxpsshar gkgfx gklayout gtkembedmoz gtkxtbin htmlpars i18n imglib2 \
|
|
|
|
import jar50 jsd ldap50 mail mailcomps mork mozfind mozjs mozldap \
|
|
|
|
msgsmime myspell necko necko2 nsappshell pipboot \
|
|
|
|
pipnss pippki pref prldap50 rdf remoteservice \
|
|
|
|
spellchecker storagecomps system-pref toolkitcomps transformiix \
|
|
|
|
txmgr uconv universalchardet wallet walletviewers webbrwsr websrvcs \
|
|
|
|
widget_gtk2 xmlextras xpcom xpcom_compat xpcom_compat_c xpcom_core \
|
|
|
|
xpconnect xpinstall xpistub
|
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
|
2007-11-16 16:32:10 -05:00
|
|
|
WANTLIB= X11 Xau Xcursor Xdmcp Xext Xfixes Xcomposite Xdamage \
|
|
|
|
Xft Xi Xinerama Xrandr Xrender Xt atk-1.0 c cairo \
|
|
|
|
expat fontconfig freetype glib-2.0 gthread-2.0 glitz \
|
|
|
|
gmodule-2.0 gobject-2.0 jpeg m pango-1.0 pangocairo-1.0 \
|
2008-07-24 06:10:33 -04:00
|
|
|
pangoft2-1.0 pangox-1.0 pixman-1 png pthread stdc++ z
|
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/
|
2004-12-27 16:21:38 -05:00
|
|
|
DISTFILES= thunderbird-${VER}-source.tar.bz2
|
2004-01-18 06:47:42 -05:00
|
|
|
|
2007-10-02 15:09:44 -04:00
|
|
|
MODULES= devel/gettext
|
2008-02-04 14:52:25 -05:00
|
|
|
RUN_DEPENDS= :esound-*:audio/esound \
|
|
|
|
: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 \
|
2007-04-30 18:40:31 -04:00
|
|
|
nspr4.>=17,plc4.>=17,plds4.>=17:nspr->=4.6.4p1:devel/nspr \
|
|
|
|
nss3.>=19,smime3.>=19,softokn3.>=19,ssl3.>=19:nss->=3.11.4p1: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
|
2007-04-30 18:40:31 -04:00
|
|
|
SUBST_VARS= LOCALBASE
|
2004-01-18 06:47:42 -05:00
|
|
|
|
2004-08-02 12:08:23 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/build/autoconf \
|
|
|
|
${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-png=${LOCALBASE} \
|
|
|
|
--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 \
|
|
|
|
--enable-xft \
|
2007-04-30 18:40:31 -04:00
|
|
|
--disable-optimize \
|
2005-09-09 12:22:28 -04:00
|
|
|
--enable-default-toolkit=gtk2 \
|
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 \
|
|
|
|
--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
|
|
|
|
|
|
|
MAKE_ENV= MOZ_CO_PROJECT=mail \
|
2005-04-09 04:11:18 -04:00
|
|
|
LD_LIBRARY_PATH="${WRKSRC}/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
|
|
|
|
2004-12-27 16:21:38 -05:00
|
|
|
MOB= ${WRKSRC}/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 \
|
|
|
|
greprefs icons init.d res
|
|
|
|
|
2004-01-18 06:47:42 -05:00
|
|
|
pre-configure:
|
2004-12-27 16:21:38 -05:00
|
|
|
@cd ${WRKSRC}/directory/c-sdk && ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF}
|
2004-01-19 09:36:48 -05:00
|
|
|
@perl -pi -e 's|_LOCALBASE_|${LOCALBASE}|g; s|_X11BASE_|${X11BASE}|g' \
|
2008-07-24 06:10:33 -04:00
|
|
|
${WRKSRC}/js/src/xpconnect/shell/Makefile.in \
|
2004-01-18 06:47:42 -05:00
|
|
|
${WRKSRC}/mail/app/mozilla.in
|
2005-04-09 04:11:18 -04:00
|
|
|
@perl -pi -e 's|_SO_VERSION_|${SO_VERSION}|g' \
|
|
|
|
${WRKSRC}/xpcom/components/nsNativeComponentLoader.cpp
|
2004-01-18 06:47:42 -05:00
|
|
|
|
|
|
|
do-install:
|
2007-04-30 18:40:31 -04:00
|
|
|
@cd ${MOB} && \
|
|
|
|
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}/{} \;
|
2007-06-22 14:51:30 -04:00
|
|
|
${INSTALL_DATA} ${MOB}/*.so.${SO_VERSION} \
|
|
|
|
${WRKSRC}/LICENSE ${MOZ}
|
2007-04-30 18:40:31 -04:00
|
|
|
${INSTALL_SCRIPT} ${MOB}/thunderbird \
|
|
|
|
${MOB}/thunderbird-config ${PREFIX}/bin/
|
2006-01-23 07:34:06 -05:00
|
|
|
ln -f ${PREFIX}/bin/thunderbird ${PREFIX}/bin/mozilla-thunderbird
|
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}
|
2004-12-27 16:21:38 -05:00
|
|
|
ln -f ${MOZ}/thunderbird-bin ${MOZ}/mozilla-thunderbird-bin
|
2007-06-22 14:51:30 -04:00
|
|
|
@sed -e 's,!!PREFIX!!,${TRUEPREFIX},g' \
|
|
|
|
< ${FILESDIR}/README.OpenBSD > ${MOZ}/README.OpenBSD
|
2008-02-04 14:52:25 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
|
|
|
|
@sed -e 's,!!PREFIX!!,${TRUEPREFIX},g' \
|
|
|
|
< ${FILESDIR}/thunderbird.desktop > \
|
|
|
|
${PREFIX}/share/applications/thunderbird.desktop
|
2004-01-18 06:47:42 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|