summaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorOKAZAKI Tetsurou <okazaki@FreeBSD.org>2003-10-03 11:56:58 +0000
committerOKAZAKI Tetsurou <okazaki@FreeBSD.org>2003-10-03 11:56:58 +0000
commit2613e7e16875584746c0ae339ac8433b628d1c0f (patch)
tree8e5e44b2f822eb120b7736cb2aa3a859bf54e20c /japanese
parentNew arabic port: khotot (diff)
Avoid a bus error in the do-build target when nl_langinfo(CODESET) returns "EUC".
PR: ports/57490
Notes
Notes: svn path=/head/; revision=90102
Diffstat (limited to 'japanese')
-rw-r--r--japanese/groff/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/japanese/groff/Makefile b/japanese/groff/Makefile
index fc31ac589ef1..51e360b3f208 100644
--- a/japanese/groff/Makefile
+++ b/japanese/groff/Makefile
@@ -68,6 +68,19 @@ DOCUMENTS= ChangeLog.jp NEWS PROBLEMS README README.jp
.include <bsd.port.pre.mk>
+# nl_langinfo(CODESET) drops the support of ja_JP.EUC after 5.1-RELEASE
+.if ${OSVERSION} > 501100
+LOCALE_CMD?= /usr/bin/locale
+.if exists(${LOCALE_CMD})
+CHARMAP!= ${LOCALE_CMD} charmap
+.if (${CHARMAP} == "EUC")
+MAKE_ENV= LC_ALL=C
+pre-build:
+ @${ECHO_CMD} "Warning: Your current locale setting is not supported by the system."
+.endif
+.endif
+.endif
+
# formatting groff.info requires texinfo 4.2
.if ${OSVERSION} < 470000
WITHOUT_INFO= yes