package/nvidia-driver: don't install gl.pc when not providing libgl
authorYann E. MORIN <yann.morin.1998@free.fr>
Fri, 24 Apr 2015 21:39:57 +0000 (23:39 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 25 Apr 2015 08:34:41 +0000 (10:34 +0200)
commit861cc84f8c7150d0578b8ec6189b4fec6c7d04e6
tree09305cdf0e32d1ea9e36c1b0a45dc648d0dd523b
parentb49aeacfcad4119b8b0158aa5cd467003c1b851f
package/nvidia-driver: don't install gl.pc when not providing libgl

When nvidia-driver does not provide libgl (i.e. when it does not install
the X.org driver), it should also not install gl.pc, otherwise, packages
that depend on pkg-config will mis-detect presence of GL and fail to
build, like vlc:

    http://autobuild.buildroot.org/results/724/724fce8ce51c2c0578192b1369a1cfcea3d72638/

So, only install gl.pc when we install the X.org driver. Similarly, we
do not need to install libGL.la either.

Reported-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
Reviewed-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/nvidia-driver/nvidia-driver.mk