Browse Source

mesalib needs makedepend

Waldemar Brodkorb 11 years ago
parent
commit
9961e5898f
1 changed files with 11 additions and 0 deletions
  1. 11 0
      scripts/scan-pkgs.sh

+ 11 - 0
scripts/scan-pkgs.sh

@@ -80,6 +80,10 @@ if [[ -n $ADK_PACKAGE_FIREFOX ]]; then
 	NEED_ZIP="$NEED_ZIP firefox"
 fi
 
+if [[ -n $ADK_PACKAGE_MESALIB ]]; then
+	NEED_MAKEDEPEND="$NEED_MAKEDEPEND mesalib"
+fi
+
 if [[ -n $ADK_COMPILE_HEIMDAL ]]; then
 	NEED_BISON="$NEED_BISON heimdal-server"
 fi
@@ -423,6 +427,13 @@ if [[ -n $NEED_PYTHON ]]; then
 	fi
 fi
 
+if [[ -n $NEED_MAKEDEPEND ]]; then
+	if ! which makedepend >/dev/null 2>&1; then
+		echo >&2 You need makedepend to build $NEED_MAKEDEPEND
+		out=1
+	fi
+fi
+
 if [[ -n $ADK_USE_CCACHE ]]; then
         if ! which ccache >/dev/null 2>&1; then
                 echo >&2 You have selected to build with ccache, but ccache could not be found.