2000-06-29 21:33:26 +02:00
|
|
|
# New ports collection makefile for: evolution
|
|
|
|
# Date created: 28th June 2000
|
|
|
|
# Whom: Ade Lovett <ade@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= evolution
|
2003-02-08 07:35:33 +01:00
|
|
|
PORTVERSION= 1.2.2
|
2000-06-29 21:33:26 +02:00
|
|
|
CATEGORIES= mail gnome
|
2002-05-14 00:54:12 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME} \
|
2002-03-27 17:49:38 +01:00
|
|
|
http://people.FreeBSD.org/~sobomax/:local
|
2002-11-12 01:01:04 +01:00
|
|
|
MASTER_SITE_SUBDIR= sources/${PORTNAME}/1.2 \
|
2002-03-25 21:21:08 +01:00
|
|
|
sobomax/:local
|
2002-05-12 06:20:04 +02:00
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
|
2002-03-25 21:21:08 +01:00
|
|
|
db-3.1.17${EXTRACT_SUFX}:local
|
|
|
|
DIST_SUBDIR= gnome
|
2000-06-29 21:33:26 +02:00
|
|
|
|
2001-05-11 18:36:50 +02:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2000-06-29 21:33:26 +02:00
|
|
|
|
2001-12-19 12:11:28 +01:00
|
|
|
LIB_DEPENDS= bonobo_conf.0:${PORTSDIR}/devel/bonobo-conf \
|
2002-11-22 21:29:41 +01:00
|
|
|
nss3.1:${PORTSDIR}/security/nss \
|
2003-01-19 20:17:52 +01:00
|
|
|
soup.6:${PORTSDIR}/devel/soup
|
2002-11-12 01:01:04 +01:00
|
|
|
|
2002-02-13 16:40:56 +01:00
|
|
|
.if defined(WITH_LDAP)
|
2003-02-24 03:56:37 +01:00
|
|
|
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap20
|
2002-02-13 06:03:22 +01:00
|
|
|
.endif
|
2002-12-13 17:16:33 +01:00
|
|
|
RUN_DEPENDS= gnome-spell-component-0.5:${PORTSDIR}/textproc/gnomespell \
|
|
|
|
gnomecc:${PORTSDIR}/sysutils/gnomecontrolcenter
|
2001-12-17 12:34:52 +01:00
|
|
|
.if !defined(WITHOUT_PILOT)
|
2001-12-29 22:42:36 +01:00
|
|
|
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
|
2001-12-17 12:34:52 +01:00
|
|
|
.endif
|
2000-12-08 22:12:35 +01:00
|
|
|
|
2002-03-25 21:21:08 +01:00
|
|
|
USE_BZIP2= yes
|
2000-06-29 21:33:26 +02:00
|
|
|
USE_GMAKE= yes
|
2001-05-16 17:59:21 +02:00
|
|
|
USE_BISON= yes
|
2000-06-29 21:33:26 +02:00
|
|
|
USE_X_PREFIX= yes
|
2002-07-09 23:56:37 +02:00
|
|
|
USE_GNOMENG= yes
|
2002-07-10 18:27:39 +02:00
|
|
|
USE_GNOME= gnomeprefix gnomehack gnomelibs gal gtkhtml
|
2002-07-09 23:56:37 +02:00
|
|
|
USE_REINPLACE= yes
|
2001-11-20 15:20:03 +01:00
|
|
|
USE_OPENSSL= yes
|
2002-11-12 01:01:04 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2001-12-15 05:40:13 +01:00
|
|
|
CONFIGURE_ARGS= --with-db3-libs=${DB3_WRKSRC} \
|
|
|
|
--with-db3-includes=${DB3_WRKSRC} \
|
2001-12-19 12:11:28 +01:00
|
|
|
--with-nspr-includes=${LOCALBASE}/include/nspr \
|
|
|
|
--with-nspr-libs=${LOCALBASE}/lib \
|
|
|
|
--with-nss-includes=${LOCALBASE}/include/nss/security \
|
|
|
|
--with-nss-libs=${LOCALBASE}/lib
|
2002-02-13 06:03:22 +01:00
|
|
|
|
|
|
|
.if defined(WITH_LDAP)
|
|
|
|
CONFIGURE_ARGS+= --with-openldap=${LOCALBASE}
|
|
|
|
.endif
|
|
|
|
|
2001-12-17 12:34:52 +01:00
|
|
|
.if !defined(WITHOUT_PILOT)
|
2002-01-06 21:52:03 +01:00
|
|
|
CONFIGURE_ARGS+= --with-pisock=${LOCALBASE} \
|
2001-12-17 12:34:52 +01:00
|
|
|
--enable-pilot-conduits=yes
|
|
|
|
PLIST_SUB= PILOT:=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB= PILOT:="@comment "
|
|
|
|
.endif
|
2001-12-15 05:40:13 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${DB3_WRKSRC} -I${LOCALBASE}/include" \
|
2002-07-09 23:56:37 +02:00
|
|
|
LIBS="${PTHREAD_LIBS} -L${LOCALBASE}/lib"
|
2000-06-29 21:33:26 +02:00
|
|
|
|
2001-12-17 12:34:52 +01:00
|
|
|
PLIST_SUB+= VERSION=${PORTVERSION}
|
2000-06-29 21:33:26 +02:00
|
|
|
|
2002-01-13 20:25:17 +01:00
|
|
|
MAN1= evolution.1
|
|
|
|
|
2002-07-09 23:56:37 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
2000-08-04 03:29:57 +02:00
|
|
|
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
|
2002-11-12 01:01:04 +01:00
|
|
|
@${FIND} ${WRKSRC} -type f -name "*.[ch]" | xargs ${GREP} -l '<db.h>' | \
|
|
|
|
${XARGS} ${REINPLACE_CMD} -e 's|<db.h>|<db3/db.h>|g'
|
2001-12-15 05:40:13 +01:00
|
|
|
|
|
|
|
# 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
|
2000-08-04 03:29:57 +02:00
|
|
|
|
2001-11-12 11:45:21 +01:00
|
|
|
post-install:
|
2002-11-12 01:01:04 +01:00
|
|
|
@${FIND} ${PREFIX}/share/gnome/evolution/default_user -type f | \
|
|
|
|
${XARGS} ${CHMOD} 644
|
2001-11-12 11:45:21 +01:00
|
|
|
|
2000-06-29 21:33:26 +02:00
|
|
|
.include <bsd.port.mk>
|