mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-25 11:57:36 -08:00
media-sound/deadbeef: 1.8.7-r1: Force clang; libdispatch dep added.
Upstream stated that from 1.8.5 onward the GCC is no longer supported. Because of that, clang will be enforced instead. notify and lastfm plugins now requires libdispatch. Closes: https://bugs.gentoo.org/775551 Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>
This commit is contained in:
+23
-3
@@ -1,9 +1,9 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit autotools xdg l10n
|
||||
inherit autotools xdg l10n flag-o-matic
|
||||
|
||||
DESCRIPTION="DeaDBeeF is a modular audio player similar to foobar2000"
|
||||
HOMEPAGE="https://deadbeef.sourceforge.io/"
|
||||
@@ -43,17 +43,23 @@ DEPEND="
|
||||
mp3? ( media-sound/mpg123 )
|
||||
musepack? ( media-sound/musepack-tools )
|
||||
nls? ( virtual/libintl )
|
||||
notify? ( sys-apps/dbus )
|
||||
notify? (
|
||||
sys-apps/dbus
|
||||
dev-libs/libdispatch
|
||||
)
|
||||
opus? ( media-libs/opusfile )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
vorbis? ( media-libs/libvorbis )
|
||||
wavpack? ( media-sound/wavpack )
|
||||
lastfm? ( dev-libs/libdispatch )
|
||||
"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="
|
||||
dev-util/intltool
|
||||
sys-devel/gettext
|
||||
sys-devel/clang
|
||||
sys-devel/llvm
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
@@ -94,6 +100,20 @@ src_prepare() {
|
||||
}
|
||||
|
||||
src_configure () {
|
||||
if ! tc-is-clang; then
|
||||
AR=llvm-ar
|
||||
CC=${CHOST}-clang
|
||||
CXX=${CHOST}-clang++
|
||||
NM=llvm-nm
|
||||
RANLIB=llvm-ranlib
|
||||
|
||||
strip-unsupported-flags
|
||||
fi
|
||||
|
||||
export HOST_CC="$(tc-getBUILD_CC)"
|
||||
export HOST_CXX="$(tc-getBUILD_CXX)"
|
||||
tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG
|
||||
|
||||
local myconf=(
|
||||
"--disable-static"
|
||||
"--disable-staticlink"
|
||||
Reference in New Issue
Block a user