2005-01-04 16:27:27 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.15 2005/01/04 21:27:27 wilfried Exp $
|
2004-01-18 06:47:42 -05:00
|
|
|
|
2004-12-27 16:21:38 -05:00
|
|
|
ONLY_FOR_ARCHS= alpha i386 sparc sparc64 amd64 powerpc
|
2004-01-18 06:47:42 -05:00
|
|
|
|
|
|
|
COMMENT= "redesign of the integrated Mozilla App-Suite mail component"
|
|
|
|
|
2004-12-27 16:21:38 -05:00
|
|
|
VER= 1.0
|
2004-01-18 06:47:42 -05:00
|
|
|
DISTNAME= mozilla
|
|
|
|
PKGNAME= mozilla-thunderbird-${VER}
|
|
|
|
|
|
|
|
CATEGORIES= mail news
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.mozilla.org/projects/thunderbird/
|
|
|
|
|
|
|
|
# mozilla public license
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-27 16:21:38 -05:00
|
|
|
WANTLIB= X11 Xext Xft Xi Xp Xrender Xt c fontconfig freetype \
|
|
|
|
iconv intl m pthread stdc++ z
|
2004-01-18 06:47:42 -05:00
|
|
|
|
2004-12-27 16:21:38 -05:00
|
|
|
MASTER_SITES= http://ftp.eu.mozilla.org/pub/mozilla.org/thunderbird/releases/${VER}/source/ \
|
|
|
|
http://ftp.mozilla.org/pub/thunderbird/releases/${VER}/source/
|
|
|
|
DISTFILES= thunderbird-${VER}-source.tar.bz2
|
2004-01-18 06:47:42 -05:00
|
|
|
|
|
|
|
MODULES= gcc3
|
2004-02-24 21:35:15 -05:00
|
|
|
MODGCC3_ARCHES= alpha
|
2004-01-18 06:47:42 -05:00
|
|
|
MODGCC3_LANGS= C++
|
|
|
|
BUILD_DEPENDS= :zip->=2.3:archivers/zip \
|
|
|
|
:pkgconfig-*:devel/pkgconfig
|
|
|
|
LIB_DEPENDS= gtk.1,gdk.1::x11/gtk+ \
|
|
|
|
glib.1,gmodule.1::devel/glib \
|
|
|
|
IDL.4::devel/ORBit \
|
|
|
|
jpeg.62::graphics/jpeg \
|
2005-01-04 16:27:27 -05:00
|
|
|
png.3::graphics/png \
|
|
|
|
esd.2::audio/esound
|
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
|
2005-01-04 15:59:16 -05: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}/nsprpub/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 \
|
|
|
|
--with-pthreads \
|
|
|
|
--enable-xft \
|
2004-02-15 14:41:58 -05:00
|
|
|
--enable-optimize=-Os \
|
|
|
|
--disable-debug \
|
|
|
|
--disable-tests \
|
|
|
|
--disable-pedantic \
|
|
|
|
--disable-installer
|
|
|
|
|
2004-12-27 16:21:38 -05:00
|
|
|
# from mail/config/mozconfig
|
|
|
|
CONFIGURE_ARGS+=--enable-crypto \
|
|
|
|
--disable-mathml \
|
2004-01-18 06:47:42 -05:00
|
|
|
--disable-activex \
|
|
|
|
--disable-activex-scripting \
|
2004-12-27 16:21:38 -05:00
|
|
|
--disable-tests \
|
2004-01-18 06:47:42 -05:00
|
|
|
--disable-oji \
|
2004-12-27 16:21:38 -05:00
|
|
|
--disable-plugins \
|
2004-01-18 06:47:42 -05:00
|
|
|
--disable-necko-disk-cache \
|
2004-12-27 16:21:38 -05:00
|
|
|
--enable-single-profile \
|
2004-01-18 06:47:42 -05:00
|
|
|
--disable-profilesharing \
|
2004-12-27 16:21:38 -05:00
|
|
|
--enable-extensions=wallet,spellcheck,xmlextras,webservices \
|
2004-01-18 06:47:42 -05:00
|
|
|
--enable-necko-protocols=http,file,jar,viewsource,res,data \
|
2004-12-27 16:21:38 -05:00
|
|
|
--enable-image-decoders=default,-xbm
|
2004-01-18 06:47:42 -05:00
|
|
|
|
|
|
|
CONFIGURE_ENV= MOZ_THUNDERBIRD=1 \
|
|
|
|
PKG_CONFIG_PATH="${LOCALBASE}/lib/pkgconfig:${X11BASE}/lib/pkgconfig"
|
|
|
|
MAKE_ENV= MOZ_THUNDERBIRD=1 \
|
|
|
|
LD_LIBRARY_PATH="${WRKSRC}/dist/bin"
|
|
|
|
|
2004-12-27 16:21:38 -05:00
|
|
|
MOB= ${WRKSRC}/dist/bin
|
2004-01-18 06:47:42 -05:00
|
|
|
MOZ= ${PREFIX}/mozilla-thunderbird
|
|
|
|
|
2004-02-29 15:51:32 -05:00
|
|
|
post-extract:
|
2004-01-18 06:47:42 -05:00
|
|
|
@cp ${FILESDIR}/xptc* ${WRKSRC}/xpcom/reflect/xptcall/src/md/unix/
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC}/nsprpub && ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF}
|
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' \
|
2004-01-18 06:47:42 -05:00
|
|
|
${WRKSRC}/mail/app/mozilla.in
|
|
|
|
|
|
|
|
do-install:
|
2004-12-27 16:21:38 -05:00
|
|
|
.for dir in chrome components defaults greprefs res
|
2004-01-18 06:47:42 -05:00
|
|
|
${INSTALL_DATA_DIR} ${MOZ}/${dir}
|
2004-12-27 16:21:38 -05:00
|
|
|
@cd ${MOB} && ${TAR} -chf - ${dir} | \
|
2004-01-18 06:47:42 -05:00
|
|
|
${TAR} -xf - -C ${MOZ}
|
|
|
|
.endfor
|
2004-12-27 16:21:38 -05:00
|
|
|
@cd ${MOB} && ${TAR} -chf - *.so.1.0 | \
|
2004-01-18 06:47:42 -05:00
|
|
|
${TAR} -xf - -C ${MOZ}
|
2004-02-15 14:41:58 -05:00
|
|
|
@chmod 444 ${MOZ}/*.so.1.0 ${MOZ}/components/*.so.1.0 ${MOZ}/components/*.js
|
2004-01-18 06:47:42 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE ${MOZ}
|
2004-02-29 15:51:32 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/mail/app/mozicon16.xpm ${WRKSRC}/mail/app/mozicon50.xpm ${MOZ}
|
2004-12-27 16:21:38 -05:00
|
|
|
${INSTALL_SCRIPT} ${MOB}/thunderbird ${PREFIX}/bin/mozilla-thunderbird
|
|
|
|
ln -f ${PREFIX}/bin/mozilla-thunderbird ${PREFIX}/bin/thunderbird
|
|
|
|
${INSTALL_SCRIPT} ${MOB}/run-mozilla.sh ${MOB}/thunderbird-config ${MOZ}
|
|
|
|
${INSTALL_PROGRAM} ${MOB}/regchrome ${MOB}/regxpcom ${MOB}/thunderbird-bin ${MOZ}
|
|
|
|
ln -f ${MOZ}/thunderbird-bin ${MOZ}/mozilla-thunderbird-bin
|
2004-01-18 06:47:42 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|