summaryrefslogtreecommitdiff
path: root/mail/elm/Makefile
blob: af2d9004f5ff6057abd8378a13b6d0ea4e8747d0 (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
# $NetBSD: Makefile,v 1.46 2011/04/22 13:44:02 obache Exp $

DISTNAME=		elm2.5.8
PKGNAME=		elm-2.5.8
PKGREVISION=		3
CATEGORIES=		mail
MASTER_SITES=		http://www.instinct.org/elm/files/tarballs/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.instinct.org/elm/
COMMENT=		ELM Mail User Agent (without ME extensions)

PKG_DESTDIR_SUPPORT=	user-destdir

MAKE_JOBS_SAFE=		no

DEPENDS+=		metamail>=2.7:../../mail/metamail

CONFLICTS+=		mm-[0-9]*
CONFLICTS+=		elm-me-[0-9]*

HAS_CONFIGURE=		YES
CONFIGURE_SCRIPT=	./Configure
CONFIGURE_ARGS+=	-d
CONFIGURE_ENV+=		DESTDIR=${DESTDIR}
USE_TOOLS+=		nroff

INSTALLATION_DIRS=	share/nls/C

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

.if (${OPSYS} == Darwin)
LIBC=			/usr/lib/libSystem.dylib
.else
LIBC=			/usr/lib/libc.so
.endif

SPECIAL_PERMS+=		bin/elm ${ROOT_USER} mail 2755

pre-configure:
	${CP} ${FILESDIR}/config.sh ${WRKSRC}/config.sh.orig
	${SED} -e 's:@PREFIX@:${PREFIX}:g' \
	  -e 's:@DESTDIR@:${DESTDIR}:g' \
	  -e 's:@LOCALBASE@:${LOCALBASE}:g' \
	  -e 's:@LIBC@:${LIBC}:g' \
	  ${WRKSRC}/config.sh.orig > ${WRKSRC}/config.sh
	${MV} ${WRKSRC}/nls/LANGS ${WRKSRC}/nls/LANGS.tmpl
	${SED} -e 's:__PREFIX:'${PREFIX}':g' < ${WRKSRC}/nls/LANGS.tmpl > ${WRKSRC}/nls/LANGS

post-install:
	${LN} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/frm.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/nfrm.1
	${LN} ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/frm.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/nfrm.1

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"