Date: Sat, 8 Oct 2005 14:27:34 GMT From: MOROHOSHI Akihiko <moro@remus.dti.ne.jp> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/87120: [PATCH] Add libiconv support to devel/mingw32-gcc Message-ID: <200510081427.j98ERY5H064788@www.freebsd.org> Resent-Message-ID: <200510081430.j98EUMMM062882@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 87120 >Category: ports >Synopsis: [PATCH] Add libiconv support to devel/mingw32-gcc >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Oct 08 14:30:22 GMT 2005 >Closed-Date: >Last-Modified: >Originator: MOROHOSHI Akihiko >Release: 6.0-BETA5 >Organization: >Environment: FreeBSD example.com 6.0-BETA5 FreeBSD 6.0-BETA5 #3: Sat Oct 1 14:46:05 JST 2005 moro@example.com:/home/tmp/obj/home/releng6/src/sys/EXAMPLE i386 >Description: Previous versions automatically found and linked libiconv, but current version does not. Please support libiconv. It's very important for Japanese. Because character encodings for Japanese used in UNIX world (EUC-JP or UTF-8) and DOS/Windows world (Shift_JIS) are different. And to make matters worse, we cannot use Shift_JIS with mingw tools, because uses '\' (0x5c) as the second byte of some characters so that many no-localized tools including gcc are confused. In short, libiconv support is essential. >How-To-Repeat: >Fix: diff -urN mingw32-gcc.orig/Makefile mingw32-gcc/Makefile --- mingw32-gcc.orig/Makefile Mon Apr 11 00:01:28 2005 +++ mingw32-gcc/Makefile Sat Oct 8 07:26:31 2005 @@ -76,6 +76,15 @@ .include <bsd.port.pre.mk> +.if exists(${LOCALBASE}/lib/libiconv.so.3) +WITH_LIBICONV= yes +.endif + +.if defined(WITH_LIBICONV) +LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv +CONFIGURE_ARGS+= --with-libiconv-prefix=${LOCALBASE} +.endif + .if ${ARCH} == "alpha" BROKEN= "C++ could not be compiled on Alphas" .endif diff -urN mingw32-gcc.orig/files/patch-gcc-configure mingw32-gcc/files/patch-gcc-configure --- mingw32-gcc.orig/files/patch-gcc-configure Thu Jan 1 09:00:00 1970 +++ mingw32-gcc/files/patch-gcc-configure Sat Oct 8 06:32:58 2005 @@ -0,0 +1,11 @@ +--- gcc/configure.orig Tue Jul 13 15:58:29 2004 ++++ gcc/configure Sat Oct 8 06:05:45 2005 +@@ -7571,7 +7571,7 @@ + rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext + if test "$am_cv_func_iconv" != yes; then + am_save_LIBS="$LIBS" +- LIBS="$LIBS $am_cv_libiconv_ldpath -liconv" ++ LIBS="$LIBS $am_cv_lib_iconv_ldpath -liconv" + cat >conftest.$ac_ext <<_ACEOF + #line $LINENO "configure" + /* confdefs.h. */ >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510081427.j98ERY5H064788>