openbsd-ports/mail/mozilla-thunderbird/Makefile

138 lines
4.5 KiB
Makefile
Raw Normal View History

2005-07-23 09:56:34 -04:00
# $OpenBSD: Makefile,v 1.23 2005/07/23 13:56:34 wilfried Exp $
ONLY_FOR_ARCHS= alpha amd64 i386 powerpc sparc sparc64
COMMENT= "redesign of the integrated Mozilla App-Suite mail component"
2005-07-23 09:56:34 -04:00
VER= 1.0.6
DISTNAME= mozilla
2005-07-23 09:56:34 -04:00
PKGNAME= mozilla-thunderbird-${VER}
SO_VERSION= 2.0
# NOTE: Must bump minor version if any shlib's are removed from the
# components dir to avoid pkg_add -r issues.
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 \
m pthread z
. if empty(MACHINE_ARCH:Malpha)
WANTLIB+= stdc++
. endif
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
MODULES= gcc3 devel/gettext
MODGCC3_ARCHES= alpha
MODGCC3_LANGS= C++
RUN_DEPENDS= :esound-*:audio/esound
BUILD_DEPENDS= :ORBit-*:devel/ORBit \
:zip->=2.3:archivers/zip \
:pkgconfig-*:devel/pkgconfig
LIB_DEPENDS= gtk.1,gdk.1::x11/gtk+ \
glib.1,gmodule.1::devel/glib \
jpeg.62::graphics/jpeg \
png.3::graphics/png
VMEM_WARNING= Yes
USE_X11= Yes
USE_GMAKE= Yes
# Regression tests are too hard to adapt to run here
NO_REGRESS= Yes
SUBST_VARS= LOCALBASE SO_VERSION
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
AUTOCONF_VERSION= 2.13
CONFIGURE_STYLE= autoconf no-autoheader
2004-02-15 14:41:58 -05:00
CONFIGURE_ARGS= --with-system-jpeg=${LOCALBASE} \
--with-system-png=${LOCALBASE} \
--with-system-zlib=/usr/lib \
--with-pthreads \
2005-01-10 05:17:08 -05:00
--without-system-nspr \
--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 \
--disable-activex \
--disable-activex-scripting \
2004-12-27 16:21:38 -05:00
--disable-tests \
--disable-oji \
2004-12-27 16:21:38 -05:00
--disable-plugins \
--disable-necko-disk-cache \
2004-12-27 16:21:38 -05:00
--enable-single-profile \
--disable-profilesharing \
2004-12-27 16:21:38 -05:00
--enable-extensions=wallet,spellcheck,xmlextras,webservices \
--enable-necko-protocols=http,file,jar,viewsource,res,data \
2004-12-27 16:21:38 -05:00
--enable-image-decoders=default,-xbm
CONFIGURE_ENV= MOZ_THUNDERBIRD=1 \
PKG_CONFIG_PATH="${LOCALBASE}/lib/pkgconfig:${X11BASE}/lib/pkgconfig" \
BUILD_OFFICIAL=1 \
MOZILLA_OFFICIAL=1 \
SO_VERSION="${SO_VERSION}"
MAKE_ENV= MOZ_THUNDERBIRD=1 \
LD_LIBRARY_PATH="${WRKSRC}/dist/bin" \
BUILD_OFFICIAL=1 \
MOZILLA_OFFICIAL=1 \
SO_VERSION="${SO_VERSION}"
2004-12-27 16:21:38 -05:00
MOB= ${WRKSRC}/dist/bin
MOZ= ${PREFIX}/mozilla-thunderbird
MAGIC= {972ce4c6-7e08-4474-a285-3208198ce6fd}
2004-02-29 15:51:32 -05:00
post-extract:
@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}
@perl -pi -e 's|_LOCALBASE_|${LOCALBASE}|g; s|_X11BASE_|${X11BASE}|g' \
${WRKSRC}/mail/app/mozilla.in
@perl -pi -e 's|_SO_VERSION_|${SO_VERSION}|g' \
${WRKSRC}/nsprpub/pr/include/md/_openbsd.h \
${WRKSRC}/xpcom/components/nsNativeComponentLoader.cpp
do-install:
2004-12-27 16:21:38 -05:00
.for dir in chrome components defaults greprefs res
${INSTALL_DATA_DIR} ${MOZ}/${dir}
2004-12-27 16:21:38 -05:00
@cd ${MOB} && ${TAR} -chf - ${dir} | \
${TAR} -xf - -C ${MOZ}
.endfor
@cd ${MOB} && ${TAR} -chf - *.so.?.? | \
${TAR} -xf - -C ${MOZ}
@chmod 444 ${MOZ}/*.so.?.? ${MOZ}/components/*.so.?.? ${MOZ}/components/*.js
${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}/thunderbird-config ${PREFIX}/bin/
${INSTALL_SCRIPT} ${MOB}/run-mozilla.sh ${MOZ}
${INSTALL_PROGRAM} ${MOB}/regchrome ${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
${INSTALL_DATA_DIR} ${MOZ}/extensions
${INSTALL_DATA} ${FILESDIR}/Extensions.rdf ${MOZ}/extensions/
${INSTALL_DATA_DIR} ${MOZ}/extensions/${MAGIC}
${INSTALL_DATA} ${MOZ}/defaults/profile/extensions/installed-extensions.txt ${MOZ}/extensions/installed-extensions-processed.txt
${INSTALL_DATA} ${MOZ}/defaults/profile/extensions/${MAGIC}/install.rdf ${MOZ}/extensions/${MAGIC}/
.include <bsd.port.mk>