mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-30 21:49:25 +00:00
1ab42dd5cf
whether Python is installed, and emits a helpful message if it isn't. PR: 6866 Submitted by: Ville Eerola <ve@sci.fi> (wrapper by mph)
47 lines
1.5 KiB
Makefile
47 lines
1.5 KiB
Makefile
# New ports collection makefile for: fetchmail
|
|
# Version required: 4.4.9
|
|
# Date created: 26 Oct 1996
|
|
# Whom: Ville Eerola <ve@sci.fi>
|
|
#
|
|
# $Id: Makefile,v 1.62 1998/05/27 04:04:59 mph Exp $
|
|
#
|
|
# 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.
|
|
|
|
DISTNAME= fetchmail-4.4.9
|
|
CATEGORIES= mail
|
|
MASTER_SITES= ftp://ftp.ccil.org/pub/esr/fetchmail/
|
|
|
|
MAINTAINER= ve@sci.fi
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-opie --enable-RPA --enable-POP2
|
|
CONFIGURE_ENV= LDFLAGS="${CFLAGS}"
|
|
MAN1= fetchmail.1
|
|
|
|
.if exists(/usr/lib/libkrb.a) && defined(MAKE_KERBEROS4)
|
|
CONFIGURE_ARGS += --with-kerberos=/usr/include
|
|
.endif
|
|
|
|
FDOC= ${PREFIX}/share/doc/fetchmail
|
|
|
|
post-patch:
|
|
@${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
|
|
|
|
post-install:
|
|
${INSTALL} -d -m 555 -o ${DOCOWN} -g ${DOCGRP} ${FDOC}
|
|
${LN} -sf fetchmail.1.gz ${PREFIX}/man/man1/fetchmailconf.1.gz
|
|
cd ${WRKSRC} && ${INSTALL_DATA} \
|
|
sample.rcfile FAQ NOTES FEATURES README COPYING \
|
|
fetchmail-FAQ.html fetchmail-features.html \
|
|
design-notes.html ${FDOC}
|
|
${MV} ${PREFIX}/bin/fetchmailconf ${PREFIX}/libexec/fetchmailconf.bin
|
|
${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|