summaryrefslogtreecommitdiff
path: root/mail/wl/Makefile
blob: 2d6e9c7ff9b3382f0c7f1d3df206ff75c246f9b9 (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
# $NetBSD: Makefile,v 1.12 2003/01/28 03:08:01 uebayasi Exp $

DISTNAME=	wl-2.10.0
CATEGORIES=	mail
MASTER_SITES=	ftp://ftp.ring.gr.jp/pub/text/elisp/wl/stable/

MAINTAINER=	tech-pkg-ja@jp.netbsd.org
HOMEPAGE=	http://www.gohome.org/wl/
COMMENT=	mail/news management system with IMAP4rev1 support for Emacs

DEPENDS+=	semi>=1.13.7:../../devel/semi
# XXX please someone adjust paths and PLIST for XEmacs...
EMACS_VERSIONS_ACCEPTED=	emacs21 emacs20

MAKE_FLAGS+=	LISPDIR=${EMACS_LISPPREFIX}
MAKE_FLAGS+=	PIXMAPDIR=${PREFIX}/share/wl
INSTALL_TARGET=	install install-info
INFO_FILES=	wl.info wl-ja.info

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

DOCDIR=		${PREFIX}/share/doc/wl
EXAMPLESDIR=	${PREFIX}/share/examples/wl

PLIST_SRC=	${WRKDIR}/PLIST

post-build:
	@{ \
		${CAT} ${PKGDIR}/PLIST.header; \
		${FIND} ${WRKSRC} -name '*.elc' | \
		while read f; do \
			g=$$(basename $$f); \
			echo '$${EMACS_LISPPREFIX}/wl/'$${g%.elc}.el; \
			echo '$${EMACS_LISPPREFIX}/wl/'$$g; \
		done | ${SORT}; \
		${CAT} ${PKGDIR}/PLIST.footer; \
	} >${PLIST_SRC}

post-install:
	@${INSTALL_DATA_DIR} ${DOCDIR}/en ${DOCDIR}/ja
	@for f in BUGS NEWS README; do \
		${INSTALL_DATA} ${WRKSRC}/$$f ${DOCDIR}/en; \
		${INSTALL_DATA} ${WRKSRC}/$${f}.ja ${DOCDIR}/ja; \
	done
	@${INSTALL_DATA_DIR} ${EXAMPLESDIR}/en ${EXAMPLESDIR}/ja
	@${INSTALL_DATA} ${WRKSRC}/samples/en/dot.* ${EXAMPLESDIR}/en
	@${INSTALL_DATA} ${WRKSRC}/samples/ja/dot.* ${EXAMPLESDIR}/ja

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