package/busybox: prevent ip applet compile when iproute2 is active
[openadk.git] / scripts / scan-pkgs.sh
blob4caf2e78b04b0eb200ea6e047de07a684fe1dd72
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 # Scan host-tool prerequisites of certain packages before building.
6 if test -z "$BASH_VERSION"; then
7 foo=`$BASH -c 'echo "$BASH_VERSION"'`
8 else
9 foo=$BASH_VERSION
12 if test -z "$foo"; then
13 echo OpenADK requires GNU bash to be installed.
14 exit 1
17 test -z "$BASH_VERSION$KSH_VERSION" && exec $BASH $0 "$@"
19 [[ -n $BASH_VERSION ]] && shopt -s extglob
20 topdir=$(readlink -nf $(dirname $0)/.. 2>/dev/null || (cd $(dirname $0)/..; pwd -P))
21 OStype=$(uname)
22 out=0
24 . $topdir/.config
26 if [[ -n $ADK_PACKAGE_KODI ]]; then
27 NEED_JAVA="$NEED_JAVA kodi"
30 if [[ -n $ADK_PACKAGE_XKEYBOARD_CONFIG ]]; then
31 NEED_XKBCOMP="$NEED_XKBCOMP xkeyboard-config"
34 if [[ -n $ADK_PACKAGE_FONT_BITSTREAM_100DPI ]]; then
35 NEED_MKFONTDIR="$NEED_MKFONTDIR font-bitstream-100dpi"
38 if [[ -n $ADK_PACKAGE_FONT_BITSTREAM_75DPI ]]; then
39 NEED_MKFONTDIR="$NEED_MKFONTDIR font-bitstream-75dpi"
42 if [[ -n $ADK_PACKAGE_FONT_ADOBE_100DPI ]]; then
43 NEED_MKFONTDIR="$NEED_MKFONTDIR font-adobe-100dpi"
46 if [[ -n $ADK_PACKAGE_FONT_ADOBE_75DPI ]]; then
47 NEED_MKFONTDIR="$NEED_MKFONTDIR font-adobe-75dpi"
50 if [[ -n $NEED_MKFONTDIR ]]; then
51 if ! which mkfontdir >/dev/null 2>&1; then
52 echo >&2 You need mkfontdir to build $NEED_MKFONTDIR
53 out=1
57 if [[ -n $NEED_XKBCOMP ]]; then
58 if ! which xkbcomp >/dev/null 2>&1; then
59 echo >&2 You need xkbcomp to build $NEED_XKBCOMP
60 out=1
64 if [[ -n $NEED_JAVA ]]; then
65 if ! which java >/dev/null 2>&1; then
66 echo >&2 You need java to build $NEED_JAVA
67 out=1
71 exit $out