openbsd-ports/mail/mozilla-thunderbird/Makefile

132 lines
4.5 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.45 2006/11/10 14:16:41 wilfried Exp $
ONLY_FOR_ARCHS= alpha amd64 i386 powerpc sparc sparc64
COMMENT= "redesign of the integrated Mozilla App-Suite mail component"
VER= 1.5.0.8
DISTNAME= mozilla
PKGNAME= mozilla-thunderbird-${VER}
SO_VERSION= 10.0
# NOTE: Must bump minor version if any shlib's are removed from the
# components dir to avoid pkg_add -r issues.
2006-01-23 07:34:06 -05:00
.for _lib in accessibility appcomps auth autoconfig caps chrome commandlines \
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 nspr4 nss3 nssckbi pipboot \
pipnss pippki plc4 plds4 pref prldap50 rdf remoteservice smime3 \
softokn3 spellchecker ssl3 system-pref toolkitcomps txmgr uconv \
universalchardet wallet walletviewers webbrwsr websrvcs widget_gtk2 \
xmlextras xpcom xpcom_compat xpcom_compat_c xpcom_core xpconnect \
xpinstall xpistub
SHARED_LIBS+= ${_lib} ${SO_VERSION}
.endfor
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
2006-02-09 03:34:07 -05:00
WANTLIB= X11 Xext Xft Xrender Xinerama Xt c fontconfig freetype m pthread z \
2006-09-18 07:50:39 -04:00
atk-1.0 cairo glib-2.0 gmodule-2.0 gobject-2.0 \
jpeg pango-1.0 pangoft2-1.0 pangocairo-1.0 png
2006-01-23 07:34:06 -05:00
WANTLIB+= stdc++
2004-12-27 16:21:38 -05:00
MASTER_SITES= http://ftp.eu.mozilla.org/pub/mozilla.org/thunderbird/releases/${VER}/source/ \
2005-09-09 12:22:28 -04:00
http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/${VER}/source/
2004-12-27 16:21:38 -05:00
DISTFILES= thunderbird-${VER}-source.tar.bz2
MODULES= gettext
RUN_DEPENDS= :esound-*:audio/esound
BUILD_DEPENDS= :libIDL-*:devel/libIDL \
:zip->=2.3:archivers/zip \
:pkgconfig-*:devel/pkgconfig
2006-09-18 07:50:39 -04:00
LIB_DEPENDS= gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2
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 \
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 \
--enable-canvas
2004-02-15 14:41:58 -05:00
2004-12-27 16:21:38 -05:00
# from mail/config/mozconfig
2006-01-23 07:34:06 -05:00
CONFIGURE_ARGS+=--enable-application=mail
MAKE_ENV= MOZ_CO_PROJECT=mail \
LD_LIBRARY_PATH="${WRKSRC}/dist/bin" \
BUILD_OFFICIAL=1 \
MOZILLA_OFFICIAL=1 \
SO_VERSION="${SO_VERSION}"
2006-01-23 07:34:06 -05:00
CONFIGURE_ENV= ${MAKE_ENV} \
PKG_CONFIG_PATH="${LOCALBASE}/lib/pkgconfig:${X11BASE}/lib/pkgconfig" \
2004-12-27 16:21:38 -05:00
MOB= ${WRKSRC}/dist/bin
MOZ= ${PREFIX}/mozilla-thunderbird
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:
2006-01-23 07:34:06 -05:00
.for dir in chrome components defaults extensions 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
chown -R ${SHAREOWN}:${SHAREGRP} ${MOZ}
${INSTALL_DATA} ${WRKSRC}/LICENSE ${MOZ}
2006-01-23 07:34:06 -05:00
2004-02-29 15:51:32 -05:00
${INSTALL_DATA} ${WRKSRC}/mail/app/mozicon16.xpm ${WRKSRC}/mail/app/mozicon50.xpm ${MOZ}
2006-01-23 07:34:06 -05:00
${INSTALL_SCRIPT} ${MOB}/thunderbird ${MOB}/thunderbird-config ${PREFIX}/bin/
ln -f ${PREFIX}/bin/thunderbird ${PREFIX}/bin/mozilla-thunderbird
${INSTALL_SCRIPT} ${MOB}/run-mozilla.sh ${MOZ}
2006-01-23 07:34:06 -05: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
.include <bsd.port.mk>