package/gnuplot: drop gdlib-config
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 23 Jan 2021 10:32:38 +0000 (11:32 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 23 Jan 2021 21:21:36 +0000 (22:21 +0100)
Drop gdlib-config and use pkg-config to find gd.
Indeed, gdlib.pc is available since version 2.1.0 and
https://github.com/libgd/libgd/commit/071a2a94ee9f9e5ce00ff689dfe67a0fcb885ad6
and gdlib-config has been dropped from version 2.3.0

gnuplot supports pkg-config to find gd since version 5.4.1 and
https://sourceforge.net/p/gnuplot/gnuplot-main/ci/4a64124cf5e7bf7d6fd7be1f1a7b853c022678fd

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/gnuplot/gnuplot.mk

index 746831275aa086ce3adafd0d1e047e35f5784be8..bebaf1fa76909b0653fba83b634dc1e325511210 100644 (file)
@@ -31,9 +31,7 @@ endif
 
 ifeq ($(BR2_PACKAGE_GD)$(BR2_PACKAGE_LIBPNG),yy)
 GNUPLOT_CONF_OPTS += --with-gd
-GNUPLOT_DEPENDENCIES += gd
-GNUPLOT_CONF_ENV += \
-       ac_cv_path_GDLIB_CONFIG=$(STAGING_DIR)/usr/bin/gdlib-config
+GNUPLOT_DEPENDENCIES += host-pkgconf gd
 else
 GNUPLOT_CONF_OPTS += --without-gd
 endif