1ca6a94b2a
integrate COMMENT change postgresql dependencies to new paths and names ok espie@
90 lines
2.3 KiB
Makefile
90 lines
2.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.23 2001/04/21 18:54:11 peter Exp $
|
|
|
|
COMMENT= "MTA for systems connected to the Internet"
|
|
|
|
DISTNAME= exim-3.22
|
|
CATEGORIES= mail
|
|
NEED_VERSION= 1.405
|
|
MASTER_SITES= ftp://ftp.cus.cam.ac.uk/pub/software/programs/exim/ \
|
|
ftp://ftp.exim.org/pub/exim/ \
|
|
ftp://ftp.fu-berlin.de/unix/mail/exim/
|
|
DISTFILES= exim-3.22.tar.gz exim-texinfo-3.20.tar.gz
|
|
|
|
HOMEPAGE= http://www.exim.org/
|
|
|
|
MAINTAINER= Peter Galbavy <peter.galbavy@knowledge.com>
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
# ldap - once openldap is supported by exim
|
|
FLAVORS= no_x11 no_perl mysql postgresql ldap no_ssl
|
|
FLAVOR?=
|
|
|
|
MAKE_ENV= FLAVOR="${FLAVOR}"
|
|
|
|
EXIM_MAKECAT=
|
|
EXIM_LOOKUP_INCLUDE=
|
|
EXIM_LOOKUP_LIB=
|
|
|
|
.if !${FLAVOR:L:Mno_x11}
|
|
USE_X11= Yes
|
|
EXIM_MAKECAT+= "EXIM_MONITOR=eximon.bin\n"
|
|
.endif
|
|
|
|
.if !${FLAVOR:L:Mno_perl}
|
|
EXIM_MAKECAT+= "EXIM_PERL=perl.o\n"
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mldap}
|
|
LIB_DEPENDS+= ldap.2::databases/openldap
|
|
EXIM_MAKECAT+= "LOOKUP_LDAP=yes\nLDAP_LIB_TYPE=OPENLDAP2\n"
|
|
EXIM_LOOKUP_INCLUDE+= -I${LOCALBASE}/include
|
|
EXIM_LOOKUP_LIBS+= -L${LOCALBASE}/lib -lldap -llber
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mmysql}
|
|
LIBS+= ${LOCALBASE}/lib/mysql
|
|
LIB_DEPENDS+= mysqlclient::databases/mysql
|
|
EXIM_MAKECAT+= "LOOKUP_MYSQL=yes\n"
|
|
EXIM_LOOKUP_INCLUDE+= -I${LOCALBASE}/include/mysql
|
|
EXIM_LOOKUP_LIBS+= -L${LOCALBASE}/lib/mysql -lmysqlclient
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mpostgresql}
|
|
LIB_DEPENDS+= pq.2::databases/postgresql
|
|
EXIM_MAKECAT+= "LOOKUP_PGSQL=yes\n"
|
|
EXIM_LOOKUP_INCLUDE+= -I${LOCALBASE}/include/postgresql
|
|
EXIM_LOOKUP_LIBS+= -L${LOCALBASE}/lib -lpq
|
|
.endif
|
|
|
|
.if !${FLAVOR:L:Mno_ssl}
|
|
EXIM_MAKECAT+= "SUPPORT_TLS=yes\nTLS_LIBS=-lssl -lcrypto\n"
|
|
.endif
|
|
|
|
|
|
do-configure:
|
|
@mkdir -p ${WRKSRC}/Local
|
|
@cp ${FILESDIR}/Makefile ${WRKSRC}/Local
|
|
.if !${FLAVOR:L:Mno_x11}
|
|
@cp ${FILESDIR}/eximon.conf ${WRKSRC}/Local
|
|
.endif
|
|
@echo -n ${EXIM_MAKECAT} >> ${WRKSRC}/Local/Makefile
|
|
@echo "LOOKUP_INCLUDE=${EXIM_LOOKUP_INCLUDE}">>${WRKSRC}/Local/Makefile
|
|
@echo "LOOKUP_LIBS=${EXIM_LOOKUP_LIBS}">>${WRKSRC}/Local/Makefile
|
|
@cd ${WRKSRC}/doc ; \
|
|
for i in ../../exim-texinfo-3.20/doc/* ; do \
|
|
ln -sf $$i ; \
|
|
done
|
|
|
|
pre-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/exim
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/exim
|
|
${INSTALL_DATA} ${WRKSRC}/doc/spec.txt ${PREFIX}/share/doc/exim/spec.txt
|
|
|
|
.include <bsd.port.mk>
|