mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-30 21:49:25 +00:00
6215e1467f
building WITH_X11. No PORTREVISION bump - WITH_X11 did not build at all until now. PR: 23184 Submitted by: Donald J. Maddox <dmaddox@sc.rr.com>
70 lines
2.2 KiB
Makefile
70 lines
2.2 KiB
Makefile
# New ports collection makefile for: fetchmail
|
|
# Date created: 25 Feb 2000
|
|
# Whom: Ville Eerola <ve@sci.fi>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# NOTE: The fetchmailconf program (an interactive program for
|
|
# 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
|
|
|
|
PORTNAME= fetchmail
|
|
PORTVERSION= 5.6.0
|
|
CATEGORIES= mail ipv6
|
|
MASTER_SITES= http://www.tuxedo.org/~esr/fetchmail/ \
|
|
ftp://ftp.ccil.org/pub/esr/fetchmail/
|
|
|
|
MAINTAINER= ve@sci.fi
|
|
|
|
LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
|
|
.if defined(WITH_X11)
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/python2.0/site-packages/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
|
|
.endif
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-OPIE --enable-RPA --enable-POP2 --enable-SDPS \
|
|
--enable-nls --with-hesiod=no
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
CFLAGS="-I${LOCALBASE}/include ${CFLAGS}"
|
|
MAN1= fetchmail.1
|
|
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
|
|
.elif exists(${LOCALBASE}/lib/libssl.a) && exists(${LOCALBASE}/lib/libcrypto.a)
|
|
CONFIGURE_ARGS+=-with-includes=${LOCALBASE}/include/openssl --with-ssl=${LOCALBASE}
|
|
.endif
|
|
|
|
.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
|
|
|
|
FDOC= ${PREFIX}/share/doc/fetchmail
|
|
|
|
pre-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}
|
|
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.post.mk>
|