summaryrefslogtreecommitdiff
path: root/mail/mew/Makefile
blob: 09897e2bf62b004e3c1854a304e5e4d6870c6eb2 (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
# $NetBSD: Makefile,v 1.45 2002/02/18 15:14:28 seb Exp $

DISTNAME=	mew-2.1.51
CATEGORIES=	mail
MASTER_SITES=	ftp://ftp.mew.org/pub/Mew/beta/

MAINTAINER=	tech-pkg-ja@jp.netbsd.org
HOMEPAGE=	http://www.mew.org/
COMMENT=	Messaging in the Emacs World

DEPENDS+=	emacs>=20.7:../../editors/emacs

MEW_CONTRIB_DIR=	${PREFIX}/share/emacs/site-lisp/mew/contrib
MEW_CONTRIB=	00readme 00readme-namazu.jis README-mewinc.jis \
	mew-browse.el mew-caesar.el mew-fancy-summary.el mew-gnus.el \
	mew-nmz-fixer.el mew-nmz.el mew-refile-view.el mew-smime-ja.texi \
	mew-toolbar-frame.el
MEW_CONTRIB_SCRIPT=	incdir incmbox mewinc

pre-configure:
	for f in `find ${WRKSRC}/contrib -type f -print| \
		xargs ${GREP} -l '#!/usr/local'`; do \
		${SED} -e 's:/usr/local:'${PREFIX}':g' < $$f > $$f.pdone \
		&& ${MV} $$f.pdone $$f; \
	done

post-install:
	${INSTALL_DATA_DIR} ${MEW_CONTRIB_DIR}
.for f in ${MEW_CONTRIB}
	${INSTALL_DATA} ${WRKSRC}/contrib/$f ${MEW_CONTRIB_DIR}
.endfor
.for f in ${MEW_CONTRIB_SCRIPT}
	${INSTALL_SCRIPT} ${WRKSRC}/contrib/$f ${PREFIX}/bin
.endfor

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