media-sound/musescore: Add USE vorbis for SoundFont support
authorAndreas Sturmlechner <asturm@gentoo.org>
Tue, 21 Aug 2018 21:12:36 +0000 (23:12 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Tue, 21 Aug 2018 21:23:04 +0000 (23:23 +0200)
Package-Manager: Portage-2.3.48, Repoman-2.3.10

media-sound/musescore/metadata.xml
media-sound/musescore/musescore-2.1.0-r1.ebuild
media-sound/musescore/musescore-9999.ebuild

index 7b2572e3cfb7b60de58e0784976567ab58e326e3..f0d90452cf3341fda5c576c57957045ddbc80e56 100644 (file)
@@ -11,6 +11,7 @@
        </upstream>
        <use>
                <flag name="portmidi">Enable support for building against <pkg>media-libs/portmidi</pkg></flag>
+               <flag name="vorbis">Enable SoundFont support using  <pkg>media-libs/libvorbis</pkg></flag>
                <flag name="webengine">Use <pkg>dev-qt/qtwebengine</pkg> for embedded web browser</flag>
        </use>
 </pkgmetadata>
index 55ee51119b6bb3ee70ba1a6909e3d93899e35d8f..6abacb371c48cf4448b796dbe352b852ee5a2c8b 100644 (file)
@@ -13,7 +13,7 @@ SRC_URI="https://github.com/musescore/MuseScore/archive/v${PV}.tar.gz -> ${P}.ta
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="alsa debug jack mp3 portaudio portmidi pulseaudio"
+IUSE="alsa debug jack mp3 portaudio portmidi pulseaudio vorbis"
 REQUIRED_USE="portmidi? ( portaudio )"
 
 RDEPEND="
@@ -39,6 +39,7 @@ RDEPEND="
        portaudio? ( media-libs/portaudio )
        portmidi? ( media-libs/portmidi )
        pulseaudio? ( media-sound/pulseaudio )
+       vorbis? ( media-libs/libvorbis )
 "
 DEPEND="${RDEPEND}
        dev-qt/linguist-tools:5
@@ -64,6 +65,7 @@ src_configure() {
                -DBUILD_PORTAUDIO="$(usex portaudio)"
                -DBUILD_PORTMIDI="$(usex portmidi)"
                -DBUILD_PULSEAUDIO="$(usex pulseaudio)"
+               -DBUILD_SOUNDFONT3="$(usex vorbis)"
        )
        cmake-utils_src_configure
 }
index 349cdba45b2675a0d173fe75bc259b1e919c25de..3584ef02b7f29c76bbf491cf10d4c03bc0a7b233 100644 (file)
@@ -13,7 +13,7 @@ SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}-fix-buildsystem.patch.bz2"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS=""
-IUSE="alsa debug jack mp3 portaudio portmidi pulseaudio webengine"
+IUSE="alsa debug jack mp3 portaudio portmidi pulseaudio vorbis webengine"
 REQUIRED_USE="portmidi? ( portaudio )"
 
 RDEPEND="
@@ -38,6 +38,7 @@ RDEPEND="
        portaudio? ( media-libs/portaudio )
        portmidi? ( media-libs/portmidi )
        pulseaudio? ( media-sound/pulseaudio )
+       vorbis? ( media-libs/libvorbis )
        webengine? ( dev-qt/qtwebengine:5[widgets] )
 "
 DEPEND="${RDEPEND}
@@ -65,6 +66,7 @@ src_configure() {
                -DBUILD_PORTAUDIO="$(usex portaudio)"
                -DBUILD_PORTMIDI="$(usex portmidi)"
                -DBUILD_PULSEAUDIO="$(usex pulseaudio)"
+               -DBUILD_SOUNDFONT3="$(usex vorbis)"
                -DBUILD_WEBEBENGINE="$(usex webengine)"
        )
        cmake-utils_src_configure