~njh-aelius/maxosx/musicbrainz-tags

« back to all changes in this revision

Viewing changes to Frameworks/taglib/taglib/taglib-config.cmake

  • Committer: stephen_booth
  • Date: 2008-04-30 02:09:12 UTC
  • Revision ID: svn-v4:6b6cea13-1402-0410-9567-a7afb52bf336:trunk:1372
Update to latest taglib SVN

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"
 
33
          ;;
 
34
    --cflags)
 
35
          flags="$flags -I$includedir/taglib"
 
36
          ;;
 
37
    --version)
 
38
          echo 1.5
 
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