summaryrefslogtreecommitdiff
path: root/mail/vm/Makefile
blob: 2b4a170a8c18cdb609769e7d361405be035dff0d (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.29 2006/03/05 16:27:26 jlam Exp $

DISTNAME=	vm-7.19
PKGNAME=	${EMACS_PKGNAME_PREFIX}${DISTNAME}
PKGREVISION=	1
CATEGORIES=	mail
MASTER_SITES=	ftp://ftp.uni-mainz.de/pub/software/gnu/vm/ \
		ftp://tug.org/vm/ \
		ftp://psg.com/pub/vm/ \
		ftp://sunsite.cnlab-switch.ch/mirror/vm/ \
		ftp://ftp.uu.net/networking/mail/vm/ \
		http://www.interhack.net/projects/vm/ \
		ftp://ftp.ccs.neu.edu/net/mirrors/VM/ \
		http://www.rge.com/pub/mail/vm/ \
		http://ftp.lip6.fr/pub/unix/mail/vm/ \
		http://ftp.jussieu.fr/pub/unix/mail/vm/ \
		ftp://ftp.surfnet.nl/pub/mail/vm/ \
		http://ftp.algx.net/pub/packages/mail/vm/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.wonderworks.com/vm/
COMMENT=	VM (View Mail) is an advanced mail user agent for Emacs

.include "../../mk/emacs.mk"

USE_TOOLS+=	makeinfo

.if ${EMACS_FLAVOR} == "xemacs"
INFODIR=	${PREFIX}/lib/xemacs/site-packages/info
PIXMAPDIR=	${PREFIX}/lib/xemacs/site-packages/etc/vm
BINDIR=		${PREFIX}/bin
PLIST_SRC=	${PKGDIR}/PLIST.xemacs
.elif ${EMACS_FLAVOR} == "emacs"
INFODIR=	${PREFIX}/info
PIXMAPDIR=	${PREFIX}/share/emacs/site-lisp/vm/pixmaps
BINDIR=		${PREFIX}/bin
INFO_FILES=	vm.info
PLIST_SRC=	${PKGDIR}/PLIST.emacs
.endif
MAKEFLAGS+=	EMACS=${EMACS_BIN:Q}

MAKE_ENV+=	LISPDIR=${EMACS_LISPPREFIX}/vm
MAKE_ENV+=	INFODIR=${INFODIR:Q}
MAKE_ENV+=	PIXMAPDIR=${PIXMAPDIR:Q}
MAKE_ENV+=	BINDIR=${BINDIR:Q}

do-install:
	${INSTALL_DATA_DIR} ${EMACS_LISPPREFIX}/vm
	cd ${WRKSRC} && ${INSTALL_DATA} *.el* ${EMACS_LISPPREFIX}/vm
	${INSTALL_DATA_DIR} ${INFODIR}
	${INSTALL_DATA} ${WRKSRC}/*.info* ${INFODIR}
	${INSTALL_DATA_DIR} ${PIXMAPDIR}
	${INSTALL_DATA} ${WRKSRC}/pixmaps/*.x[pb]m ${PIXMAPDIR}
	cd ${WRKSRC} && ${INSTALL_PROGRAM} qp-decode qp-encode		\
		base64-decode base64-encode ${BINDIR}

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