pkgsrc/mail/evolution/Makefile
drochner ba22a7f045 apply a patch from evution CVS:
2005-01-20  Not Zed  <NotZed@Ximian.com>
* camel-lock-helper.c (main): since malloc(MAXINT+1) returns a
  valid pointer, validate the length of the path before using it.
  set maximum path to 65000 characters.  Spotted by Max Vozeler
    <max@hinterhof.net>

This fixes the security vulnerability refered to as CAN-2005-0102.
bump PKGREVISION
2005-01-25 15:23:46 +00:00

137 lines
4.7 KiB
Makefile

# $NetBSD: Makefile,v 1.73 2005/01/25 15:23:46 drochner Exp $
DISTNAME= evolution-2.0.3
PKGREVISION= 1
CATEGORIES= mail time gnome
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/evolution/2.0/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= rh@NetBSD.org
HOMEPAGE= http://www.gnome.org/projects/evolution/
COMMENT= GNOME mailer, calendar, contact manager, and communications tool
DEPENDS+= psmisc-[0-9]*:../../sysutils/psmisc
BUILD_USES_MSGFMT= YES
BUILDLINK_DEPENDS.gal2+= gal2>=2.2.4
BUILDLINK_DEPENDS.glib2+= glib2>=2.4.0nb2
BUILDLINK_DEPENDS.gtkhtml3+= gtkhtml3>=3.2.4
BUILDLINK_DEPENDS.evolution-data-server+= evolution-data-server>=1.0.3
PKG_OPTIONS_VAR= PKG_OPTIONS.evolution
PKG_SUPPORTED_OPTIONS= ipv6 krb4 krb5 ssl
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mssl) && !empty(PKG_OPTIONS:Mkrb[45])
# If Kerberos is enabled, the libcrypto library is linked in, which causes
# function name conflicts with libsoftokn3 provided by Mozilla NSS. These
# cause runtime crashes, so don't allow these options to be specified
# together.
PKG_FAIL_REASON= "Kerberos support conflicts with SSL"
.endif
GNU_CONFIGURE= YES
USE_DIRS+= gnome2-1.5
USE_GNU_TOOLS+= make yacc
USE_X11= YES
USE_LIBTOOL= YES
USE_BUILDLINK3= YES
USE_PKGLOCALEDIR= YES
REPLACE_PERL+= addressbook/tools/csv2vcard
REPLACE_PERL+= addressbook/tools/evolution-addressbook-clean
REPLACE_PERL+= addressbook/tools/evolution-addressbook-clean.in
CPPFLAGS+= -I/usr/include/gssapi
CPPFLAGS+= -I/usr/include/krb5
CONFIGURE_ARGS+= --disable-gtk-doc
CONFIGURE_ARGS+= --with-openldap
CONFIGURE_ARGS+= --without-static-ldap
CONFIGURE_ARGS+= --enable-openssl=no
CONFIGURE_ARGS+= --enable-pilot-conduits=no
CONFIGURE_ARGS+= --enable-smime=no
CONFIGURE_ARGS+= --with-krb4=/usr
CONFIGURE_ARGS+= --with-krb5=/usr
CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc
.if defined(PKGREVISION)
CONFIGURE_ARGS+= --with-sub-version=nb${PKGREVISION}
.endif
.if !empty(PKG_OPTIONS:Mipv6)
CONFIGURE_ARGS+= --enable-ipv6=yes
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
.if !empty(PKG_OPTIONS:Mkrb4)
CONFIGURE_ARGS+= --with-krb4
.else
CONFIGURE_ARGS+= --without-krb4
.endif
.if !empty(PKG_OPTIONS:Mkrb5)
CONFIGURE_ARGS+= --with-krb5
. include "../../mk/krb5.buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-krb5
.endif
.if !empty(PKG_OPTIONS:Mssl)
CONFIGURE_ARGS+= --enable-nss=yes
# XXX We should have a standalone NSS package and use it here, instead of
# depending on the whole mozilla-gtk2...
BUILDLINK_DEPENDS.mozilla-gtk2+= mozilla-gtk2>=1.7.3nb1
# XXX Workaround for the following problem: addressbook/util/libeabutil.la
# is compiled as a static library only which uses the NSS stuff. When other
# parts of the program use this .la archive, they get the right -L flags
# (from the dependency_libs variable) but not the rpaths. buildlink3 should
# add rpath flags to the dependency_libs, but there is an strange comment
# in the wrapper saying that it shouldn't.
LDFLAGS+= ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.mozilla-gtk2}/lib/mozilla-gtk2
. include "../../www/mozilla-gtk2/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-nss
.endif
PKGCONFIG_OVERRIDE= camel.pc.in
PKGCONFIG_OVERRIDE+= evolution-shell.pc.in
GCONF2_SCHEMAS= apps_evolution_addressbook-2.0.schemas
GCONF2_SCHEMAS+= apps_evolution_calendar-2.0.schemas
GCONF2_SCHEMAS+= apps_evolution_shell-2.0.schemas
GCONF2_SCHEMAS+= evolution-mail-2.0.schemas
BUILDLINK_TRANSFORM+= rm:-DG_DISABLE_DEPRECATED
BUILDLINK_TRANSFORM+= rm:-DGTK_DISABLE_DEPRECATED
.if !exists(/usr/include/semaphore.h)
LDFLAGS+= -lsemaphore
.include "../../devel/pthread-sem/buildlink3.mk"
.endif
.include "../../databases/openldap/buildlink3.mk"
.include "../../devel/atk/buildlink3.mk"
.include "../../devel/GConf2/schemas.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/gal2/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/libbonobo/buildlink3.mk"
.include "../../devel/libbonoboui/buildlink3.mk"
.include "../../devel/libglade2/buildlink3.mk"
.include "../../devel/libgnome/buildlink3.mk"
.include "../../devel/libgnomeui/buildlink3.mk"
.include "../../devel/pkgconfig/buildlink3.mk"
.include "../../graphics/gnome-icon-theme/buildlink3.mk"
.include "../../graphics/libgnomecanvas/buildlink3.mk"
.include "../../mail/evolution-data-server/buildlink3.mk"
.include "../../net/libsoup-devel/buildlink3.mk"
.include "../../print/libgnomeprint/buildlink3.mk"
.include "../../print/libgnomeprintui/buildlink3.mk"
.include "../../sysutils/gnome-vfs2/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/intltool/buildlink3.mk"
.include "../../textproc/scrollkeeper/omf.mk"
.include "../../www/gtkhtml3/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"