diff options
author | okazaki <okazaki@FreeBSD.org> | 2003-10-03 11:56:58 +0000 |
---|---|---|
committer | okazaki <okazaki@FreeBSD.org> | 2003-10-03 11:56:58 +0000 |
commit | 61929ab1c14923bdcda3855126cd4e68c138ea45 (patch) | |
tree | 601e6cc15565ff545980d135fe55d3970ca8bedd /japanese | |
parent | 7c190853816fc3b98e32c79af568003dd491bec5 (diff) | |
download | FreeBSD-ports-61929ab1c14923bdcda3855126cd4e68c138ea45.zip FreeBSD-ports-61929ab1c14923bdcda3855126cd4e68c138ea45.tar.gz |
Avoid a bus error in the do-build target when nl_langinfo(CODESET) returns "EUC".
PR: ports/57490
Diffstat (limited to 'japanese')
-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 fc31ac5..51e360b3 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 |