# $NetBSD: Makefile,v 1.83 2024/04/06 08:06:01 wiz Exp $ PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME:S/mozc-/mozc-elisp-/} PKGREVISION= 1 CATEGORIES= inputmethod editors EMACS_MODULES= base leim .include "../../editors/emacs/modules.mk" INSTALLATION_DIRS= ${EMACS_LISPPREFIX} bin do-build: cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ ${PREFIX}/bin/bazel \ --output_user_root=${WRKDIR}/bazel \ --client_debug \ build \ unix/emacs:mozc_emacs_helper \ --host_action_env=CWRAPPERS_CONFIG_DIR=${CWRAPPERS_CONFIG_DIR} \ --action_env=CWRAPPERS_CONFIG_DIR=${CWRAPPERS_CONFIG_DIR} \ --host_action_env=PATH=${PATH} \ --action_env=PATH=${PATH} \ --sandbox_debug \ --verbose_failures \ --subcommands \ --config oss_linux --compilation_mode opt && \ ${EMACS_BIN} --no-init-file --no-site-file -batch \ -f batch-byte-compile ${WRKSRC}/unix/emacs/mozc.el do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bazel-out/${OSDEST}/bin/unix/emacs/mozc_emacs_helper \ ${DESTDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/unix/emacs/mozc.el \ ${DESTDIR}${EMACS_LISPPREFIX} ${INSTALL_DATA} ${WRKSRC}/unix/emacs/mozc.elc \ ${DESTDIR}${EMACS_LISPPREFIX} .include "../../inputmethod/mozc-server/Makefile.common" .include "../../mk/bsd.pkg.mk"