aboutsummaryrefslogtreecommitdiffstats
path: root/mail/lmtpd/Makefile
blob: 31b650a81cbf0e3670a4c61b6050d18e31c09334 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# New ports collection makefile for:    libhome
# Date created:             Fri Aug 14 2003
# Whom:                 Xavier Beaudouin <kiwi@oav.net>
#
# $FreeBSD$
#

PORTNAME=   lmtpd
PORTVERSION=    0.9.16
CATEGORIES= mail
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pll

MAINTAINER= kiwi@oav.net
COMMENT=    LMTP server compliant with RFC 2033 and Maildir++

LIB_DEPENDS=    mysqlclient:${PORTSDIR}/databases/mysql323-client \
        pcre:${PORTSDIR}/devel/pcre \
        iconv:${PORTSDIR}/converters/libiconv \
        db3.3:${PORTSDIR}/databases/db3
BUILD_DEPENDS=  ${LOCALBASE}/lib/libhome.a:${PORTSDIR}/misc/libhome

GNU_CONFIGURE=  YES
CONFIGURE_ENV=  CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
CONFIGURE_ARGS= --with-mysqllog --with-db3 -without-db4 \
        --with-pcre --without-perl
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}

MAN8=       lmtpd.8
DOCS=       NEWS README TODO

post-install:
    ${INSTALL_DATA} ${WRKSRC}/samples/lmtpd.conf \
        ${PREFIX}/etc/lmtpd.conf.dist
    ${INSTALL_SCRIPT} ${WRKSRC}/lmtpdlogsum/lmtpdlogsum.pl \
        ${PREFIX}/bin/lmtpdlogsum
    @${MKDIR} ${EXAMPLESDIR}/msg
    ${INSTALL_DATA} ${WRKSRC}/sql/* ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/txt/* ${EXAMPLESDIR}/msg
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>