diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2019-08-17 15:11:14 +0200 |
---|---|---|
committer | Uwe Klotz <uklotz@mixxx.org> | 2019-08-17 15:14:45 +0200 |
commit | 2a9885a890dc62d195a7f838a490382168a342fa (patch) | |
tree | 501f91df9146ac48d5396d3287f8cf130340abd3 | |
parent | 8a94cf57d07e3ce2397ea96724d7c6130aa74eff (diff) |
Enable (lib)modplug support on Linux by default
-rw-r--r-- | README | 1 | ||||
-rw-r--r-- | build/debian/control | 3 | ||||
-rw-r--r-- | build/features.py | 8 |
3 files changed, 9 insertions, 3 deletions
@@ -39,6 +39,7 @@ Mixxx has the following dependencies: - libvorbis - libvorbisfile - libsndfile +- libmodplug - libflac - libopus - libshout diff --git a/build/debian/control b/build/debian/control index 14964aa679..68249bbb42 100644 --- a/build/debian/control +++ b/build/debian/control @@ -47,7 +47,8 @@ Build-Depends: debhelper (>= 9), libsoundtouch-dev, libhidapi-dev, libupower-glib-dev, - liblilv-dev + liblilv-dev, + libmodplug-dev Standards-Version: 3.9.8 Homepage: http://www.mixxx.org/ diff --git a/build/features.py b/build/features.py index 1a7bfe1ccc..9321bbca1d 100644 --- a/build/features.py +++ b/build/features.py @@ -441,15 +441,19 @@ class ModPlug(Feature): def description(self): return "Modplug module decoder plugin" + def default(self, build): + return 1 if build.platform_is_linux else 0 + def enabled(self, build): - build.flags['modplug'] = util.get_flags(build.env, 'modplug', 0) + build.flags['modplug'] = util.get_flags(build.env, 'modplug', self.default(build)) if int(build.flags['modplug']): return True return False def add_options(self, build, vars): vars.Add('modplug', - 'Set to 1 to enable libmodplug based module tracker support.', 0) + 'Set to 1 to enable libmodplug based module tracker support.', + self.default(build)) def configure(self, build, conf): if not self.enabled(build): |