3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-01 07:42:18 +00:00
Brooklyn/scripts/kconfig/gconf-cfg.sh

31 lines
775 B
Bash
Raw Normal View History

2022-04-02 13:24:21 +00:00
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
PKG="gtk+-2.0 gmodule-2.0 libglade-2.0"
2022-09-09 09:20:25 +00:00
if [ -z "$(command -v ${HOSTPKG_CONFIG})" ]; then
2022-04-02 13:24:21 +00:00
echo >&2 "*"
2022-09-09 09:20:25 +00:00
echo >&2 "* 'make gconfig' requires '${HOSTPKG_CONFIG}'. Please install it."
2022-04-02 13:24:21 +00:00
echo >&2 "*"
exit 1
fi
2022-09-09 09:20:25 +00:00
if ! ${HOSTPKG_CONFIG} --exists $PKG; then
2022-04-02 13:24:21 +00:00
echo >&2 "*"
echo >&2 "* Unable to find the GTK+ installation. Please make sure that"
echo >&2 "* the GTK+ 2.0 development package is correctly installed."
echo >&2 "* You need $PKG"
echo >&2 "*"
exit 1
fi
2022-09-09 09:20:25 +00:00
if ! ${HOSTPKG_CONFIG} --atleast-version=2.0.0 gtk+-2.0; then
2022-04-02 13:24:21 +00:00
echo >&2 "*"
echo >&2 "* GTK+ is present but version >= 2.0.0 is required."
echo >&2 "*"
exit 1
fi
2022-09-09 09:20:25 +00:00
echo cflags=\"$(${HOSTPKG_CONFIG} --cflags $PKG)\"
echo libs=\"$(${HOSTPKG_CONFIG} --libs $PKG)\"