~ubuntu-branches/ubuntu/karmic/taglib-extras/karmic

« back to all changes in this revision

Viewing changes to taglib-extras-config.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2009-04-01 15:35:05 UTC
  • Revision ID: james.westby@ubuntu.com-20090401153505-vwi459v8y2c1xnbr
Tags: upstream-0.1.1
ImportĀ upstreamĀ versionĀ 0.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
usage()
 
4
{
 
5
        echo "usage: $0 [OPTIONS]"
 
6
cat << EOH
 
7
 
 
8
options:
 
9
        [--libs]
 
10
        [--cflags]
 
11
        [--version]
 
12
        [--prefix]
 
13
EOH
 
14
        exit 1;
 
15
}
 
16
 
 
17
prefix=${CMAKE_INSTALL_PREFIX}
 
18
exec_prefix=${CMAKE_INSTALL_PREFIX}
 
19
libdir=${LIB_INSTALL_DIR}
 
20
includedir=${INCLUDE_INSTALL_DIR}
 
21
 
 
22
flags=""
 
23
 
 
24
if test $# -eq 0 ; then
 
25
  usage
 
26
fi
 
27
 
 
28
while test $# -gt 0
 
29
do
 
30
  case $1 in
 
31
    --libs)
 
32
          flags="$flags -L$libdir -ltag-extras"
 
33
          ;;
 
34
    --cflags)
 
35
          flags="$flags -I$includedir/taglib-extras"
 
36
          ;;
 
37
    --version)
 
38
          echo 0.1
 
39
          ;;
 
40
    --prefix)
 
41
          echo $prefix
 
42
          ;;
 
43
        *)
 
44
          echo "$0: unknown option $1"
 
45
          echo
 
46
          usage
 
47
          ;;
 
48
  esac
 
49
  shift
 
50
done
 
51
 
 
52
if test -n "$flags"
 
53
then
 
54
  echo $flags
 
55
fi