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