2004-10-09 10:45:19 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.15 2004/10/09 14:45:19 sturm Exp $
|
2002-05-31 07:49:40 -04:00
|
|
|
|
|
|
|
COMMENT= "integrated email and PIM software for GNOME"
|
2002-09-14 00:18:35 -04:00
|
|
|
COMMENT-devguide= "Evolution Developer's Guide"
|
2002-05-31 07:49:40 -04:00
|
|
|
|
2003-01-03 16:53:07 -05:00
|
|
|
V= 1.2
|
2003-04-10 11:59:49 -04:00
|
|
|
VERSION= ${V}.4
|
2002-09-14 00:18:35 -04:00
|
|
|
DISTNAME= evolution-${VERSION}
|
|
|
|
FULLPKGNAME-devguide= evolution-devguide-${VERSION}
|
2002-05-31 07:49:40 -04:00
|
|
|
CATEGORIES= mail x11
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.ximian.com/products/ximian_evolution/
|
|
|
|
|
2002-09-14 00:18:35 -04:00
|
|
|
MAINTAINER= Marc Matteo <marcm@openbsd.org>
|
2002-05-31 07:49:40 -04:00
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2003-01-03 16:53:07 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME:S@$@sources/evolution/${V}/@}
|
2003-04-10 11:59:49 -04:00
|
|
|
MASTER_SITES0= ${HOMEPAGE}/update/snapshot/
|
|
|
|
|
|
|
|
DISTFILES= ${DISTNAME}.tar.gz \
|
|
|
|
db-3.1.17.tar.gz:0
|
2002-05-31 07:49:40 -04:00
|
|
|
|
2004-08-10 05:14:47 -04:00
|
|
|
MODULES= devel/gettext
|
2002-05-31 07:49:40 -04:00
|
|
|
|
2002-10-18 16:53:01 -04:00
|
|
|
BUILD_DEPENDS= :bison-*:devel/bison \
|
2004-10-09 10:45:19 -04:00
|
|
|
:scrollkeeper->=0.3.12:textproc/scrollkeeper \
|
|
|
|
:pkgconfig-*:devel/pkgconfig
|
2003-07-12 02:27:12 -04:00
|
|
|
RUN_DEPENDS= :scrollkeeper->=0.3.12:textproc/scrollkeeper
|
2002-05-31 07:49:40 -04:00
|
|
|
LIB_DEPENDS= bonobo.2,bonobo-print.2,bonobox.2::x11/gnome/bonobo \
|
|
|
|
bonobo_conf::x11/gnome/bonobo-conf \
|
|
|
|
glade.5,glade-gnome.5::devel/libglade,gnome \
|
|
|
|
gnomecanvaspixbuf.1::graphics/gdk-pixbuf,-gnome \
|
2003-01-03 16:53:07 -05:00
|
|
|
gtkhtml-1.1.3.2::www/gtkhtml \
|
|
|
|
soup.5::devel/soup
|
2002-05-31 07:49:40 -04:00
|
|
|
|
2003-04-10 11:59:49 -04:00
|
|
|
DB3_WRKDIST= ${WRKDIR}/db-3.1.17
|
|
|
|
DB3_WRKBUILD= ${DB3_WRKDIST}/build_unix
|
|
|
|
DB3_CONFIGURE_SCRIPT= ../dist/configure
|
|
|
|
|
2002-05-31 07:49:40 -04:00
|
|
|
USE_X11= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
YACC= bison
|
|
|
|
CONFIGURE_STYLE= autoconf
|
2003-01-03 16:53:07 -05:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
2003-04-10 11:59:49 -04:00
|
|
|
CONFIGURE_ARGS+= --with-db3-includes=${DB3_WRKBUILD}
|
|
|
|
CONFIGURE_ARGS+= --with-db3-libs=${DB3_WRKBUILD}
|
2003-01-03 16:53:07 -05:00
|
|
|
CONFIGURE_ARGS+= --with-krb5=/usr
|
2003-04-10 11:59:49 -04:00
|
|
|
#CONFIGURE_ARGS+= --enable-ipv6
|
2003-01-03 16:53:07 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-openssl
|
|
|
|
CONFIGURE_ARGS+= --disable-pilot-conduits
|
|
|
|
CONFIGURE_ARGS+= --disable-gtk-doc
|
2002-05-31 07:49:40 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
|
|
|
FLAVORS= ldap
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mldap}
|
|
|
|
LIB_DEPENDS+= ldap.2,lber.2::databases/openldap
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-openldap=${LOCALBASE}
|
2004-07-05 18:09:52 -04:00
|
|
|
.if ${MACHINE_ARCH} != "m88k" && ${MACHINE_ARCH} != "vax"
|
2002-05-31 07:49:40 -04:00
|
|
|
CONFIGURE_ARGS+= --with-static-ldap=yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-static-ldap=no
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2002-09-14 00:18:35 -04:00
|
|
|
MULTI_PACKAGES= -devguide
|
|
|
|
SUBPACKAGE?=
|
|
|
|
|
|
|
|
.if defined(PACKAGING)
|
|
|
|
. if ${SUBPACKAGE} == "-devguide"
|
|
|
|
RUN_DEPENDS=
|
|
|
|
LIB_DEPENDS=
|
2004-02-04 02:39:18 -05:00
|
|
|
PKG_ARCH= *
|
2002-09-14 00:18:35 -04:00
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
2003-04-10 11:59:49 -04:00
|
|
|
post-patch:
|
|
|
|
@cd ${DB3_WRKDIST} && patch -s < ${PATCHDIR}/db3-patch-dist_configure
|
|
|
|
@ln -s /usr/bin/true ${WRKDIR}/bin/scrollkeeper-update
|
|
|
|
|
2002-09-14 00:18:35 -04:00
|
|
|
pre-configure:
|
|
|
|
@if pkg dependencies check evolution-\*; then \
|
2003-01-03 16:53:07 -05:00
|
|
|
if pkg dependencies check ${DISTNAME}; then \
|
|
|
|
:; \
|
|
|
|
else \
|
|
|
|
echo 1>&2 "+-------------------"; \
|
|
|
|
echo 1>&2 "| Error: you must remove the existing evolution installation"; \
|
|
|
|
echo 1>&2 "| before compiling this version. To fully remove run"; \
|
|
|
|
echo 1>&2 "| these commands as user root"; \
|
|
|
|
echo 1>&2 "|"; \
|
|
|
|
echo 1>&2 "| pkg_delete -f `pkg_info -e 'evolution-*'`"; \
|
|
|
|
echo 1>&2 "|"; \
|
|
|
|
echo 1>&2 "+-------------------"; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
2002-09-14 00:18:35 -04:00
|
|
|
fi
|
2003-04-10 11:59:49 -04:00
|
|
|
@cd ${DB3_WRKBUILD} && ./${DB3_CONFIGURE_SCRIPT} ${DB3_CONFIGURE_ARGS}
|
|
|
|
@cd ${DB3_WRKBUILD} && exec ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKEFILE} ${ALL_TARGET}
|
2002-09-14 00:18:35 -04:00
|
|
|
|
2002-05-31 07:49:40 -04:00
|
|
|
post-install:
|
|
|
|
find ${PREFIX}/share/evolution/default_user -perm 444 -exec chmod 644 {} \;
|
2002-09-26 04:07:10 -04:00
|
|
|
chmod u-s ${PREFIX}/sbin/camel-lock-helper
|
2002-05-31 07:49:40 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|