blob: 8657e76e9313d7f55e1f6377d9455b84ee92aac5 (
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
51
52
53
|
# $NetBSD: Makefile,v 1.9 2016/03/05 11:28:43 jperkin Exp $
PKGNAME= uim-${DISTNAME}
PKGREVISION= 2
CONFLICTS+= ibus-mozc<=1.13.1651.102
INSTALLATION_DIRS+= lib/uim/plugin share/uim/pixmaps
DEPENDS+= xdg-utils-[0-9]*:../../misc/xdg-utils
DEPENDS+= mozc-renderer-[0-9]*:../../inputmethod/mozc-renderer
DEPENDS+= mozc-server-[0-9]*:../../inputmethod/mozc-server
DEPENDS+= mozc-tool-[0-9]*:../../inputmethod/mozc-tool
SUBST_CLASSES+= mozc_tool
SUBST_STAGE.mozc_tool= pre-configure
SUBST_MESSAGE.mozc_tool= Fixing mozc_tool path
SUBST_FILES.mozc_tool= scm/mozc-custom.scm
SUBST_SED.mozc_tool= -e 's,/usr/lib/mozc/mozc_tool,${PREFIX}/libexec/mozc_tool,g'
post-extract:
mv ${WRKDIR}/${UIM_MOZC}/uim ${WRKSRC}/unix
mv ${WRKDIR}/${UIM_MOZC}/scm ${WRKSRC}
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${PYTHONBIN} build_mozc.py build -c ${MOZC_BUILD_MODE} ${_MAKE_JOBS} \
unix/uim/uim.gyp:uim-mozc \
renderer/renderer.gyp:mozc_renderer
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/out_${OSDEST}/${MOZC_BUILD_MODE}/libuim-mozc.so \
${DESTDIR}${PREFIX}/lib/uim/plugin
${INSTALL_DATA} ${WRKSRC}/data/images/unix/ime_product_icon_opensource-32.png \
${DESTDIR}${PREFIX}/share/uim/pixmaps/mozc.png
${INSTALL_DATA} ${WRKSRC}/data/images/unix/ui-tool.png \
${DESTDIR}${PREFIX}/share/uim/pixmaps/mozc_tool_selector.png
${INSTALL_DATA} ${WRKSRC}/data/images/unix/ui-properties.png \
${DESTDIR}${PREFIX}/share/uim/pixmaps/mozc_tool_config_dialog.png
${INSTALL_DATA} ${WRKSRC}/data/images/unix/ui-dictionary.png \
${DESTDIR}${PREFIX}/share/uim/pixmaps/mozc_tool_dictionary_tool.png
${INSTALL_DATA} ${WRKSRC}/scm/mozc-custom.scm \
${DESTDIR}${PREFIX}/share/uim
${INSTALL_DATA} ${WRKSRC}/scm/mozc-key-custom.scm \
${DESTDIR}${PREFIX}/share/uim
${INSTALL_DATA} ${WRKSRC}/scm/mozc.scm \
${DESTDIR}${PREFIX}/share/uim
UIM_MODULES= mozc
.include "../../inputmethod/uim/modules.mk"
.include "../../inputmethod/uim/buildlink3.mk"
.include "../../inputmethod/mozc-server/Makefile.common"
|