diff options
author | OKAZAKI Tetsurou <okazaki@FreeBSD.org> | 2003-10-03 11:56:58 +0000 |
---|---|---|
committer | OKAZAKI Tetsurou <okazaki@FreeBSD.org> | 2003-10-03 11:56:58 +0000 |
commit | 2613e7e16875584746c0ae339ac8433b628d1c0f (patch) | |
tree | 8e5e44b2f822eb120b7736cb2aa3a859bf54e20c /japanese/groff | |
parent | 19fd9497016d0fd56accdac09bd957ba93179313 (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/groff')
-rw-r--r-- | japanese/groff/Makefile | 13 |
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 |