aboutsummaryrefslogtreecommitdiff
path: root/sci/electronics/gtkwave
diff options
context:
space:
mode:
authorluis <luis@370017ae-e619-0410-ac65-c121f96126d4>2006-12-14 00:37:42 +0000
committerluis <luis@370017ae-e619-0410-ac65-c121f96126d4>2006-12-14 00:37:42 +0000
commite607a3e9a6a116c5739ad419b793aa60b1bbb5fc (patch)
tree47552252ac026497ad0bcc2f6a649ab9b9a8ec07 /sci/electronics/gtkwave
parent2b46620e0036bbfd7d58a89f0b3689b929b43c5c (diff)
downloadslackbuilds-e607a3e9a6a116c5739ad419b793aa60b1bbb5fc.tar.gz
slackbuilds-e607a3e9a6a116c5739ad419b793aa60b1bbb5fc.tar.bz2
Mudando a checagem pelo GTK+ no gtkwave.SlackBuild
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@917 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'sci/electronics/gtkwave')
-rwxr-xr-xsci/electronics/gtkwave/gtkwave.SlackBuild14
1 files changed, 9 insertions, 5 deletions
diff --git a/sci/electronics/gtkwave/gtkwave.SlackBuild b/sci/electronics/gtkwave/gtkwave.SlackBuild
index c679145c..a46ac20a 100755
--- a/sci/electronics/gtkwave/gtkwave.SlackBuild
+++ b/sci/electronics/gtkwave/gtkwave.SlackBuild
@@ -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