package/lcdproc: override libpng-config path
authorRomain Naour <romain.naour@gmail.com>
Sun, 11 Jun 2017 13:13:17 +0000 (15:13 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 11 Jun 2017 15:51:50 +0000 (17:51 +0200)
commit868d978e2ef0474af37edc0275c0b5db1ded474c
treea75361906997efc6e73521a8c307030276c66168
parente217efeeb2e5451b15a075a69e3321ad94ba52f3
package/lcdproc: override libpng-config path

Like for freetype-config, override libpng-config path otherwise
the one from the host system may be used when installed.
Make sure that the one from STAGING_DIR is used.

configure:7480: checking for libpng-config
configure:7498: found /usr/bin/libpng-config
configure:7510: result: /usr/bin/libpng-config
configure:7529: checking whether libpng is present and sane
[...]
nios2-linux-gnu-gcc: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include/libpng12'

Fixes
http://autobuild.buildroot.net/results/b68/b68f54404a7d412d639ebb6d052412eea6ee3bf1/lcdproc-0.5.7/config.log

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/lcdproc/lcdproc.mk