Date: Fri, 6 Apr 2001 22:34:03 +0200 (CEST) From: Marc van Woerkom <van.woerkom@netcologne.de> To: freebsd-gnats-submit@FreeBSD.org, stijn@win.tue.nl, ports@FreeBSD.org Subject: Re:%20ports/26104:%20PORT%20UPDATE%3A%20add%20%24%7BFREETYPE%5FCONFIG%7D%20support%20for%20graphics%2Fgd Message-ID: <200104062034.f36KY3u08063@oranje.my.domain>
next in thread | raw e-mail | index | archive | help
Hi, I ran into the same trap over here (latest XF4). The suggested fix is not general enough: > --- /usr/ports/graphics/gd/Makefile Sun Feb 25 05:30:46 2001 > +++ gd/Makefile Mon Mar 26 11:05:28 2001 > @@ -20,6 +20,8 @@ > jpeg.9:${PORTSDIR}/graphics/jpeg \ > freetype.6:${PORTSDIR}/print/freetype2 > >+FREETYPE_CONFIG?= ${LOCALBASE}/bin/freetype-config > I suppose that "freetype-config" utility comes with the stand-alone freetype2 library from ports/print/freetype2, but XFree86 4.0.3, which is also a source for libfreetype.6, does not come with a freetype-config utility and if it would, it would probably put its into ${X11BASE}/bin. I can think of these solutions: 1. have ports/graphics/gd/Makefile find out the full path where libfreetype.6 is installed, use the prefix of this path (/usr/X11.., /usr/local.., ..) to look for the includes as well or 2. add a freetype-config script to XF4 port (and change ${LOCALBASE}/bin/freetype-config into plain freetype-config, hoping the right one is in PATH) RFC: This "foo-config" script technique seems to be popular with the Linux/GTK bunch. I once asked Havoc about it and he responded: http://sources.redhat.com/ml/inti/2000-q4/msg00014.html Thus the generalisation is a generic "pkg-config" command with a repository of options in "${SOME_PREFIX}/lib/pkg-config/*.pc". We could write a BSD "pkg_config" config command which retrieves such information from /var/db/<lib-name>/+CONFIG where +CONFIG holds the gcc options to link against the library. Regards, Marc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104062034.f36KY3u08063>