aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorokazaki <okazaki@FreeBSD.org>2003-10-03 19:56:58 +0800
committerokazaki <okazaki@FreeBSD.org>2003-10-03 19:56:58 +0800
commit61929ab1c14923bdcda3855126cd4e68c138ea45 (patch)
tree601e6cc15565ff545980d135fe55d3970ca8bedd /japanese
parent7c190853816fc3b98e32c79af568003dd491bec5 (diff)
downloadfreebsd-ports-gnome-61929ab1c14923bdcda3855126cd4e68c138ea45.tar.gz
freebsd-ports-gnome-61929ab1c14923bdcda3855126cd4e68c138ea45.tar.zst
freebsd-ports-gnome-61929ab1c14923bdcda3855126cd4e68c138ea45.zip
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/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