aboutsummaryrefslogtreecommitdiffstats
path: root/mail/elmo-devel/Makefile
blob: 4aed095d2eab1c3fb191f450cec7e05c4571c159 (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
46
47
48
49
50
# New ports collection makefile for:    elmo
# Date created:             2003-09-27
# Whom:                 trevor
#
# $FreeBSD$
#

PORTNAME=   elmo
PORTVERSION=    1.3.1
CATEGORIES= mail
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMESUFFIX=  -devel

MAINTAINER= adamw@FreeBSD.org
COMMENT=    Receive, filter, read, compose and send mail at the text console

GNU_CONFIGURE=  yes
USE_GETTEXT=    yes
USE_ICONV=  yes
USE_OPENSSL=    yes
USE_PERL5_RUN=  yes
USE_REINPLACE=  yes

CPPFLAGS=   -I${LOCALBASE}/include
LDFLAGS=    -L${LOCALBASE}/lib
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" \
        LDFLAGS="${LDFLAGS}"

MAN1=       elmo.1 elmoconf.pl.1

.include <bsd.port.pre.mk>

.if exists(${LOCALBASE}/lib/libgpgme.so) || defined(WITH_GPGME)
LIB_DEPENDS+=   gpgme:${PORTSDIR}/security/gpgme
.else
pre-everything::
    @${ECHO_CMD}
    @${ECHO_CMD} "Define WITH_GPGME=yes to build with gpgme support."
    @${ECHO_CMD}
.endif

post-patch:
    @${REINPLACE_CMD} -e "s|/usr/bin/env perl|${PERL} -w|" \
        ${WRKSRC}/src/elmoconf.pl

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>