44440faafd
2009-09-27 MeCab 0.98 * UTF16 support (experimental) * On Windows, changed to use Native API (ex. MultiByteToWideChar) for codeset conversion. * Convert source code to Google coding style. * Add EON (end of N-best) format option (-S or --eon-format) * Fixes problems hankaku-kana handling on Shift-JIS environment * support online leraning (experimental) * Now buildable without -Wno-deprecated * and some small fixes.
45 lines
1 KiB
Makefile
45 lines
1 KiB
Makefile
# $NetBSD: Makefile,v 1.5 2009/10/14 08:22:35 obache Exp $
|
|
#
|
|
|
|
.include "../../textproc/mecab/Makefile.common"
|
|
|
|
DISTNAME= mecab-${MECAB_VERSION}
|
|
PKGNAME= mecab-base-${MECAB_VERSION}
|
|
|
|
COMMENT= Yet Another Part-of-Speech and Morphological Analyzer
|
|
LICENSE= gnu-gpl-v2 OR gnu-lgpl-v2.1 OR modified-bsd
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LANGUAGES= c c++
|
|
USE_LIBTOOL= yes
|
|
OWN_DIRS= ${PREFIX:Q}/lib/mecab/dic
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
USE_TOOLS+= gmake
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
|
|
TEST_TARGET= check
|
|
|
|
EGDIR= ${PREFIX}/share/examples/mecab
|
|
CONF_FILES= ${EGDIR:Q}/mecabrc ${PKG_SYSCONFDIR:Q}/mecabrc
|
|
|
|
SUBST_CLASSES+= confdir
|
|
SUBST_STAGE.confdir= pre-configure
|
|
SUBST_FILES.confdir= Makefile.in
|
|
SUBST_SED.confdir= -e "s,\$$(sysconfdir),${EGDIR},"
|
|
|
|
SUBST_CLASSES+= pthread
|
|
SUBST_STAGE.pthread= pre-configure
|
|
SUBST_FILES.pthread= configure
|
|
SUBST_SED.pthread= -e 's|-lpthread||g'
|
|
|
|
PTHREAD_AUTO_VARS= yes
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|