From owner-freebsd-questions Mon Jul 9 11:32:45 2001 Delivered-To: freebsd-questions@freebsd.org Received: from grizzly.adeptscience.co.uk (grizzly.adeptscience.co.uk [193.116.153.1]) by hub.freebsd.org (Postfix) with ESMTP id 6FB5537B401 for ; Mon, 9 Jul 2001 11:32:40 -0700 (PDT) (envelope-from reese@adeptscience.com) Received: from louis2 (rdu25-11-086.nc.rr.com [24.25.11.86]) by grizzly.adeptscience.co.uk (8.11.1/8.9.3) with ESMTP id f69IXRx67026 for ; Mon, 9 Jul 2001 19:33:27 +0100 (BST) (envelope-from reese@adeptscience.com) From: reese@adeptscience.com To: freebsd-questions@FreeBSD.ORG Date: Mon, 9 Jul 2001 14:29:30 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Howto add extra lib to port? Message-ID: <3B49BFCA.16888.152B8CC3@localhost> X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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= 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