Date: Sun, 03 Jul 2005 20:43:50 -0700 From: Adam Weinberger <adamw@magnesium.net> To: Michael Johnson <ahze@ahze.net> Cc: freebsd-gnome@freebsd.org Subject: Re: gnome-config not found (not pkg-config!) Message-ID: <42C8B076.8080800@magnesium.net> In-Reply-To: <D9877B8C-4C36-4877-832C-08FA3DFDCBD8@ahze.net> References: <11f1927405070320172fb68849@mail.gmail.com> <D9877B8C-4C36-4877-832C-08FA3DFDCBD8@ahze.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Michael Johnson wrote: > > On Jul 3, 2005, at 11:17 PM, David Morse wrote: > >> I'm porting an older gnome application to FreeBSD. It was written in >> 2001. >> >> I'm new to FreeBSD as of yesterday. I haven't figured out how to ask >> it 'what pakgage has a file name gnome-config'. And despite having an >> apperantly working gnome installation, there is no file named >> 'gnome-config' anywhere on this system... >> >> It looks like pkg-config is the latter-day gnome-config, but its not >> obvious how to translate the arguments between them. The usages I >> need are: >> gnome-config --cflags gnome gnomeui >> gnome-config --cflags gnomeui >> gnome-config --libs gnome gnomeui >> > gnome-config is part of x11/gnomelibs > > >> Gnome-config, where are you? : ( gnome-config was axed, because it had a very limited scope. pkg-config can now be used by any number of programs. An app or library needs only to install a .pc file, and pkg-config will take care of the rest. Your syntax is very close to being right. First of all, the package names have changed so that they're not entirely gnome-specific. For example, you won't find a "gnomeui" package. Instead, it's called libgnomeui-2.0 or something (locate libgnomeui | grep "\.pc$" will do the trick). --cflags and --libs still behave as expected, but the behaviour of --version has changed. --version gives the version of pkg-config itself; to ascertain the version of program foo (in foo.pc), you'd use pkg-config --modversion foo. Does this help? # Adam -- Adam Weinberger adamw@magnesium.net || adamw@FreeBSD.org adamw@vectors.cx || adamw@gnome.org http://www.vectors.cx
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42C8B076.8080800>