|
From: Tatsuro M. <tma...@ya...> - 2008-12-18 00:35:22
|
Hello Ethan A Merritt
cc. Petr Mikulik and Pierre Joye
Considering that the libfontconfig is not required for previous version of libgd and iconv is optional
for libdgd-2.0.36RC1, I have considered the following patch to makefile.mgw.
Regards
Tatsuro
*** makefile.mgw.orig Tue Nov 25 16:46:59 2008
--- makefile.mgw Thu Dec 18 09:03:32 2008
***************
*** 47,56 ****
# If libgd has been compiled with TrueType font support, then you can use
# scaled TrueType fonts. If not, then uncomment FREETYPE.
# Requires GD, PNG and Z libraries, optionally libfreetype.
! #
NEWGD=1
JPEG=1
FREETYPE=1
# PDF device driver
# Requires PNG and Z libraries based on particular PDF library used, and
--- 47,61 ----
# If libgd has been compiled with TrueType font support, then you can use
# scaled TrueType fonts. If not, then uncomment FREETYPE.
# Requires GD, PNG and Z libraries, optionally libfreetype.
! # The recent GD requires libfontconfig, and optinally uses libiconv
! # If GD ilibraries requires either and both, uncomment FONTCONFIG
! # (and ICONV) suitably.
NEWGD=1
JPEG=1
FREETYPE=1
+ #FONTCONFIG=1
+ #ICONV=1
+
# PDF device driver
# Requires PNG and Z libraries based on particular PDF library used, and
***************
*** 214,219 ****
--- 219,230 ----
CFLAGS += -DHAVE_GD_TTF
TERMLIBS += -lfreetype
endif
+ ifdef FONTCONFIG
+ TERMLIBS += -lfontconfig
+ endif
+ ifdef ICONV
+ TERMLIBS += -liconv
+ endif
endif
ifdef PDF
# ****end of the patch *********
--- Ethan A Merritt <merritt@u.washington.edu> wrote:
> On Wednesday 17 December 2008, Tatsuro MATSUOKA wrote:
> > Hello Ethan and Petr
> >
> > Thank you for your replies.
> >
> > From the config.log, the configure script of the gd-2.0.36RC1 searches both libiconv and
> fontconfig.
> >
> > The gd-2.0.36RC1 is the latest gd source except for that on cvs-trees.
>
> OK. I have now read the source files for gd-2.0.36RC1.
> I see that libiconv is optional, and used only by the file:
>
> /* gdkanji.c (Kanji code converter) */
> /* written by Masahito Yamaga (ma...@ya...) */
>
> I think this is only relevant if you need conversion from SJIS encoding,
> because kanji use works on my UTF8-based machines without using libiconv.
> The ./configure script for libgd searches for libiconv on your system
> when building libgd, and includes this optional code only if it is found.
>
> Ethan
--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/
|