2009-10-19 16:31:23 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.88 2009/10/19 20:31:23 jasper Exp $
|
2009-03-22 12:00:28 -04:00
|
|
|
|
|
|
|
COMMENT-main= integrated email and PIM software for GNOME
|
|
|
|
COMMENT-plugins= additionnal plugins for evolution
|
2002-05-31 07:49:40 -04:00
|
|
|
|
2008-11-23 06:37:06 -05:00
|
|
|
# NOTE: when major version changes, increment EVO_VERSION accordingly
|
2009-01-12 11:13:42 -05:00
|
|
|
# in mail/evolution-plugin-rss/Makefile (and bump).
|
2007-10-28 16:56:46 -04:00
|
|
|
GNOME_PROJECT= evolution
|
2009-10-19 16:31:23 -04:00
|
|
|
GNOME_VERSION= 2.28.1
|
2009-01-20 18:13:30 -05:00
|
|
|
|
2009-08-26 11:38:18 -04:00
|
|
|
# -plugins depends on the exact version of -main, so whenever -main is
|
|
|
|
# bumped, -plugins needs a bump too
|
2009-10-13 18:07:04 -04:00
|
|
|
PKGNAME-main= ${DISTNAME}
|
|
|
|
PKGNAME-plugins= evolution-plugins-${GNOME_VERSION}
|
2009-03-22 12:00:28 -04:00
|
|
|
|
|
|
|
CATEGORIES= mail
|
2002-05-31 07:49:40 -04:00
|
|
|
|
2005-07-27 10:06:31 -04:00
|
|
|
HOMEPAGE= http://www.gnome.org/projects/evolution/
|
2002-05-31 07:49:40 -04:00
|
|
|
|
2009-02-15 12:33:52 -05:00
|
|
|
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>, \
|
|
|
|
Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
2009-10-13 18:07:04 -04:00
|
|
|
SO_VERSION= 5.0
|
2008-08-21 18:50:21 -04:00
|
|
|
# NOTE: Must bump minor version if any shlib's are removed from the
|
|
|
|
# components dir to avoid pkg_add -r issues.
|
2007-11-21 11:18:15 -05:00
|
|
|
.for _lib in eutil econduit evolution-a11y evolution-calendar-a11y \
|
|
|
|
evolution-widgets-a11y evolution-addressbook-a11y etable etext emiscwidgets \
|
|
|
|
efilterbar etimezonedialog menus eshell filter essmime evolution-smime eabutil \
|
|
|
|
evolution-addressbook-importers econtacteditor econtactlisteditor \
|
2009-10-13 18:07:04 -04:00
|
|
|
evolution-calendar-importers evolution-mail-importers evolution-cal-shared \
|
|
|
|
evolution-mail-shared
|
2007-06-02 07:32:11 -04:00
|
|
|
SHARED_LIBS+= ${_lib} ${SO_VERSION}
|
|
|
|
.endfor
|
2005-12-28 03:02:16 -05:00
|
|
|
|
2008-11-21 12:28:07 -05:00
|
|
|
# LGPLv2+
|
2002-05-31 07:49:40 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2007-11-21 11:18:15 -05:00
|
|
|
|
2009-10-13 18:07:04 -04:00
|
|
|
WANTLIB += ICE ORBit-2 ORBitCosNaming-2 SM X11 Xau Xcomposite
|
|
|
|
WANTLIB += Xcursor Xdamage Xdmcp Xext Xfixes Xi Xinerama Xrandr
|
|
|
|
WANTLIB += Xrender art_lgpl_2 asn1 atk-1.0 avahi-client avahi-common
|
|
|
|
WANTLIB += avahi-glib bonobo-2 bonobo-activation bonoboui-2 c
|
|
|
|
WANTLIB += cairo com_err crypto dbus-1 dbus-glib-1 enchant execinfo
|
|
|
|
WANTLIB += expat fontconfig freetype gailutil gcrypt gdk-x11-2.0
|
|
|
|
WANTLIB += gdk_pixbuf-2.0 gio-2.0 glade-2.0 glib-2.0 glitz gmodule-2.0
|
|
|
|
WANTLIB += gnome-2 gnome-keyring gnomecanvas-2 gnomevfs-2 gnutls
|
|
|
|
WANTLIB += gobject-2.0 gpg-error gssapi gthread-2.0 gtk-x11-2.0
|
|
|
|
WANTLIB += ical krb5 m nspr4 pango-1.0 pangocairo-1.0 pangoft2-1.0
|
|
|
|
WANTLIB += pcre pixman-1 plc4 plds4 png popt pthread pthread-stubs
|
|
|
|
WANTLIB += sqlite3 ssl startup-notification-1 stdc++ tasn1 util
|
|
|
|
WANTLIB += xcb xcb-atom xcb-aux xcb-event xml2 z
|
|
|
|
|
|
|
|
WANTLIB-main= ${WANTLIB}
|
|
|
|
WANTLIB-main += db icalss icalvcal
|
|
|
|
|
|
|
|
WANTLIB-plugins= ${WANTLIB}
|
|
|
|
WANTLIB-plugins += camel-1.2 camel-provider-1.2 ebook-1.2 ecal-1.2 edataserver-1.2
|
|
|
|
WANTLIB-plugins += edataserverui-1.2 gnome-desktop-2 gnomeui-2 gtkhtml-3.14
|
|
|
|
WANTLIB-plugins += gtkhtml-editor nss3 smime3 softokn3 soup-2.4 ssl3
|
2009-03-22 12:00:28 -04:00
|
|
|
|
|
|
|
MULTI_PACKAGES= -main -plugins
|
2007-06-02 07:32:11 -04:00
|
|
|
|
2007-10-28 16:56:46 -04:00
|
|
|
MODULES= devel/gettext \
|
2009-06-07 01:59:47 -04:00
|
|
|
x11/gnome \
|
|
|
|
devel/gconf2
|
2002-05-31 07:49:40 -04:00
|
|
|
|
2007-11-21 11:18:15 -05:00
|
|
|
BUILD_DEPENDS= ::devel/bison \
|
2009-03-22 12:00:28 -04:00
|
|
|
::misc/shared-mime-info \
|
2009-03-06 05:42:48 -05:00
|
|
|
::x11/gnome/icon-theme \
|
2009-03-22 12:00:28 -04:00
|
|
|
::devel/iso-codes
|
|
|
|
|
|
|
|
RUN_DEPENDS-main= ${RUN_DEPENDS} \
|
|
|
|
::x11/hicolor-icon-theme \
|
|
|
|
::x11/gnome/icon-theme
|
2009-06-10 09:31:56 -04:00
|
|
|
LIB_DEPENDS-main= ${LIB_DEPENDS} \
|
2009-10-13 18:07:04 -04:00
|
|
|
pst::converters/libpst \
|
|
|
|
camel-1.2,camel-provider-1.2,ebackend-1.2,ebook-1.2,ecal-1.2,edataserver-1.2,edataserverui-1.2,egroupwise-1.2,gdata-1.2,gdata-google-1.2:evolution-data-server->=2.24.3:databases/evolution-data-server \
|
|
|
|
ldap.>=7::databases/openldap \
|
2008-06-02 12:49:56 -04:00
|
|
|
notify.>=2::devel/libnotify \
|
|
|
|
soup-2.4::devel/libsoup \
|
2007-06-27 04:27:40 -04:00
|
|
|
nss3.>=19,smime3.>=19,softokn3.>=19,ssl3.>=19:nss->=3.11.4p1:security/nss \
|
2009-10-13 18:07:04 -04:00
|
|
|
gnome-desktop-2::x11/gnome/desktop \
|
|
|
|
gnomeui-2::x11/gnome/libgnomeui \
|
2009-03-22 12:00:28 -04:00
|
|
|
gtkhtml-3.14.>=1.0,gtkhtml-editor::www/gtkhtml3
|
|
|
|
|
2009-06-10 09:31:56 -04:00
|
|
|
LIB_DEPENDS-plugins= ${LIB_DEPENDS} \
|
2009-03-22 12:00:28 -04:00
|
|
|
gstreamer-0.10::multimedia/gstreamer-0.10/core \
|
2009-10-13 18:07:04 -04:00
|
|
|
lib/evolution/${R}/emiscwidgets,lib/evolution/${R}/eutil,lib/evolution/${R}/evolution-mail-shared:${PKGNAME-main}:mail/evolution,-main
|
2009-03-22 12:00:28 -04:00
|
|
|
# needed for the audio-inline plugin
|
|
|
|
RUN_DEPENDS-plugins= ::multimedia/gstreamer-0.10/plugins-good
|
2003-04-10 11:59:49 -04:00
|
|
|
|
2002-05-31 07:49:40 -04:00
|
|
|
USE_X11= Yes
|
2008-05-26 12:29:26 -04:00
|
|
|
MODGNOME_HELP_FILES= Yes
|
2007-10-28 16:56:46 -04:00
|
|
|
DESKTOP_FILES= Yes
|
2009-06-07 01:59:47 -04:00
|
|
|
MODGCONF2_SCHEMAS_DIR= evolution
|
2009-03-22 12:00:28 -04:00
|
|
|
|
2002-05-31 07:49:40 -04:00
|
|
|
YACC= bison
|
2009-03-22 12:00:28 -04:00
|
|
|
|
2005-09-08 00:52:12 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
2007-06-02 07:32:11 -04:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
2007-11-21 11:18:15 -05:00
|
|
|
--disable-pilot-conduits \
|
2007-06-02 07:32:11 -04:00
|
|
|
--enable-nss=yes \
|
|
|
|
--enable-smime=yes \
|
|
|
|
--enable-default-binary \
|
2007-11-21 11:18:15 -05:00
|
|
|
--enable-exchange \
|
2009-03-06 05:42:48 -05:00
|
|
|
--enable-plugins=all \
|
2008-11-21 12:28:07 -05:00
|
|
|
--disable-mono \
|
|
|
|
--with-openldap="${LOCALBASE}" \
|
2007-06-02 07:32:11 -04:00
|
|
|
--with-sub-version=" OpenBSD/Ports" \
|
|
|
|
--with-krb5=/usr \
|
2009-10-13 18:07:04 -04:00
|
|
|
--with-krb5-includes=/usr/include/kerberosV \
|
|
|
|
--disable-nm \
|
|
|
|
--disable-python
|
2002-05-31 07:49:40 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2009-06-15 02:27:10 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -Wl,-rpath,${TRUEPREFIX}/lib/evolution/${R}/components:${TRUEPREFIX}/lib/evolution/${R}:${TRUEPREFIX}/lib"
|
2002-05-31 07:49:40 -04:00
|
|
|
|
2009-01-31 03:32:35 -05:00
|
|
|
# Only get the first x.y which is needed in the PLIST.
|
|
|
|
R= ${GNOME_VERSION:C/^([0-9]+\.[0-9]+).*/\1/}
|
2007-10-28 16:56:46 -04:00
|
|
|
SUBST_VARS= R
|
2002-09-14 00:18:35 -04:00
|
|
|
|
2009-06-15 02:27:10 -04:00
|
|
|
# XXX ltasneededhack in bsd.gnome.mk from FreeBSD ports
|
|
|
|
# (+patch-plugins_exchange-operations_Makefile_in)
|
|
|
|
LIBTOOL= ${WRKDIR}/bin/libtool
|
|
|
|
post-patch:
|
|
|
|
sed '/^archive_cmds=/s/-shared/-shared -Wl,--as-needed/ ; \
|
|
|
|
/^archive_expsym_cmds=/s/-shared/-shared -Wl,--as-needed/' \
|
|
|
|
${LOCALBASE}/bin/libtool > ${WRKDIR}/bin/libtool
|
|
|
|
chmod +x ${WRKDIR}/bin/libtool
|
|
|
|
|
|
|
|
|
2009-03-22 12:00:28 -04:00
|
|
|
pre-configure:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/plugins/bogo-junk-plugin/bf-junk-filter.c \
|
|
|
|
${WRKSRC}/plugins/sa-junk-plugin/em-junk-filter.c
|
|
|
|
|
2002-05-31 07:49:40 -04:00
|
|
|
post-install:
|
2007-06-02 07:32:11 -04:00
|
|
|
find ${PREFIX}/share/evolution/${R}/default -perm 444 -exec chmod 644 {} \;
|
2002-05-31 07:49:40 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|