summaryrefslogtreecommitdiff
path: root/inputmethod/fcitx5-mozc/Makefile
blob: 47a446e054b4f0f0199c1ee4f55ff531052e2d6c (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
# $NetBSD: Makefile,v 1.2 2021/02/27 04:23:35 ryoon Exp $

PKGNAME=	${DISTNAME:S/fcitx-/fcitx5-/}
PKGREVISION=	1

INSTALLATION_DIRS+=	lib/fcitx5
INSTALLATION_DIRS+=	share/fcitx5/addon
INSTALLATION_DIRS+=	share/fcitx5/inputmethod
.for lang in ca da de he ja ko ru zh_CN zh_TW
INSTALLATION_DIRS+=	share/locale/${lang}/LC_MESSAGES
.endfor
INSTALLATION_DIRS+=	share/metainfo
.for size in 128x128 32x32 48x48
INSTALLATION_DIRS+=	share/icons/hicolor/${size}/apps
.endfor

USE_TOOLS+=	bash

DEPENDS+=	xdg-utils-[0-9]*:../../misc/xdg-utils
DEPENDS+=	mozc-server-[0-9]*:../../inputmethod/mozc-server
DEPENDS+=	mozc-tool-[0-9]*:../../inputmethod/mozc-tool

pre-configure:
	# Do not fail by fcitx4 is not found.
	${RM} ${WRKSRC}/unix/fcitx/fcitx.gyp

do-build:
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
		${PYTHONBIN} build_mozc.py build -c ${MOZC_BUILD_MODE} \
			unix/fcitx5/fcitx5.gyp:fcitx5-mozc

do-install:
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${INSTALL_ENV} \
		OSDEST=${OSDEST} _bldtype=${MOZC_BUILD_MODE} \
		${BASH} ../scripts/install_fcitx5

.include "../../inputmethod/fcitx5/buildlink3.mk"
.include "../../inputmethod/fcitx5-mozc/Makefile.common"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"