summaryrefslogtreecommitdiff
path: root/inputmethod/ddskk/Makefile
blob: e4fa865c9abc623b18a91d3f74154bfc0d11083c (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
# $NetBSD: Makefile,v 1.4 2002/10/09 03:59:53 uebayasi Exp $
#

DISTNAME=	ddskk20020929
PKGNAME=	ddskk-20020929
CATEGORIES=	japanese inputmethod
MASTER_SITES=	http://openlab.ring.gr.jp/skk/maintrunk/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	tech-pkg-ja@jp.netbsd.org
HOMEPAGE=	http://openlab.ring.gr.jp/skk/index.html
COMMENT=	Japanese input methods for Emacs

DEPENDS=	apel>=10.2:../../devel/apel

MAKEFLAGS=	EMACS=${EMACS_BIN}
ALL_TARGET=	elc

INFO_FILES=	skk.info

do-configure:
	@${MV} ${WRKSRC}/SKK-CFG ${WRKSRC}/SKK-CFG.orig
	@${SED} \
		-e 's|@PREFIX@|${PREFIX}|g' \
		-e 's|@EMACS_LISPPREFIX@|${EMACS_LISPPREFIX}|g' \
	${FILESDIR}/SKK-CFG >${WRKSRC}/SKK-CFG

# Create PLIST, since some files are installed conditionally and what
# file will be installed is hard to expect before configure / build.
# The idea here is that files compiled as *.elc will be installed.
post-build:
	@{ \
		${CAT} ${PKGDIR}/PLIST.header; \
		cd ${WRKSRC}; \
		for e in *.elc; do \
			${ECHO} '$${EMACS_LISPPREFIX}/skk/'$${e%.elc}.el; \
			${ECHO} '$${EMACS_LISPPREFIX}/skk/'$$e; \
		done; \
		${CAT} ${PKGDIR}/PLIST.footer; \
	} >${PKGDIR}/PLIST

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