summaryrefslogtreecommitdiff
path: root/editors/mule-ucs/Makefile
blob: 666b18b090e655715d2b4319f94e12c4c08838e8 (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
# $NetBSD: Makefile,v 1.19 2008/11/26 13:07:38 obache Exp $

DISTNAME=	Mule-UCS-0.84
PKGNAME=	${EMACS_PKGNAME_PREFIX}${DISTNAME}
PKGREVISION=	5
CATEGORIES=	editors
MASTER_SITES=	http://unit.aist.go.jp/itri/itri-gist/ftp.m17n.org/pub/mule/Mule-UCS/

MAINTAINER=	uebayasi@NetBSD.org
#HOMEPAGE=
COMMENT=	Another encoding conversion mechanism for Emacs

PKG_DESTDIR_SUPPORT=	user-destdir
INSTALLATION_DIRS=	${EMACS_LISPPREFIX:C|^${PREFIX}/||}/mule-ucs \
			${EMACS_LISPPREFIX:C|^${PREFIX}/||}/mule-ucs/big5conv \
			${EMACS_LISPPREFIX:C|^${PREFIX}/||}/mule-ucs/jisx0213 \
			${EMACS_LISPPREFIX:C|^${PREFIX}/||}/mule-ucs/reldata

# Mule 4.1 feature required by Mule-UCS was added to 20.7nb1.
EMACS_VERSIONS_ACCEPTED=	emacs21 emacs21nox emacs20
BUILDLINK_API_DEPENDS.emacs20+=	emacs>=20.7nb1

MESSAGE_SUBST+=	EMACS_LISPPREFIX=${EMACS_LISPPREFIX:Q}

do-build:
	@cd ${WRKSRC}; \
	${EMACS_BIN} -q --no-site-file -batch -l mucs-comp.el
	@cd ${WRKSRC}/lisp/big5conv; \
	${EMACS_BIN} -q --no-site-file -batch -l big5-comp.el
	@cd ${WRKSRC}/lisp/jisx0213; \
	${EMACS_BIN} -q --no-site-file -batch -l x0213-comp.el

do-install:
	cd ${WRKSRC}/lisp && \
	for f in ChangeLog README* *.txt *.el *.elc *.txt; do \
		${INSTALL_DATA} $$f ${DESTDIR}${EMACS_LISPPREFIX}/mule-ucs; \
	done
	${INSTALL_DATA} ${WRKSRC}/lisp/big5conv/* \
	    ${DESTDIR}${EMACS_LISPPREFIX}/mule-ucs/big5conv; \
	${INSTALL_DATA} ${WRKSRC}/lisp/jisx0213/* \
	    ${DESTDIR}${EMACS_LISPPREFIX}/mule-ucs/jisx0213; \
	${INSTALL_DATA} ${WRKSRC}/lisp/reldata/* \
	    ${DESTDIR}${EMACS_LISPPREFIX}/mule-ucs/reldata

.include "../../editors/emacs/modules.mk"
.include "../../mk/bsd.pkg.mk"