diff options
Diffstat (limited to 'japanese/groff/Makefile')
-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 |