diff --git a/CMakeLists.txt b/CMakeLists.txt index 056fec2cd..4580f1e14 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,7 +103,14 @@ add_subdirectory(src/plugins/httpdatastream) add_subdirectory(src/plugins/stockencoders) add_subdirectory(src/plugins/supereqdsp) add_subdirectory(src/plugins/gmedecoder) -add_subdirectory(src/plugins/libopenmptdecoder) + +find_library(LIBOPENMPT NAMES openmpt) +if ("${LIBOPENMPT}" STREQUAL "LIBOPENMPT-NOTFOUND") + message(STATUS "[libopenmpt] *not* found! plugin will not be built.") +else() + message(STATUS "[libopenmpt] enabled = true; found library at ${LIBOPENMPT}") + add_subdirectory(src/plugins/libopenmptdecoder) +endif() if (${FFMPEG_ENABLED} MATCHES "false") message(STATUS "[ffmpeg] enabled = false") diff --git a/musikcube.spec b/musikcube.spec index abb485faa..674a6c57c 100644 --- a/musikcube.spec +++ b/musikcube.spec @@ -8,8 +8,8 @@ Summary: A cross-platform, terminal-based audio engine, library, player and serv Source0: https://github.com/clangen/musikcube/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz License: BSD-3-Clause Packager: David Muckle -BuildRequires: gcc-c++ cmake boost-devel libogg-devel libvorbis-devel ffmpeg-devel ncurses-devel zlib-devel alsa-lib-devel pulseaudio-libs-devel openssl-devel libcurl-devel libmicrohttpd-devel lame-devel libev-devel taglib-devel systemd-devel make libopenmpt-devel -Requires: boost libogg libvorbis ffmpeg-libs ncurses zlib alsa-lib pulseaudio-libs openssl libcurl libmicrohttpd lame libev taglib libopenmpt-dev +BuildRequires: gcc-c++ cmake boost-devel libogg-devel libvorbis-devel ffmpeg-devel ncurses-devel zlib-devel alsa-lib-devel pulseaudio-libs-devel openssl-devel libcurl-devel libmicrohttpd-devel lame-devel libev-devel taglib-devel systemd-devel make +Requires: boost libogg libvorbis ffmpeg-libs ncurses zlib alsa-lib pulseaudio-libs openssl libcurl libmicrohttpd lame libev taglib %description