freebsd-ports/mail/fetchmail/Makefile

66 lines
2.1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: fetchmail
# Date created: 25 Feb 2000
# Whom: Ville Eerola <ve@sci.fi>
#
1999-08-25 02:51:17 -04:00
# $FreeBSD$
#
# NOTE: The fetchmailconf program (an interactive program for
# writing .fetchmailrc files) requires Python, found in the Ports
# Collection under lang/python. The fetchmail program itself
# does not need Python, so there is no RUN_DEPENDS for Python in
# this Makefile.
2000-04-13 16:01:08 -04:00
PORTNAME= fetchmail
PORTVERSION= 5.3.8
2000-01-18 07:34:34 -05:00
CATEGORIES= mail ipv6
1997-02-13 17:05:56 -05:00
MASTER_SITES= ftp://ftp.ccil.org/pub/esr/fetchmail/
MAINTAINER= ve@sci.fi
LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-OPIE --enable-RPA --enable-POP2 --enable-SDPS \
--enable-nls
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
CFLAGS="-I${LOCALBASE}/include ${CFLAGS}"
MAN1= fetchmail.1
1998-09-18 20:25:08 -04:00
MLINKS= fetchmail.1 fetchmailconf.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 400014
CONFIGURE_ARGS+=--enable-inet6
.if exists(/usr/lib/libssl.a) && exists(/usr/lib/libcrypto.a)
CONFIGURE_ARGS+=--with-ssl=/usr
.endif
.else if exists(${LOCALBASE}/lib/libssl.a) && exists(${LOCALBASE}/lib/libcrypto.a)
CONFIGURE_ARGS+=-with-includes=${LOCALBASE}/include/openssl --with-ssl=${LOCALBASE}
.endif
1998-03-20 10:05:27 -05:00
.if exists(/usr/lib/libkrb.a) && defined(MAKE_KERBEROS4)
CONFIGURE_ARGS += --with-kerberos=/usr/include
.endif
.if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libkrb5.a)
CONFIGURE_ARGS += --with-kerberos5=${KRB5_HOME}
.endif
1997-04-24 12:23:32 -04:00
FDOC= ${PREFIX}/share/doc/fetchmail
pre-patch:
1997-06-16 11:51:55 -04:00
@${CP} -f /usr/include/md5.h ${WRKSRC}
@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:
${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}
${MV} ${PREFIX}/bin/fetchmailconf ${PREFIX}/libexec/fetchmailconf.bin
${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
1997-04-24 12:23:32 -04:00
.include <bsd.port.post.mk>