pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc Introduce variable MECAB_CHARSET for default charset o...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7178e7c2f08f
branches: trunk
changeset: 540909:7178e7c2f08f
user: obache <obache%pkgsrc.org@localhost>
date: Thu Apr 10 16:43:58 2008 +0000
description:
Introduce variable MECAB_CHARSET for default charset of MeCab.
close PR 38040.
diffstat:
mk/defaults/mk.conf | 7 ++++++-
textproc/mecab-ipadic/Makefile | 6 +++++-
textproc/mecab-jumandic/Makefile | 6 +++++-
3 files changed, 16 insertions(+), 3 deletions(-)
diffs (60 lines):
diff -r 1f4496b33b10 -r 7178e7c2f08f mk/defaults/mk.conf
--- a/mk/defaults/mk.conf Thu Apr 10 16:40:49 2008 +0000
+++ b/mk/defaults/mk.conf Thu Apr 10 16:43:58 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mk.conf,v 1.173 2008/03/25 13:41:46 wiz Exp $
+# $NetBSD: mk.conf,v 1.174 2008/04/10 16:43:58 obache Exp $
#
# This file provides default values for variables that may be overridden
@@ -1266,6 +1266,11 @@
# makeinfo version, also various machine_archs arguments may be set in
# mk/platform/${OPSYS}.mk with the _OPSYS_MAKEINFO_ARGS variable.
+MECAB_CHARSET?= euc-jp
+# default character set of MeCab.
+# Possible: euc-jp, sjis, utf-8
+# Default: euc-jp
+
MLDONKEY_GROUP?= mldonkey
# System group to run mldonkey's core as.
# Possible: any group name
diff -r 1f4496b33b10 -r 7178e7c2f08f textproc/mecab-ipadic/Makefile
--- a/textproc/mecab-ipadic/Makefile Thu Apr 10 16:40:49 2008 +0000
+++ b/textproc/mecab-ipadic/Makefile Thu Apr 10 16:43:58 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2008/02/04 04:58:53 obache Exp $
+# $NetBSD: Makefile,v 1.4 2008/04/10 16:43:58 obache Exp $
#
.include "../../textproc/mecab/Makefile.common"
@@ -12,5 +12,9 @@
GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --with-charset=${MECAB_CHARSET:Q}
+
+BUILD_DEFS+= MECAB_CHARSET
+
.include "../../textproc/mecab-base/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 1f4496b33b10 -r 7178e7c2f08f textproc/mecab-jumandic/Makefile
--- a/textproc/mecab-jumandic/Makefile Thu Apr 10 16:40:49 2008 +0000
+++ b/textproc/mecab-jumandic/Makefile Thu Apr 10 16:43:58 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2008/02/12 14:18:39 obache Exp $
+# $NetBSD: Makefile,v 1.3 2008/04/10 16:43:58 obache Exp $
#
.include "../../textproc/mecab/Makefile.common"
@@ -12,6 +12,10 @@
GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --with-charset=${MECAB_CHARSET:Q}
+
+BUILD_DEFS+= MECAB_CHARSET
+
UNLIMIT_RESOURCES= datasize
.include "../../textproc/mecab-base/buildlink3.mk"
Home |
Main Index |
Thread Index |
Old Index