summaryrefslogtreecommitdiff
path: root/mail/heirloom-mailx/Makefile
blob: 49aed2327e92ac2c7b5c2a89ff0ca29c530f2330 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# $NetBSD: Makefile,v 1.8 2015/03/22 03:39:47 tnn Exp $
#

DISTNAME=	heirloom-mailx_12.5.orig
PKGNAME=	heirloom-mailx-12.5
CATEGORIES=	mail
MASTER_SITES=	${MASTER_SITE_DEBIAN:=pool/main/h/heirloom-mailx/}
EXTRACT_SUFX=	.tar.gz

MAINTAINER=	jgw@sdf.org
HOMEPAGE=	http://heirloom.sourceforge.net/mailx.html
COMMENT=	BSD mail utility with MIME extensions
LICENSE=	 original-bsd AND osl AND mpl-1.1

WRKSRC=		${WRKDIR}/heirloom-mailx-12.5

MAKE_JOBS_SAFE=		no

USE_LANGUAGES=		c

MAKE_FLAGS+=		PREFIX=${PREFIX}
MAKE_FLAGS+=		MANDIR=${PREFIX}/${PKGMANDIR}
MAKE_FLAGS+=		UCBINSTALL=${INSTALL:Q}
BUILD_MAKE_FLAGS+=	SYSCONFDIR=${PKG_SYSCONFDIR}
INSTALL_MAKE_FLAGS+=	SYSCONFDIR=${EGDIR}
CPPFLAGS+=		-DMIMEPATH=\"${PKG_SYSCONFDIR}/mime.types\"

.if exists(/usr/include/paths.h)
CPPFLAGS+=		-DHAVE_PATHS_H
.endif

.include "../../mk/bsd.prefs.mk"

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

.include "options.mk"

SUBST_CLASSES+=		sysconf
SUBST_STAGE.sysconf=	pre-build
SUBST_FILES.sysconf=	mime.c
SUBST_SED.sysconf=	-e 's;/etc/mime.types;${PKG_SYSCONFDIR}/mime.types;g'

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

DOCDIR=		${PREFIX}/share/doc/mailx

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

post-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}

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