pkgsrc/textproc/mecab-base/Makefile
obache 198e32f400 Update mecab to 0.97.
Pkgsrc changes:
* fix some pkglint warining
* add DESTDIR support.

Changes:
* Fix a bug of exclusive control when dictionary is opened in MultiThreading environment.
* When installing the Windows version, it came to be able to specify the character-code of the dictionary.
* Fix a problem that was not able to be compiled correctly by some compilers.
* Add API that changes partial, analytical mode (Tagger::set_partial())
* Add API that changes generation level of lattice (Tagger::set_lattice_level())
* Add API that changes temperature parameter (Tagger::set_theta())
* Add API that changes all candidate output mode (Tagger::set_all_morphs())
2008-02-04 04:58:52 +00:00

44 lines
1,014 B
Makefile

# $NetBSD: Makefile,v 1.4 2008/02/04 04:58:53 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
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"