mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-29 21:39:24 +00:00
b4455771cc
WITHOUT_FOO. Begin the process of reserving these prefixes for user defined options. No comment by: ports
122 lines
3.3 KiB
Makefile
122 lines
3.3 KiB
Makefile
# New ports collection makefile for: exim
|
|
# Date created: 23 June 1996
|
|
# Whom: markm@FreeBSD.org
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= exim
|
|
PORTVERSION= 3.13
|
|
CATEGORIES= mail
|
|
MASTER_SITES= ftp://ftp.cus.cam.ac.uk/pub/software/programs/exim/ \
|
|
http://www.exim.org/ftp/ \
|
|
ftp://ftp.is.co.za/networking/mail/transport/exim/
|
|
DISTFILES= exim-3.13.tar.gz exim-texinfo-3.10.tar.gz
|
|
|
|
MAINTAINER= sheldonh@FreeBSD.org
|
|
|
|
# If WITHOUT_X11 is not defined, the eximon monitor, which requires X, will
|
|
# be built. Comment it out unless you have or want XFree86 installed!
|
|
.if !defined(WITHOUT_X11)
|
|
USE_XLIB= yes
|
|
.endif
|
|
|
|
USE_PERL5= yes
|
|
|
|
MAKE_ENV+= OSTYPE=${OPSYS} ARCHTYPE=${MACHINE_ARCH}
|
|
|
|
# Uncomment the WITH_MYSQL and WITH_PAM definitions to link against
|
|
# libmysqlclient and libpam respectively. The libpam linkage is
|
|
# required for SMTP AUTH support.
|
|
#WITH_MYSQL= yes
|
|
#WITH_PAM= yes
|
|
|
|
# If WITH_PAM==yes then one or more of PAM_CRAM_MD5 and PAM_PLAINTEXT
|
|
# must be left uncommented.
|
|
PAM_CRAM_MD5= yes
|
|
PAM_PLAINTEXT= yes
|
|
|
|
# Uncomment to compile support for non-standard mailbox formats.
|
|
#WITH_MAILDIR= yes
|
|
#WITH_MAILSTORE= yes
|
|
#WITH_MBX= yes
|
|
|
|
# You should not need to fiddle with anything below this point.
|
|
|
|
SEDLIST= -e 's,XX_PREFIX_XX,${PREFIX},' \
|
|
-e 's,XX_BINOWN_XX,${BINOWN},'
|
|
.if !defined(USE_XLIB)
|
|
SEDLIST+= -e 's/^EXIM_MONITOR/\#EXIM_MONITOR/'
|
|
.endif
|
|
|
|
# BROKEN: the WITH_LDAP stuff will not work until the openldap port
|
|
# builds a shared liblber.
|
|
.if defined(WITH_LDAP)
|
|
LIB_DEPENDS+= lber.1:${PORTSDIR}/net/openldap
|
|
SEDLIST+= -e 's,XX_LDAP_LIBS_XX,-L${PREFIX}/lib -llber -lldap,' \
|
|
-e 's,XX_LDAP_INCLUDE_XX,-I${PREFIX}/include,' \
|
|
-e 's,XX_LDAP_TYPE_XX,${LDAP_LIB_TYPE},' \
|
|
-e 's,^\# LOOKUP_LDAP,LOOKUP_LDAP,'
|
|
.else
|
|
SEDLIST+= -e 's,XX_LDAP_[^ ]*_XX,,' \
|
|
-e 's,^LDAP_LIB_TYPE,\#LDAP_LIB_TYPE,'
|
|
.endif
|
|
|
|
.if defined(WITH_MYSQL)
|
|
LIB_DEPENDS+= mysqlclient.6:${PORTSDIR}/databases/mysql322-client
|
|
SEDLIST+= -e 's,XX_MYSQL_LIBS_XX,-L${PREFIX}/lib/mysql -lmysqlclient,' \
|
|
-e 's,XX_MYSQL_INCLUDE_XX,-I${PREFIX}/include/mysql,' \
|
|
-e 's,^\# LOOKUP_MYSQL,LOOKUP_MYSQL,'
|
|
.else
|
|
SEDLIST+= -e 's,XX_MYSQL_[^ ]*_XX,,'
|
|
.endif
|
|
|
|
.if !defined(WITH_MYSQL)
|
|
SEDLIST+= -e 's/^LOOKUP_LIBS/\#LOOKUP_LIBS/' \
|
|
-e 's/^LOOKUP_INCLUDE/\#LOOKUP_INCLUDE/'
|
|
.endif
|
|
|
|
.if !defined(WITH_PAM)
|
|
SEDLIST+= -e 's/^SUPPORT_PAM/\#SUPPORT_PAM/' \
|
|
-e 's/^PAM_LIBS/\#PAM_LIBS/'
|
|
.endif
|
|
|
|
.if !defined(WITH_PAM) || !defined(PAM_CRAM_MD5)
|
|
SEDLIST+= -e 's/^AUTH_CRAM_MD5/\#AUTH_CRAM_MD5/'
|
|
.endif
|
|
|
|
.if !defined(WITH_PAM) || !defined(PAM_PLAINTEXT)
|
|
SEDLIST+= -e 's/^AUTH_PLAINTEXT/\#AUTH_PLAINTEXT/'
|
|
.endif
|
|
|
|
.if defined(WITH_MAILDIR)
|
|
SEDLIST+= -e 's/^\# SUPPORT_MAILDIR/SUPPORT_MAILDIR/'
|
|
.endif
|
|
|
|
.if defined(WITH_MAILSTORE)
|
|
SEDLIST+= -e 's/^\# SUPPORT_MAILSTORE/SUPPORT_MAILSTORE/'
|
|
.endif
|
|
|
|
.if defined(WITH_MBX)
|
|
SEDLIST+= -e 's/^\# SUPPORT_MBX/SUPPORT_MBX/'
|
|
.endif
|
|
|
|
do-configure:
|
|
${MKDIR} ${WRKSRC}/Local
|
|
${SED} ${SEDLIST} < ${FILESDIR}/Makefile > ${WRKSRC}/Local/Makefile
|
|
${SED} ${SEDLIST} < ${FILESDIR}/configure.default \
|
|
> ${WRKSRC}/src/configure.default
|
|
${CP} ${FILESDIR}/eximon.conf ${WRKSRC}/Local
|
|
cd ${WRKSRC}/doc && \
|
|
for i in ../../exim-texinfo-3.10/doc/* ; do \
|
|
${LN} -sf $$i ; \
|
|
done
|
|
|
|
post-build:
|
|
${INSTALL_SCRIPT} ${FILESDIR}/exim.sh \
|
|
${WRKSRC}/build-${OPSYS}-${MACHINE_ARCH}
|
|
${TOUCH} ${WRKSRC}/build-${OPSYS}-${MACHINE_ARCH}/eximon.bin
|
|
${TOUCH} ${WRKSRC}/build-${OPSYS}-${MACHINE_ARCH}/eximon
|
|
|
|
.include <bsd.port.mk>
|