Howto add extra lib to port?

[ Available lists | Index of freebsd-questions | Month of Jul 2001 | Week of 9 Jul 2001 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
<reese@adeptscience.com>
Date
9 Jul 2001 11:32:45
Subject
Howto add extra lib to port?
Message-ID
3B49BFCA.16888.152B8CC3@localhost

Replies

[ Hide this part ]
Hi,

Hi
This may be a bit off topic for this group but I don't know where else
to ask it. I am trying to use truetype fonts with PHP Version 4.0.6 on a
FreeBSD 4.2 system, which requries that you have libgd and lt1. I have
compiled the FreeBSD t1 port and the gd port. I then configured PHP
with:

./configure --with-xml --with-zlib-dir=/usr --with-png-dir=/usr/local --with-
jpeg-dir=/usr/local --with-freetype-dir=/usr/local --with-t1lib=/usr/local --
with-ttf=/usr/local --with-gd=/usr/local --with-mysql=/usr/local --with-
magic-quotes --with-apxs=/usr/local/sbin/apxs > config.log

I think there is something wrong with my compile of libgd cause the
./configure output says:

checking whether to include T1lib support... yes
checking for T1_GetExtend in -lt1... yes

but
checking for gdImageStringFTEx in -lgd... no

so question is how to I get the gd [ :-) ] port to compile in the
gdImageStringFTEx function?


Here is the complete section of configure output from the php configure.


checking whether to include GD support... yes
checking whether to enable truetype string function in gd... no
checking for the location of libjpeg... yes
checking for jpeg_read_header in -ljpeg... yes
checking for the location of libpng... yes
checking for png_info_init in -lpng... yes
checking for the location of libXpm... no
If configure fails try --with-xpm-dir=<DIR>
checking for freetype(2)... yes
checking whether to include include FreeType 1.x support... yes
no - FreeType 2.x is to be used instead
checking whether to include T1lib support... yes
checking for T1_GetExtend in -lt1... yes
checking for gdImageString16 in -lgd... yes
checking for gdImagePaletteCopy in -lgd... yes
checking for gdImageCreateFromPng in -lgd... yes
checking for gdImageCreateFromGif in -lgd... no
checking for gdImageWBMP in -lgd... yes
checking for gdImageCreateFromJpeg in -lgd... yes
checking for gdImageCreateFromXpm in -lgd... yes
checking for gdImageCreateTrueColor in -lgd... no
checking for gdImageSetTile in -lgd... yes
checking for gdImageSetBrush in -lgd... yes
checking for gdImageStringFTEx in -lgd... no
checking for gdImageColorClosestHWB in -lgd... yes
checking for gdImageColorResolve in -lgd... yes
checking for gdImageGifCtx in -lgd... no
checking whether to include GNU gettext support... no
checking for gmp support... no

and a bit from the make all of gd.

If you want to compile in X support use 'make -DWITH_X11' instead
===> Extracting for gd-1.8.3
>> Checksum OK for gd-1.8.3.tar.gz.
===> gd-1.8.3 depends on shared library: png.4 - found
===> gd-1.8.3 depends on shared library: jpeg.9 - found
===> gd-1.8.3 depends on shared library: ttf.4 - found
===> Patching for gd-1.8.3
===> Applying FreeBSD patches for gd-1.8.3
===> Configuring for gd-1.8.3
===> Building for gd-1.8.3
cc -I. -I/usr/local/include -I/usr/local/include/freetype -O -pipe -
DHAVE_JPEG -DHAVE_LIBTTF -c gd.c
cc -I. -I/usr/local/include -I/usr/local/include/freetype -O -pipe -
DHAVE_JPEG -DHAVE_LIBTTF -c gd_gd.c


Do I need another DHAVE and if so how to add it to the port?

Cheers
Charlie Reese


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Elapsed time: 0.093 seconds