]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
Mudando a checagem pelo GTK+ no gtkwave.SlackBuild
authorluis <luis@370017ae-e619-0410-ac65-c121f96126d4>
Thu, 14 Dec 2006 00:37:42 +0000 (00:37 +0000)
committerluis <luis@370017ae-e619-0410-ac65-c121f96126d4>
Thu, 14 Dec 2006 00:37:42 +0000 (00:37 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@917 370017ae-e619-0410-ac65-c121f96126d4

sci/electronics/gtkwave/gtkwave.SlackBuild

index c679145c9b379b5cae0b29ba8d7faeb99b341d93..a46ac20a509c240a9223861fb8c45a4fb34bf1ec 100755 (executable)
@@ -69,13 +69,17 @@ fi
 
 # Check if GTKWave should be built for GTK+-2.x (default,
 #+if both are available) or 1.x
-if [ -d /etc/gtk-2.0 ]; then
+pkg-config gtk+-2.0 --libs
+if [ $? == 0 ]; then
   GTK_VERSION=2
-elif [ -d /etc/gtk ]; then
-  GTK_VERSION=1
 else
-  echo "ERROR: GTKWave requires either GTK+-1.x or 2.x"
-  exit 1
+  gtk-config --libs
+  if [ $? == 0 ]; then
+    GTK_VERSION=1
+  else
+    echo "ERROR: GTKWave requires either GTK+-1.x or 2.x"
+    exit 1
+  fi
 fi
 
 # Untar, configure, compile and install