summaryrefslogtreecommitdiff
path: root/mail/nail/Makefile
blob: 36053e237efed878c725a680fcf12c18a8c603f6 (plain)
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
# $NetBSD: Makefile,v 1.39 2008/03/28 13:26:00 joerg Exp $

DISTNAME=	nail-11.25
PKGREVISION=	1
CATEGORIES=	mail
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=nail/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	cjep@NetBSD.org
HOMEPAGE=	http://nail.sourceforge.net/
COMMENT=	BSD mail utility with MIME extensions

PKG_DESTDIR_SUPPORT=	user-destdir

MAKE_ENV+=	"SYSCONFDIR=${PKG_SYSCONFDIR}"

PKG_OPTIONS_VAR=	PKG_OPTIONS.nail
PKG_SUPPORTED_OPTIONS=	inet6

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Minet6)
MAKE_ENV+=	"IPv6=-DHAVE_IPv6_FUNCS"
.endif

.if (${OPSYS} == "SunOS" || ${OPSYS} == "IRIX")
MAKE_ENV+=	"SENDMAIL=/usr/lib/sendmail"
.endif

EGDIR=		${PREFIX}/share/examples/nail

CONF_FILES=	${EGDIR}/nail.rc ${PKG_SYSCONFDIR}/nail.rc

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 ${EGDIR}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/nail ${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/nail.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
	${INSTALL_DATA} ${WRKSRC}/nail.rc ${DESTDIR}${EGDIR}

.include "../../converters/libiconv/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"