aboutsummaryrefslogtreecommitdiffstats
path: root/mail/libnewmail/Makefile
blob: 5cf9ca212038d3d946cc9be6e784d7782f1bf351 (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:        libnewmail
# Date created:                     05.06.2003
# Whom:                             Kirill Ponomarew <ponomarew@oberon.net>
#
# $FreeBSD$
#

PORTNAME=   libnewmail
PORTVERSION=    0.2
CATEGORIES= mail
MASTER_SITES=   http://www.stud.uni-hamburg.de/~lennart/projects/libnewmail/

MAINTAINER= ponomarew@oberon.net
COMMENT=    Generic mail checking library

LIB_DEPENDS=    gnutls.8:${PORTSDIR}/security/gnutls \
        oop.4:${PORTSDIR}/devel/liboop \
        ltdl.4:${PORTSDIR}/devel/libltdl

GNU_CONFIGURE=  yes
USE_LIBTOOL=    yes
INSTALLS_SHLIB= yes
USE_REINPLACE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LIBS="-L${LOCALBASE}/lib"

DOC_FILES=  README \
        README.html \
        doxygen.conf

post-patch:
    @${REINPLACE_CMD} -e \
    's|#include <wait.h>|#include <sys/wait.h>|g' \
        ${WRKSRC}/src/imap.c

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for doc in ${DOC_FILES}
    @${INSTALL_DATA} ${WRKSRC}/doc/${doc} ${DOCSDIR}
.endfor
    @${CP} -R ${WRKSRC}/doc/reference ${DOCSDIR}
.endif

.include <bsd.port.mk>