summaryrefslogtreecommitdiff
path: root/inputmethod/canuum/Makefile
blob: 3ceceb2105abeac52fa63b5fa2424a173f1245d7 (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
# $NetBSD: Makefile,v 1.4 2002/10/25 17:13:14 wiz Exp $
#

DISTNAME=	canuum-1.0
PKGREVISION=	1
CATEGORIES=	japanese inputmethod
MASTER_SITES=	ftp://ftp.nec.co.jp/pub/Canna/Canna35/
DISTFILES=	Uum4.109.tar.gz Canna35b2.tar.gz
EXTRACT_ONLY=	Uum4.109.tar.gz

MAINTAINER=	oishi@ims.ac.jp
HOMEPAGE=	http://www.nec.co.jp/japanese/product/computer/soft/canna/
COMMENT=	Japanese input tty frontend for Canna using uum

USE_BUILDLINK2=	YES
USE_IMAKE=	YES
USE_X11=	YES
MAKE_ARGS=	PREFIX=${PREFIX}
WRKSRC=		${WRKDIR}/Canna35b2/canuum

MAKE_ENV+=	CCOPTIONS="${CPPFLAGS}" EXTRA_LDOPTIONS="${LDFLAGS}"

post-extract:
	@${GTAR} -xzf ${DISTDIR}/Canna35b2.tar.gz -C ${WRKDIR} \
		Canna35b2/Canna.conf Canna35b2/canuum
	@${MV} ${WRKDIR}/Canna35b2/Canna.conf ${WRKSRC}/
	@${CP} ${WRKDIR}/Uum4.109/* ${WRKSRC}

pre-patch:
	@(cd ${WRKSRC}; ${PATCH} ${PATCH_DIST_ARGS} < Canuum.patch)

do-configure:
	@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${XMKMF_CMD}; \
		${MAKE} ${MAKE_ARGS} Makefile; \
		${MAKE} ${MAKE_ARGS} cannaconf.h; ${MAKE} ${MAKE_ARGS} depend)

do-build:
	@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_ARGS} all)

pre-install:
	@${MKDIR} ${WRKSRC}/misc

post-install:
	@${INSTALL_MAN} ${WRKSRC}/canuum.jmn \
		${PREFIX}/man/ja_JP.EUC/man1/canuum.1

.include "../../devel/nbitools/buildlink2.mk"
.include "../../inputmethod/canna-lib/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"