aboutsummaryrefslogtreecommitdiffstats
path: root/mail/heirloom-mailx/Makefile
blob: 9d0f471bee2ee02aad2391c82692a34869603420 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
# New ports collection makefile for:    nail
# Date created:             20 October 2000
# Whom:                 Kris Kennaway <kris@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   mailx
PORTVERSION=    12.4
PORTREVISION=   1
CATEGORIES= mail ipv6
MASTER_SITES=   SF/heirloom/heirloom-${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX=  ${MASTER_SITE_SUBDIR}-

MAINTAINER= avl@FreeBSD.org
COMMENT=    BSD mail utility with MIME, IMAP, POP3, SMTP and S/MIME extensions

OPTIONS=    IPV6    "Enable IPv6 Support"   On

CONFLICTS=  mailx-[0-9]*

MAKE_JOBS_UNSAFE=   yes
USE_BZIP2=  yes
USE_ICONV=  yes
USE_OPENSSL=    yes
MAKE_ARGS=  PREFIX="${PREFIX}" \
        SYSCONFDIR="${PREFIX}/etc" \
        SENDMAIL="/usr/sbin/sendmail" \
        CPPFLAGS="${CPPFLAGS}" \
        LDFLAGS="${LDFLAGS}"

MAN1=       ${PORTNAME}.1
PORTDOCS=   AUTHORS COPYING ChangeLog README TODO

PLIST_FILES=    bin/${PORTNAME} \
        "@unexec if cmp -s %D/etc/nail.rc %D/etc/nail.rc.default; then ${RM} -f %D/etc/nail.rc; fi " \
        "etc/nail.rc.default" \
        "@exec [ -f %B/nail.rc ] || ${CP} %B/%f %B/nail.rc"

CPPFLAGS=   -I${LOCALBASE}/include
LDFLAGS=    -L${LOCALBASE}/lib

.include <bsd.port.pre.mk>

.if defined(WITH_IPV6)
MAKE_ARGS+= IPv6="-DHAVE_IPv6_FUNCS"
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1
    ${INSTALL_DATA} ${WRKSRC}/nail.rc ${PREFIX}/etc/nail.rc.default
.if !exists(${PREFIX}/etc/nail.rc)
    ${INSTALL_DATA} ${WRKSRC}/nail.rc ${PREFIX}/etc
.endif
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>