From owner-freebsd-ports Fri Apr 6 23:47:58 2001 Delivered-To: freebsd-ports@freebsd.org Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by hub.freebsd.org (Postfix) with ESMTP id 52A0137B424; Fri, 6 Apr 2001 23:47:54 -0700 (PDT) (envelope-from stijn@pcwin002.win.tue.nl) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.11.3/8.11.3) id f376lde59296; Sat, 7 Apr 2001 08:47:39 +0200 (CEST) (envelope-from stijn) Date: Sat, 7 Apr 2001 08:47:39 +0200 From: Stijn Hoop To: Marc van Woerkom Cc: freebsd-gnats-submit@freebsd.org, ports@freebsd.org Subject: Re: %20ports/26104:%20PORT%20UPDATE%3A%20add%20%24%7BFREETYPE%5FCONFIG%7D%20support%20for%20graphics%2Fgd Message-ID: <20010407084739.A58824@pcwin002.win.tue.nl> References: <200104062034.f36KY3u08063@oranje.my.domain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200104062034.f36KY3u08063@oranje.my.domain>; from van.woerkom@netcologne.de on Fri, Apr 06, 2001 at 10:34:03PM +0200 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Apr 06, 2001 at 10:34:03PM +0200, Marc van Woerkom wrote: > 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. Yes, the various XFree86-4-* ports _do_ install freetype-config in ${X11BASE}/bin. However, without this not-so-correct fix, I can't even tell the port that I do have freetype-config. With it, I can at least use it, although I have to think and do a make FREETYPE_CONFIG=${X11BASE}/bin/freetype-config install So therefore I still think it's worthwhile enough to be committed. > 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 That would be OK. > 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) This is the best solution IMHO. > 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//+CONFIG > > where +CONFIG holds the gcc options to link against the > library. Hmm, interesting thought. Maybe +CONFIG could also record the various WITH_ and WITHOUT_ options used to install the port? Then one would be able to depend on a port WITH_GNOME or WITHOUT_GNOME support... --Stijn -- Nostalgia ain't what it used to be. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message