diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-12-06 10:19:43 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-12-06 10:19:43 +0000 |
commit | e8bab4e3a0eccf8a2b855174ccb02737b84eedb9 (patch) | |
tree | 8261225115ea52425a8e6ebae34548871c97baf3 /rbutil/rbutilqt/rbutilqt.pro | |
parent | d587794dfc6db8c14dabe8f5039a27c6e396b071 (diff) | |
download | rockbox-e8bab4e3a0eccf8a2b855174ccb02737b84eedb9.tar.gz rockbox-e8bab4e3a0eccf8a2b855174ccb02737b84eedb9.zip |
Improve detection of system libspeex and fallback earlier.
libspeex is split into libspeex and libspeexdsp. We need both, so check
for them the same time instead of trying to respect the fact that old
versions didn't have the libspeexdsp part. Should fix issues with
distributions that have libspeex and libspeexdsp split into separate
packages and only the libspeex one is installed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23872 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.pro')
-rw-r--r-- | rbutil/rbutilqt/rbutilqt.pro | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.pro b/rbutil/rbutilqt/rbutilqt.pro index b09bd19bab..d21731fb8c 100644 --- a/rbutil/rbutilqt/rbutilqt.pro +++ b/rbutil/rbutilqt/rbutilqt.pro | |||
@@ -29,12 +29,12 @@ RBBASE_DIR = $$replace(RBBASE_DIR,/rbutil/rbutilqt,) | |||
29 | 29 | ||
30 | message("Rockbox Base dir: "$$RBBASE_DIR) | 30 | message("Rockbox Base dir: "$$RBBASE_DIR) |
31 | 31 | ||
32 | # check for system speex. Add a custom rule for pre-building librbspeex if not found. | 32 | # check for system speex. Add a custom rule for pre-building librbspeex if not |
33 | LIBSPEEX = $$system(pkg-config --silence-errors --libs speex) | 33 | # found. Newer versions of speex are split up into libspeex and libspeexdsp, |
34 | # and some distributions package them separately. Check for both and fall back | ||
35 | # to librbspeex if not found. | ||
36 | LIBSPEEX = $$system(pkg-config --silence-errors --libs speex speexdsp) | ||
34 | !static:!isEmpty(LIBSPEEX) { | 37 | !static:!isEmpty(LIBSPEEX) { |
35 | # newer versions of speex are split up into libspeex and libspeexdsp. | ||
36 | # avoid checking twice if libspeex is missing. | ||
37 | LIBSPEEX += $$system(pkg-config --silence-errors --libs speexdsp) | ||
38 | LIBS += $$LIBSPEEX | 38 | LIBS += $$LIBSPEEX |
39 | } | 39 | } |
40 | # custom rules for rockbox-specific libs | 40 | # custom rules for rockbox-specific libs |