Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Feb 2009 15:01:22 +0100
From:      mva@sysfault.org
To:        Alex Goncharov <alex-goncharov@comcast.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: X drivers depend on Gnome?
Message-ID:  <20090204150122.2obk3musgkw44sko@webmail.df.eu>
In-Reply-To: <E1LUhXO-0000cF-PB@daland.home>
References:  <E1LUQYl-000Cir-UT@daland.home> <op.uostqymy9aq2h7@localhost> <E1LUVek-000EoV-0p@daland.home> <20090204083740.12061iw6kf4c9vwg@webmail.leidinger.net> <E1LUhXO-0000cF-PB@daland.home>

next in thread | previous in thread | raw e-mail | index | archive | help
Alex Goncharov <alex-goncharov@comcast.net>:

> ,--- You/Alexander (Wed, 04 Feb 2009 08:37:40 +0100) ----*
> | > ,--- You/Jeremy (Tue, 03 Feb 2009 17:19:12 -0600) ----*
> |
> | It originated in GNOME, but as it is small and light, it is used now
> | in more or less everything. For example openssl uses it too (but
> | unfortunately openssl in the FreeBSD base system does not install
> | the corresponding config file), but this does not make openssl
> | depend upon GNOME.
>
> A perfect example -- you can see the difference in how X and openssl
> approach this:
>
> ------------------------------
> $ grep -i 'pkgconfig[^/]*$' Mk/bsd.openssl.mk Mk/bsd.port.post.mk  =20
> Mk/bsd.xorg.mk security/openssl/Makefile  =20
> x11-drivers/xf86-video-nv/Makefile| less
> Mk/bsd.xorg.mk:# app - requires pkgconfig, don't install shared  =20
> libraries (I guess)
> Mk/bsd.xorg.mk:USE_GNOME+=3D      pkgconfig
> Mk/bsd.xorg.mk:USE_GNOME+=3D      pkgconfig
> Mk/bsd.xorg.mk:USE_GNOME+=3D      pkgconfig
> Mk/bsd.xorg.mk:USE_GNOME+=3D      gnomehack pkgconfig
> security/openssl/Makefile:              -e  =20
> 's|lib/pkgconfig|libdata/pkgconfig|g' \
> ------------------------------

What you grep here are two completely different things. The first telling
the ports to actually use pkg-config (Mk/*), as a port executes it to
gather CFLAGS and LIBS (which you would like to see changed to some
USE_SPECIAL_FOOFOO_TOOL =3D pkgconfig, if I got that right), the second =20
one patching openssl to install it's .pc file into the FreeBSD specific
pkgconfig directory hierarchy (usually /usr/local/libdata/pkgconfig/).

Regards
Marcus






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090204150122.2obk3musgkw44sko>