summaryrefslogtreecommitdiff
path: root/academic/lapack95/lapack95-config
diff options
context:
space:
mode:
authorPablo Santamaria <pablosantamaria@gmail.com>2010-05-13 00:57:19 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:57:19 +0200
commit0c54782ce2266847fb0b47d48eed56a0b5849034 (patch)
tree60d522aaaf9e248f669185dbaa2b5ce0baecfe9c /academic/lapack95/lapack95-config
parent255b61cfc9e6f4189c1afb7b2794d77c1b3394c4 (diff)
downloadslackbuilds-0c54782ce2266847fb0b47d48eed56a0b5849034.tar.gz
academic/lapack95: Added to 13.0 repository
Diffstat (limited to 'academic/lapack95/lapack95-config')
-rw-r--r--academic/lapack95/lapack95-config55
1 files changed, 55 insertions, 0 deletions
diff --git a/academic/lapack95/lapack95-config b/academic/lapack95/lapack95-config
new file mode 100644
index 0000000000..9eb5f60eb3
--- /dev/null
+++ b/academic/lapack95/lapack95-config
@@ -0,0 +1,55 @@
+#!/bin/sh
+
+lapack95_version=@VERSION@
+lapack95_libs="-llapack -lblas -llapack95"
+lapack95_fflags="-I/usr/include/lapack95"
+
+usage()
+{
+ cat <<EOF
+Usage: lapack95-config [OPTIONS]
+Options:
+ [--version]
+ [--libs]
+ [--fflags]
+EOF
+ exit $1
+}
+
+if [ $# -eq 0 ] ; then
+ usage 1 1>&2
+fi
+
+while [ $# -gt 0 ] ; do
+ case "$1" in
+ -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+ *) optarg= ;;
+ esac
+
+ case $1 in
+ --version)
+ echo $lapack95_version
+ ;;
+ --fflags)
+ echo_fflags=yes
+ ;;
+ --libs)
+ echo_libs=yes
+ ;;
+ *)
+ usage 1 1>&2
+ ;;
+ esac
+ shift
+done
+
+if [ "$echo_fflags" = "yes" ] ; then
+ echo $lapack95_fflags
+fi
+
+if [ "$echo_libs" = "yes" ] ; then
+ echo $lapack95_libs
+fi
+
+exit 0
+