diff options
author | Eric Wong <normalperson@yhbt.net> | 2006-09-06 09:26:51 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2006-09-06 09:26:51 +0000 |
commit | 412cb1ee105a74999a3ffac4e60e6602c5f2e541 (patch) | |
tree | fc8b9e117fc3ff5eaf0f55113be9dc89418b7a6f /bs/dep-alsa.sh | |
parent | 7b6d45f50fa49f4da56cc4ae29758a01ec958792 (diff) | |
download | mpd-412cb1ee105a74999a3ffac4e60e6602c5f2e541.tar.gz mpd-412cb1ee105a74999a3ffac4e60e6602c5f2e541.tar.xz mpd-412cb1ee105a74999a3ffac4e60e6602c5f2e541.zip |
bs: a work in progress..
git-svn-id: https://svn.musicpd.org/mpd/trunk@4737 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'bs/dep-alsa.sh')
-rw-r--r-- | bs/dep-alsa.sh | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/bs/dep-alsa.sh b/bs/dep-alsa.sh new file mode 100644 index 000000000..0354d3a6a --- /dev/null +++ b/bs/dep-alsa.sh @@ -0,0 +1,78 @@ +t_alsa () +{ + dep_paths alsa + if test_header 'alsa/asoundlib'; then + ldflags="-lasound -lm -ldl -lpthread" + echo t + fi +} + +t_ao () +{ + dep_paths ao + if test_header 'ao/ao'; then + ldflags="-ld -lao" + echo t + fi +} + +t_fifo () +{ + echo t +} + +t_mvp () +{ + echo t +} + +t_oss () +{ + dep_paths oss + test_header 'sys/soundcard' && echo t +} + +t_pulse () +{ + dep_paths pulse + test_header 'pulse/simple' && echo 't' +} + +t_shout () +{ + dep_paths shout + ok= + if test "$PKGCONFIG" != "no" && `$PKGCONFIG --exists shout`; then + cflags="`$PKGCONFIG --variable=cflags_only shout`" + cflags="$cflags `$PKGCONFIG --variable=cppflags shout`" + ldflags="`$PKGCONFIG --libs shout`" + ok=t + else + test -z "$sc" && sc="`which shoutconfig`" + if test `$sc --package` = "libshout"; then + cflags="`$sc --cflags-only`" + cflags="$cflags `$sc --cppflags shout`" + ldflags="$ldflags `$sc --libs`" + ok=t + fi + fi + # freebsd 6.1 + shout 2.2 port seems to leave pthread out + case "$uname_s" in + freebsd*) + case "$cflags" in + *-D_THREAD_SAFE*) + ldflags="$ldflags -lpthread" + ;; + esac + ;; + esac + + echo $ok +} + +t_sun () +{ + dep_paths sun + test_header 'sys/audioio' && echo t +} + |