~ubuntu-branches/ubuntu/intrepid/ecasound2.2/intrepid

« back to all changes in this revision

Viewing changes to libecasound/libecasound-config

  • Committer: Bazaar Package Importer
  • Author(s): Junichi Uekawa
  • Date: 2005-04-14 09:15:48 UTC
  • Revision ID: james.westby@ubuntu.com-20050414091548-vwu2de2157xq1hcm
Tags: 2.4.1-1
* New upstream version
- 01_ecasoundrc-location-fix: included in upstream
- 07_configure_in_maintainer_mode: updated
* removed refererence to artsc-dev
* [debian/control, debian/rules] Use automake1.9
* documentation is now in rst
- add Build-Depends: python-docutils
* debian/menu: quote
* debian/watch: add

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
        [--prefix]
 
10
        [--libs]
 
11
        [--libs_debug]
 
12
        [--ldflags]
 
13
        [--cflags]
 
14
        [--version]
 
15
EOH
 
16
        exit 1;
 
17
}
 
18
 
 
19
prefix=/usr
 
20
exec_prefix=${prefix}
 
21
libdir=${exec_prefix}/lib
 
22
includedir=${prefix}/include
 
23
libecasound_version=14
 
24
libkvutils_version=7
 
25
 
 
26
flags=""
 
27
 
 
28
while test $# -gt 0
 
29
do
 
30
  case $1 in
 
31
    --prefix)
 
32
          flags="$flags $prefix"
 
33
          ;;
 
34
    --libs)
 
35
          flags="$flags -L$libdir -lecasound -lkvutils   -lsamplerate -laudiofile -lsndfile -lasound  -ljack"
 
36
          ;;
 
37
    --libs_debug)
 
38
          flags="$flags -L$libdir -lecasound_debug -lkvutils_debug   -lsamplerate -laudiofile -lsndfile -lasound  -ljack"
 
39
          ;;
 
40
    --ldflags)
 
41
          case "$libdir" in
 
42
              /usr/lib);;
 
43
              *)
 
44
                  flags="$flags -Wl,--rpath -Wl,$libdir" ;;
 
45
          esac
 
46
          ;;
 
47
    --cflags)
 
48
          flags="$flags -I$includedir/libecasound -I$includedir/kvutils    "
 
49
          ;;
 
50
    --version)
 
51
          echo 2.4.1
 
52
          ;;
 
53
        *)
 
54
          echo "$0: unknown option $1"
 
55
          echo 
 
56
          usage
 
57
          ;;
 
58
  esac
 
59
  shift
 
60
done
 
61
 
 
62
if test -n "$flags"
 
63
then
 
64
  echo $flags
 
65
fi