pkgsrc/textproc/mecab-base/Makefile
obache 5a170092db Update mecab to 0.993.
2012-01-27 MeCab 0.993
* Fix to works well for MeCab::Tagger::formatNode()
* To reduce stack size, save almost of local variables(arrays) to heap.

2012-01-14 MeCab 0.992
* Fix typos in source codes.

2012-01-14 MeCab 0.991
* Fix parse error with null strings or space strings.
* Fix failure for creation of user dictionaries.

2011-12-24 MeCab 0.99
* Add MeCab::Model MeCab::Lattice classes.
  Improve usabilities on multi threads environment. Multiple threads can parse
  with shareing same dictionary.
* Remove function for automatic dictionary reference share when refereing same
  dictionaly (You can do same works with MeCab::Model).
* Add function for atomic dictionaly update in parsing. Model::swap()
* Change Windows version to Unicode binary.
* Remove experimental online learning, HMM and EM learning codes.
* Remove MeCab::Node:(begin|end)_node_list members.
* minor bug fixes.
2012-02-27 11:53:06 +00:00

60 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.7 2012/02/27 11:53:07 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"
.include "../../mk/compiler.mk"
.if ${OPSYS} == "SunOS"
USE_TOOLS+= gmake
. if !empty(CC_VERSION:Mgcc-4.[6-9].*)
CFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -std=c99
. endif
.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
# No TLS support for NetBSD.
.if !empty(MACHINE_PLATFORM:MNetBSD-[1-5].*-*)
SUBST_SED.pthread+= -e 's|enable_tls=yes|enable_tls=no|g'
.endif
# require i486 features for atomic_op.
.if ${MACHINE_ARCH} == "i386"
CFLAGS+= -march=i486
CXXFLAGS+= -march=i486
.endif
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"