# New ports collection makefile for: evolution # Date created: 28th June 2000 # Whom: Ade Lovett # # $FreeBSD$ # PORTNAME= evolution PORTVERSION= 1.0.8 CATEGORIES= mail gnome MASTER_SITES= ${MASTER_SITE_GNOME} \ http://people.FreeBSD.org/~sobomax/:local # ${MASTER_SITE_LOCAL:S,$,:local,} MASTER_SITE_SUBDIR= sources/evolution/1.0 \ sobomax/:local DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \ db-3.1.17${EXTRACT_SUFX}:local DIST_SUBDIR= gnome PATCH_SITES= ${MASTER_SITE_LOCAL} PATCH_SITE_SUBDIR= sobomax PATCHFILES= evolution-1.0.2-reply-to.diff.gz MAINTAINER= gnome@FreeBSD.org LIB_DEPENDS= bonobo_conf.0:${PORTSDIR}/devel/bonobo-conf \ nss3.1:${PORTSDIR}/security/nss .if defined(WITH_LDAP) LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap2 .endif RUN_DEPENDS= gnome-spell-component:${PORTSDIR}/textproc/gnomespell .if !defined(WITHOUT_PILOT) BUILD_DEPENDS+= ${X11BASE}/lib/gnome-pilot/conduits/libemail_conduit.so:${PORTSDIR}/palm/gnomepilot-conduits RUN_DEPENDS+= ${X11BASE}/lib/gnome-pilot/conduits/libemail_conduit.so:${PORTSDIR}/palm/gnomepilot-conduits .endif USE_BZIP2= yes USE_GMAKE= yes USE_BISON= yes USE_X_PREFIX= yes USE_GNOMENG= yes USE_GNOME= gnomeprefix gnomehack gnomelibs gal gtkhtml USE_REINPLACE= yes USE_OPENSSL= yes USE_LIBTOOL= yes LIBTOOLFILES= configure libical/configure CONFIGURE_ARGS= --with-db3-libs=${DB3_WRKSRC} \ --with-db3-includes=${DB3_WRKSRC} \ --with-nspr-includes=${LOCALBASE}/include/nspr \ --with-nspr-libs=${LOCALBASE}/lib \ --with-nss-includes=${LOCALBASE}/include/nss/security \ --with-nss-libs=${LOCALBASE}/lib .if defined(WITH_LDAP) CONFIGURE_ARGS+= --with-openldap=${LOCALBASE} .endif .if !defined(WITHOUT_PILOT) CONFIGURE_ARGS+= --with-pisock=${LOCALBASE} \ --enable-pilot-conduits=yes PLIST_SUB= PILOT:="" .else PLIST_SUB= PILOT:="@comment " .endif CONFIGURE_ENV= CPPFLAGS="-I${DB3_WRKSRC} -I${LOCALBASE}/include" \ LIBS="${PTHREAD_LIBS} -L${LOCALBASE}/lib" PLIST_SUB+= VERSION=${PORTVERSION} MAN1= evolution.1 post-patch: @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure @find ${WRKSRC} -type f -name "*.[ch]" | xargs ${GREP} -l '' | \ xargs ${REINPLACE_CMD} -e 's|||g' # DB3 stuff. Ugly, I know, but that's life. DB3_WRKSRC= ${WRKDIR}/db-3.1.17/build_unix DB3_CONFIGURE_SCRIPT= ../dist/configure DB3_CONFIGURE_ARGS= --enable-compat185 \ --enable-dump185 --enable-cxx \ --enable-static \ --disable-dynamic \ --prefix=${PREFIX} \ --includedir=${PREFIX}/include/db3 \ --target=${ARCH}-unknown-freebsd${OSREL} pre-configure: @(cd ${DB3_WRKSRC} && \ ${SETENV} CC="${CC}" CXX="${CXX}" \ CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \ INSTALL="/usr/bin/install -c -o ${BINOWN} -g ${BINGRP}" \ INSTALL_DATA="${INSTALL_DATA}" \ INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ ${DB3_CONFIGURE_ENV} ./${DB3_CONFIGURE_SCRIPT} ${DB3_CONFIGURE_ARGS}) @(cd ${DB3_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET}) @${RM} -f ${DB3_WRKSRC}/db3 @${LN} -s . ${DB3_WRKSRC}/db3 # End of the DB3 stuff post-install: @find ${PREFIX}/share/gnome/evolution/default_user -type f | \ xargs ${CHMOD} 644 .include