1996-10-15 04:52:41 +00:00
|
|
|
# New ports collection makefile for: fetchmail
|
2000-03-03 05:13:31 +00:00
|
|
|
# Date created: 25 Feb 2000
|
1996-10-15 04:52:41 +00:00
|
|
|
# Whom: Ville Eerola <ve@sci.fi>
|
|
|
|
#
|
1999-08-25 06:51:17 +00:00
|
|
|
# $FreeBSD$
|
1996-10-15 04:52:41 +00:00
|
|
|
#
|
1998-06-13 19:26:55 +00:00
|
|
|
# NOTE: The fetchmailconf program (an interactive program for
|
2000-06-20 18:43:34 +00:00
|
|
|
# writing .fetchmailrc files) requires Python, Tk, X11, etc..
|
|
|
|
# The fetchmail program itself does not need Python, but if you
|
|
|
|
# want fetchmailconf to work, define WITH_X11
|
1996-10-15 04:52:41 +00:00
|
|
|
|
2000-04-13 20:01:08 +00:00
|
|
|
PORTNAME= fetchmail
|
2000-09-17 12:43:34 +00:00
|
|
|
PORTVERSION= 5.5.2
|
2000-01-18 12:34:34 +00:00
|
|
|
CATEGORIES= mail ipv6
|
1997-02-13 22:05:56 +00:00
|
|
|
MASTER_SITES= ftp://ftp.ccil.org/pub/esr/fetchmail/
|
1996-10-15 04:52:41 +00:00
|
|
|
|
|
|
|
MAINTAINER= ve@sci.fi
|
|
|
|
|
2000-05-29 02:39:21 +00:00
|
|
|
LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
|
2000-06-20 18:43:34 +00:00
|
|
|
|
|
|
|
.if defined(WITH_X11)
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/python1.5/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
|
|
|
|
.endif
|
|
|
|
|
1996-11-10 21:32:56 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2000-05-29 02:39:21 +00:00
|
|
|
CONFIGURE_ARGS= --enable-OPIE --enable-RPA --enable-POP2 --enable-SDPS \
|
2000-09-17 18:41:59 +00:00
|
|
|
--enable-nls --with-hesiod=no
|
2000-05-29 02:39:21 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
CFLAGS="-I${LOCALBASE}/include ${CFLAGS}"
|
1996-11-16 22:54:39 +00:00
|
|
|
MAN1= fetchmail.1
|
1998-09-19 00:25:08 +00:00
|
|
|
MLINKS= fetchmail.1 fetchmailconf.1
|
1996-10-15 04:52:41 +00:00
|
|
|
|
2000-01-25 17:03:11 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 400014
|
|
|
|
CONFIGURE_ARGS+=--enable-inet6
|
2000-02-25 21:58:35 +00:00
|
|
|
.if exists(/usr/lib/libssl.a) && exists(/usr/lib/libcrypto.a)
|
|
|
|
CONFIGURE_ARGS+=--with-ssl=/usr
|
|
|
|
.endif
|
2000-06-09 08:54:43 +00:00
|
|
|
.elif exists(${LOCALBASE}/lib/libssl.a) && exists(${LOCALBASE}/lib/libcrypto.a)
|
2000-06-01 17:59:22 +00:00
|
|
|
CONFIGURE_ARGS+=-with-includes=${LOCALBASE}/include/openssl --with-ssl=${LOCALBASE}
|
2000-01-25 17:03:11 +00:00
|
|
|
.endif
|
|
|
|
|
1998-03-20 15:05:27 +00:00
|
|
|
.if exists(/usr/lib/libkrb.a) && defined(MAKE_KERBEROS4)
|
|
|
|
CONFIGURE_ARGS += --with-kerberos=/usr/include
|
1997-09-10 01:25:08 +00:00
|
|
|
.endif
|
|
|
|
|
1998-09-13 21:31:51 +00:00
|
|
|
.if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libkrb5.a)
|
|
|
|
CONFIGURE_ARGS += --with-kerberos5=${KRB5_HOME}
|
|
|
|
.endif
|
|
|
|
|
1997-04-24 16:23:32 +00:00
|
|
|
FDOC= ${PREFIX}/share/doc/fetchmail
|
|
|
|
|
1999-06-14 02:18:52 +00:00
|
|
|
pre-patch:
|
1997-06-16 15:51:55 +00:00
|
|
|
@${CP} -f /usr/include/md5.h ${WRKSRC}
|
1998-06-13 19:26:55 +00:00
|
|
|
@perl -pi.bak -e 's|^#!/.*/python|#!${PREFIX}/bin/python|;' ${WRKSRC}/fetchmailconf
|
|
|
|
@${SED} -e "s|@PREFIX@|${PREFIX}|" ${FILESDIR}/fetchmailconf > ${WRKDIR}/fetchmailconf
|
1997-06-11 02:38:35 +00:00
|
|
|
|
1997-04-24 16:23:32 +00:00
|
|
|
post-install:
|
1997-10-28 04:40:39 +00:00
|
|
|
${INSTALL} -d -m 555 -o ${DOCOWN} -g ${DOCGRP} ${FDOC}
|
1997-04-24 16:23:32 +00:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} \
|
1997-07-10 01:22:05 +00:00
|
|
|
sample.rcfile FAQ NOTES FEATURES README COPYING \
|
1997-08-20 04:06:36 +00:00
|
|
|
fetchmail-FAQ.html fetchmail-features.html \
|
1997-07-10 01:22:05 +00:00
|
|
|
design-notes.html ${FDOC}
|
1998-06-13 19:26:55 +00:00
|
|
|
${MV} ${PREFIX}/bin/fetchmailconf ${PREFIX}/libexec/fetchmailconf.bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
|
1997-04-24 16:23:32 +00:00
|
|
|
|
2000-01-25 17:03:11 +00:00
|
|
|
.include <bsd.port.post.mk>
|