summaryrefslogtreecommitdiff
path: root/media-sound/deadbeef
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/deadbeef')
-rw-r--r--media-sound/deadbeef/Manifest1
-rw-r--r--media-sound/deadbeef/deadbeef-1.9.6-r2.ebuild202
2 files changed, 203 insertions, 0 deletions
diff --git a/media-sound/deadbeef/Manifest b/media-sound/deadbeef/Manifest
index 79058e62ae63..5e0d493e3269 100644
--- a/media-sound/deadbeef/Manifest
+++ b/media-sound/deadbeef/Manifest
@@ -3,4 +3,5 @@ AUX deadbeef-1.9.6-fix-desktop-launcher.patch 1719 BLAKE2B 77060bb2071ee51d5fbf0
AUX deadbeef-1.9.6-update-gettext.patch 442 BLAKE2B 9ca35a539157daa7c7e11a30400643b4094879c9922b08e7b30fdd132a82743c14b9cffbd74db155e5bcc7f3020f18521d6747b3b440ca958f3fd9a0e5b1dee5 SHA512 5e0ba05537cbb54d9fcecc777ec2e506fd3ede7c4e4eb9a3aae38675b34b1b0dfa57bfa7cd81f5fd4a1c507f7153c2c7cb4b57dccf517c6fce8283f1c0d9a665
DIST deadbeef-1.9.6.tar.bz2 5182123 BLAKE2B 2cf515dbc3175e04319075462e88d18ee2fae06e8b317d1cc0c958ac23498217bb0a02e0201f47a39dfd4c0092ba568b8aebe4c37c99b439d2dcc18a7848ba2e SHA512 6e507399f7452a66c5591e09d4309f2aab676992d048625c9b4d801ea40af6ce79862fb497e8c94efdf3a13572c964dca717b42f1c946f5ec4695dc38c1db572
EBUILD deadbeef-1.9.6-r1.ebuild 4592 BLAKE2B 4bf25784374e083451102b5fcf06c0ff5286720cff137c1da0e17528e49c8ab523876263aa0e09463e277a7f8919c45830e976aa93c588d64881f6cf42a39994 SHA512 8c0a1902a43c3e2f357b0ae68634a160a114a79c2c86b4f0ed2ff86c5d2c54dae23d0c4ecd8cc29838da1ea552e3ba2c57a2cc4a32925cc824c343866af5c310
+EBUILD deadbeef-1.9.6-r2.ebuild 4549 BLAKE2B 4a921248afcde6ab1fa55c1789ea34f7f4c001311f37ae184f63d5153b76a795d061913751c2d731935432474892ee4716ea25c9c6eb2644ee17d69b7eef3351 SHA512 f26f9eb701175bb466d464b72c7115fe3451069fbd92675767a6db6a42614f947e692061d2298758872b7b88322d16eaaedc6a95cfc60b6b8e1aa91bc992584b
MISC metadata.xml 1130 BLAKE2B fe7d3f0267b18ffbf1fd97f3756a0968bd5bc50ac28d99f17148fad554ec25ed51a79fe001a494d5a28a95707a10cab1ce3ef20556e1740554038af67e6aaadb SHA512 ef792aa0c04c8dbb4534c2e20b822f730ed401fbdf5099a0e4ec35eda18c761ea21d558e4865f5d8053d59273f3e8f274894daec81a810a228a869bfb269af67
diff --git a/media-sound/deadbeef/deadbeef-1.9.6-r2.ebuild b/media-sound/deadbeef/deadbeef-1.9.6-r2.ebuild
new file mode 100644
index 000000000000..bc48f8fd0f16
--- /dev/null
+++ b/media-sound/deadbeef/deadbeef-1.9.6-r2.ebuild
@@ -0,0 +1,202 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools xdg flag-o-matic toolchain-funcs plocale
+
+DESCRIPTION="DeaDBeeF is a modular audio player similar to foobar2000"
+HOMEPAGE="https://deadbeef.sourceforge.io/"
+SRC_URI="https://sourceforge.net/projects/${PN}/files/travis/linux/${PV}/deadbeef-${PV}.tar.bz2/download
+ -> ${P}.tar.bz2"
+
+LICENSE="
+ GPL-2
+ LGPL-2.1
+ MIT
+ wavpack? ( BSD )
+"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv ~x86"
+IUSE="aac alsa cdda converter cover dts ffmpeg flac +hotkeys lastfm libretro libsamplerate mp3 musepack nls notify +nullout opus oss pulseaudio pipewire sc68 shellexec +supereq vorbis wavpack zip"
+
+REQUIRED_USE="
+ || ( alsa oss pulseaudio pipewire nullout )
+"
+
+DEPEND="
+ >=app-accessibility/at-spi2-core-2.46.0
+ dev-libs/glib:2
+ dev-libs/jansson:=
+ dev-libs/libdispatch
+ net-misc/curl
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/gtk+:3
+ x11-libs/libX11
+ x11-libs/pango
+ aac? ( media-libs/faad2 )
+ alsa? ( media-libs/alsa-lib )
+ cdda? (
+ dev-libs/libcdio:=
+ media-libs/libcddb
+ media-sound/cdparanoia
+ )
+ cover? ( media-libs/imlib2[jpeg,png] )
+ dts? ( media-libs/libdca )
+ ffmpeg? ( media-video/ffmpeg:= )
+ flac? (
+ media-libs/flac:=
+ media-libs/libogg
+ )
+ libsamplerate? ( media-libs/libsamplerate )
+ mp3? ( media-sound/mpg123-base )
+ musepack? ( media-sound/musepack-tools )
+ nls? ( virtual/libintl )
+ notify? ( sys-apps/dbus )
+ opus? ( media-libs/opusfile )
+ pulseaudio? ( media-libs/libpulse )
+ pipewire? ( media-video/pipewire:= )
+ vorbis? ( media-libs/libvorbis )
+ wavpack? ( media-sound/wavpack )
+ zip? ( dev-libs/libzip:= )
+"
+
+RDEPEND="${DEPEND}"
+BDEPEND="
+ dev-util/intltool
+ sys-devel/clang
+ >=sys-devel/gettext-0.21
+ sys-devel/llvm
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.9.6-drop-Werror.patch
+ "${FILESDIR}"/${PN}-1.9.6-update-gettext.patch
+ "${FILESDIR}"/${PN}-1.9.6-fix-desktop-launcher.patch
+)
+
+src_prepare() {
+ default
+
+ drop_from_linguas() {
+ sed "/${1}/d" -i "${S}/po/LINGUAS" || die
+ }
+
+ drop_and_stub() {
+ einfo drop_and_stub "${1}"
+ rm -r "${1}" || die
+ mkdir "${1}" || die
+ cat > "${1}/Makefile.in" <<-EOF || die
+ all: nothing
+ install: nothing
+ nothing:
+ EOF
+ }
+
+ plocale_for_each_disabled_locale drop_from_linguas || die
+
+ eautopoint --force
+ eautoreconf
+
+ # Get rid of bundled gettext. (Avoid build failures with musl)
+ drop_and_stub "${S}/intl"
+
+ # Plugins that are undesired for whatever reason, candidates for unbundling and such.
+ for i in adplug alac dumb ffap mms gme mono2stereo psf shn sid soundtouch wma; do
+ drop_and_stub "${S}/plugins/${i}"
+ done
+}
+
+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-staticlink"
+ "--disable-portable"
+ "--disable-rpath"
+
+ "--disable-libmad"
+ "--disable-gtk2"
+ "--disable-adplug"
+ "--disable-coreaudio"
+ "--disable-dumb"
+ "--disable-alac"
+ "--disable-ffap"
+ "--disable-gme"
+ "--disable-mms"
+ "--disable-mono2stereo"
+ "--disable-psf"
+ "--disable-shn"
+ "--disable-sid"
+ "--disable-sndfile"
+ "--disable-soundtouch"
+ "--disable-tta"
+ "--disable-vtx"
+ "--disable-wildmidi"
+ "--disable-wma"
+
+ "$(use_enable alsa)"
+ "$(use_enable oss)"
+ "$(use_enable pulseaudio pulse)"
+ "$(use_enable mp3)"
+ "$(use_enable mp3 libmpg123)"
+ "$(use_enable nls)"
+ "$(use_enable vorbis)"
+ "$(use_enable flac)"
+ "$(use_enable supereq)"
+ "$(use_enable cdda)"
+ "$(use_enable cdda cdda-paranoia)"
+ "$(use_enable aac)"
+ "$(use_enable cover artwork)"
+ "$(use_enable cover artwork-network)"
+ "$(use_enable dts dca)"
+ "$(use_enable ffmpeg)"
+ "$(use_enable converter)"
+ "$(use_enable musepack)"
+ "$(use_enable notify)"
+ "$(use_enable nullout)"
+ "$(use_enable opus)"
+ "$(use_enable pulseaudio pulse)"
+ "$(use_enable pipewire)"
+ "$(use_enable sc68)"
+ "$(use_enable shellexec)"
+ "$(use_enable shellexec shellexecui)"
+ "$(use_enable lastfm lfm)"
+ "$(use_enable libretro)"
+ "$(use_enable libsamplerate src)"
+ "$(use_enable wavpack)"
+ "$(use_enable zip vfs-zip)"
+
+ "--enable-gtk3"
+ "--enable-vfs-curl"
+ "--enable-shared"
+ "--enable-m3u"
+ "--enable-pltbrowser"
+ "--enable-rgscanner"
+ )
+
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ default
+
+ find "${ED}" -name '*.la' -delete || die
+
+ # if compressed, help doesn't work
+ docompress -x /usr/share/doc/${PF}
+}