summaryrefslogtreecommitdiff
path: root/mail/metamail/Makefile
blob: 8b1f131fd0068b9f3be50768b878a312e9795090 (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
# $NetBSD: Makefile,v 1.18 2003/04/04 19:23:20 jschauma Exp $

DISTNAME=	mm2.7
PKGNAME=	metamail-2.7
PKGREVISION=	1
WRKSRC=		${WRKDIR}/${DISTNAME}/src
CATEGORIES=	mail
MASTER_SITES=	ftp://thumper.bellcore.com/pub/nsb/
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	packages@netbsd.org
COMMENT=	Implementation of MIME, the Multipurpose Internet Mail Extensions

CONFLICTS+=	elm>=2.5.5 mm-2.7

USE_BUILDLINK2=		YES
USE_PKGINSTALL=		YES
USE_X11=		YES


EGDIR=		${PREFIX}/share/examples/metamail
CONF_FILES=	${EGDIR}/mailcap ${PKG_SYSCONFDIR}/mailcap

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

CFLAGS+=	-DPKG_SYSCONFDIR='\\\"${PKG_SYSCONFDIR}\\\"'
MAKE_ENV+=	PKG_SYSCONFDIR=${PKG_SYSCONFDIR}

.if ${OPSYS} == "SunOS"
CFLAGS=		-DSYSV
.endif

post-patch:
	${RM} -f ${WRKDIR}/mm2.7/src/bin/*.orig

pre-install:
	${INSTALL_DATA_DIR} ${EGDIR}

.include "../../mk/bsd.pkg.mk"