2004-05-06 10:39:49 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.10 2004/05/06 14:39:49 wilfried Exp $
|
2004-01-18 06:47:42 -05:00
|
|
|
|
2004-03-02 03:32:13 -05:00
|
|
|
ONLY_FOR_ARCHS= alpha i386 sparc sparc64 amd64
|
2004-01-18 06:47:42 -05:00
|
|
|
|
|
|
|
COMMENT= "redesign of the integrated Mozilla App-Suite mail component"
|
|
|
|
|
2004-02-15 14:41:58 -05:00
|
|
|
VER= 0.5
|
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-02-15 14:41:58 -05:00
|
|
|
MASTER_SITES= http://ftp.eu.mozilla.org/pub/mozilla.org/thunderbird/releases/${VER}/ \
|
|
|
|
http://ftp.mozilla.org/pub/thunderbird/releases/${VER}/
|
2004-02-29 15:51:32 -05:00
|
|
|
DISTFILES= thunderbird-${VER}-source.tar.gz
|
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 \
|
2004-02-29 15:51:32 -05:00
|
|
|
:bzip2-*:archivers/bzip2 \
|
2004-01-18 06:47:42 -05:00
|
|
|
: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 \
|
2004-02-23 12:58:56 -05:00
|
|
|
png.3::graphics/png
|
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
|
|
|
|
|
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
|
|
|
|
|
|
|
|
#
|
|
|
|
CONFIGURE_ARGS+=--disable-mathml \
|
2004-01-18 06:47:42 -05:00
|
|
|
--disable-installer \
|
|
|
|
--disable-activex \
|
|
|
|
--disable-activex-scripting \
|
|
|
|
--disable-oji \
|
|
|
|
--disable-necko-disk-cache \
|
|
|
|
--disable-profilesharing \
|
|
|
|
--enable-extensions=wallet,spellcheck,xmlextras \
|
|
|
|
--enable-necko-protocols=http,file,jar,viewsource,res,data \
|
|
|
|
--enable-image-decoders=png,gif,jpeg,bmp \
|
|
|
|
--enable-crypto \
|
|
|
|
--disable-ldap
|
|
|
|
|
2004-03-03 03:20:55 -05:00
|
|
|
# There is no problem with the propolice-enabled gcc3 on amd64 and sparc64,
|
2004-03-02 03:32:13 -05:00
|
|
|
# but it is reported to still be broken on others.
|
2004-03-03 03:20:55 -05:00
|
|
|
.if ${MACHINE_ARCH} != "amd64" && ${MACHINE_ARCH} != "sparc64"
|
2004-01-18 06:47:42 -05:00
|
|
|
CFLAGS+= -fno-stack-protector
|
2004-03-02 03:32:13 -05:00
|
|
|
.endif
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
MOB= ${WRKSRC}/dist
|
|
|
|
MOZ= ${PREFIX}/mozilla-thunderbird
|
|
|
|
|
2004-02-29 15:51:32 -05:00
|
|
|
do-extract:
|
|
|
|
@PATH=${PORTPATH}; set -e; cd ${WRKDIR}; \
|
|
|
|
${GZIP_CMD} -dc ${FULLDISTDIR}/${DISTFILES} | tar xf - ; \
|
|
|
|
${BZIP2} -dc ${WRKDIR}/mozilla-thunderbird/archives/thunderbird-${VER}-source.tar.bz2 | tar xf -; \
|
|
|
|
rm -rf ${WRKDIR}/mozilla-thunderbird
|
2004-02-15 14:41:58 -05:00
|
|
|
|
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-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-02-15 14:41:58 -05:00
|
|
|
.for dir in chrome components defaults res
|
2004-01-18 06:47:42 -05:00
|
|
|
${INSTALL_DATA_DIR} ${MOZ}/${dir}
|
|
|
|
@cd ${MOB}/bin && ${TAR} -chf - ${dir} | \
|
|
|
|
${TAR} -xf - -C ${MOZ}
|
|
|
|
.endfor
|
|
|
|
@cd ${MOB}/bin && ${TAR} -chf - *.so.1.0 | \
|
|
|
|
${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-01-18 06:47:42 -05:00
|
|
|
${INSTALL_SCRIPT} ${MOB}/bin/thunderbird ${PREFIX}/bin/mozilla-thunderbird
|
|
|
|
ln ${PREFIX}/bin/mozilla-thunderbird ${PREFIX}/bin/thunderbird
|
|
|
|
${INSTALL_SCRIPT} ${MOB}/bin/run-mozilla.sh ${MOZ}
|
|
|
|
${INSTALL_PROGRAM} ${MOB}/bin/regchrome ${MOB}/bin/regxpcom ${MOB}/bin/thunderbird-bin ${MOZ}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|