[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / inputmethod / fcitx5-mozc

File: [cvs.NetBSD.org] / pkgsrc / inputmethod / fcitx5-mozc / Makefile (download)

Revision 1.11, Wed Oct 26 10:31:34 2022 UTC (3 months, 1 week ago) by wiz
Branch: MAIN
Changes since 1.10: +2 -2 lines

*: bump PKGREVISION for libunistring shlib major bump

# $NetBSD: Makefile,v 1.11 2022/10/26 10:31:34 wiz Exp $

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

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"