14f579a85a
* Include mk/atomic64.mk to add -march=i586 to CFLAGS and pass CFLAGS to gyp. Fix PR pkg/56025 in another way. * Use external devel/protobuf to avoid internal protobuf build. So bump PKGREVISION. * dictionary/pos_matcher.h does not generated before its use sometimes. Generate it explicitly with dictionary/dictionary_base.gyp:text_dictionary_loader target for mozc-server.
29 lines
875 B
Makefile
29 lines
875 B
Makefile
# $NetBSD: Makefile,v 1.54 2021/02/27 04:19:46 ryoon 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} \
|
|
${PYTHONBIN} build_mozc.py build -c Release \
|
|
unix/emacs/emacs.gyp:mozc_emacs_helper
|
|
cd ${WRKSRC}/unix/emacs && \
|
|
${EMACS_BIN} -q -batch -no-site-file -no-init-file \
|
|
-f batch-byte-compile mozc.el
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/out_${OSDEST}/Release/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"
|