From 2a9885a890dc62d195a7f838a490382168a342fa Mon Sep 17 00:00:00 2001 From: Uwe Klotz Date: Sat, 17 Aug 2019 15:11:14 +0200 Subject: [PATCH] Enable (lib)modplug support on Linux by default --- README | 1 + build/debian/control | 3 ++- build/features.py | 8 ++++++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README b/README index ba362400901..21f161dedc1 100644 --- a/README +++ b/README @@ -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 14964aa6794..68249bbb426 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 1a7bfe1ccc0..9321bbca1d3 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):