summaryrefslogtreecommitdiff
path: root/media-sound/deadbeef
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-23 06:31:00 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-23 06:31:00 +0000
commit338095605b6c9c82690f77f27a32490c9a57bdcb (patch)
tree72a4d7ec7ba10ea6da4d4f7d25b68915b12edde6 /media-sound/deadbeef
parent5a2cecfc8661e1d3a762adf05cf8eb142cd41710 (diff)
gentoo auto-resync : 23:12:2024 - 06:31:00
Diffstat (limited to 'media-sound/deadbeef')
-rw-r--r--media-sound/deadbeef/Manifest3
-rw-r--r--media-sound/deadbeef/deadbeef-1.10.0_beta2.ebuild207
-rw-r--r--media-sound/deadbeef/files/deadbeef-1.10.0_beta1-drop-Werror.patch45
3 files changed, 255 insertions, 0 deletions
diff --git a/media-sound/deadbeef/Manifest b/media-sound/deadbeef/Manifest
index 3ef1588af8b4..022f6f6aab4e 100644
--- a/media-sound/deadbeef/Manifest
+++ b/media-sound/deadbeef/Manifest
@@ -1,6 +1,9 @@
+AUX deadbeef-1.10.0_beta1-drop-Werror.patch 3108 BLAKE2B 66dfc2078d36b9f0589e51db1845ddf9dbb05359902d2050fea2bdc1af4e8cb46707f3dcc01b148215f19ed5661c436c06b1fa247c6c03331c0cd147b04b7713 SHA512 52725526f8b5b634cd276cf5a062d1f52796928a3983af11c4b73b11c348044207fc894fde96841b2e1b4564ec6881e744c47d311786ccc44d49d3dbee2537c5
AUX deadbeef-1.9.6-drop-Werror.patch 2503 BLAKE2B 340760fb15bcda932a0de9476e8a840dcccc8808dc743524bf35c1b3cca1ee99c98fa4dd885a7de27c0d2e222a27cd2552b51341fce5943a182446774fa2ca36 SHA512 91c26400dfeb94db72c880d52c2ea62fbcfe512bcba94b055d898f6f41d58c6eec241ac882c5194c3cecde414e1bf73fd1412f627757b2cf5e6202b1c03f6c64
AUX deadbeef-1.9.6-fix-desktop-launcher.patch 1719 BLAKE2B 77060bb2071ee51d5fbf0e87be2c055833515c3d322845cfb5ae3f9c103daf5e7f7af9a8a3fde124b6b9ba0ed26cc93c37d2a6d0fe085e173819e69384d7e353 SHA512 464406d73f134043adb055b9ddc3ebf97a3a040b451f3a4512f4ae782b4fa56ec4c98720d965de497a8930cbe48b3ddc5a60d3382b1575de8d64b2fa571c1473
AUX deadbeef-1.9.6-update-gettext.patch 442 BLAKE2B 9ca35a539157daa7c7e11a30400643b4094879c9922b08e7b30fdd132a82743c14b9cffbd74db155e5bcc7f3020f18521d6747b3b440ca958f3fd9a0e5b1dee5 SHA512 5e0ba05537cbb54d9fcecc777ec2e506fd3ede7c4e4eb9a3aae38675b34b1b0dfa57bfa7cd81f5fd4a1c507f7153c2c7cb4b57dccf517c6fce8283f1c0d9a665
+DIST deadbeef-1.10.0_beta2.tar.bz2 5314170 BLAKE2B 7d4a3db4ddb9596297d9b55c0d897361c8c1d62ef8d78a2e91fbe586392cdf76bd4954bcf76200963392e051f7b83a9f1342e9f27bdbe10489bf8ade6f45c8b0 SHA512 de1ebbe53eedacd5a64dbed7573150e3441d6707aede6a351b32b4b7044a408f14fe43bd1b79aa98fa3c66b9b8241f12ede8ce481ff7bd79eefa0aec1194cdc4
DIST deadbeef-1.9.6.tar.bz2 5182123 BLAKE2B 2cf515dbc3175e04319075462e88d18ee2fae06e8b317d1cc0c958ac23498217bb0a02e0201f47a39dfd4c0092ba568b8aebe4c37c99b439d2dcc18a7848ba2e SHA512 6e507399f7452a66c5591e09d4309f2aab676992d048625c9b4d801ea40af6ce79862fb497e8c94efdf3a13572c964dca717b42f1c946f5ec4695dc38c1db572
+EBUILD deadbeef-1.10.0_beta2.ebuild 4638 BLAKE2B 6f4c2b10ff47758895cf2146ce56261c6d9db63019fe46b8cb04ed35e1c2e8cd804e6f1ceab0ff9644c9336223555820f2c2275579f831059bb214c05a56279a SHA512 2207e1dc423da9540bdc5329898ea0fa650ed41a5e5badeecd4b935f4d409d44f0bb942ee785b3f3cd0a1a626642e59a3d655eb4dba8c8dcf981de0f284cbfb6
EBUILD deadbeef-1.9.6-r2.ebuild 4547 BLAKE2B 658f2c1cbd807c4774b3dab169779fe982025b33a8b5bdcda158589f519297b25bbb8f3cf2bb7471506fb627ab017a94d7ee4bc952f869014391302a40879043 SHA512 a7f2cd2b8c75da18daa3499d3eace2f25c880a6edc32851da4be60741307a20abb3a86549c117672abcd958de7b774d7d65fac09555aa29f0a08eb80a1579cd5
MISC metadata.xml 1130 BLAKE2B fe7d3f0267b18ffbf1fd97f3756a0968bd5bc50ac28d99f17148fad554ec25ed51a79fe001a494d5a28a95707a10cab1ce3ef20556e1740554038af67e6aaadb SHA512 ef792aa0c04c8dbb4534c2e20b822f730ed401fbdf5099a0e4ec35eda18c761ea21d558e4865f5d8053d59273f3e8f274894daec81a810a228a869bfb269af67
diff --git a/media-sound/deadbeef/deadbeef-1.10.0_beta2.ebuild b/media-sound/deadbeef/deadbeef-1.10.0_beta2.ebuild
new file mode 100644
index 000000000000..cb8e818fd626
--- /dev/null
+++ b/media-sound/deadbeef/deadbeef-1.10.0_beta2.ebuild
@@ -0,0 +1,207 @@
+# 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
+
+MY_PV=${PV/_/-}
+SHORT_PV=$(ver_cut 1-2)
+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/${SHORT_PV}/deadbeef-${MY_PV}.tar.bz2/download
+ -> ${P}.tar.bz2"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="
+ GPL-2
+ LGPL-2.1
+ MIT
+ wavpack? ( BSD )
+"
+SLOT="0"
+if [[ ${PV} != *beta* ]]; then
+ KEYWORDS="~amd64 ~riscv ~x86"
+fi
+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
+ llvm-core/clang
+ >=sys-devel/gettext-0.21
+ llvm-core/llvm
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.10.0_beta1-drop-Werror.patch
+ "${FILESDIR}"/${PN}-1.9.6-update-gettext.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-adplug"
+ "--disable-alac"
+ "--disable-coreaudio"
+ "--disable-dumb"
+ "--disable-ffap"
+ "--disable-gme"
+ "--disable-gtk2"
+ "--disable-libmad"
+ "--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-m3u"
+ "--enable-medialib"
+ "--enable-pltbrowser"
+ "--enable-rgscanner"
+ "--enable-shared"
+ "--enable-vfs-curl"
+ )
+
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ default
+
+ find "${ED}" -name '*.la' -delete || die
+
+ # if compressed, help doesn't work
+ docompress -x /usr/share/doc/${PF}
+}
diff --git a/media-sound/deadbeef/files/deadbeef-1.10.0_beta1-drop-Werror.patch b/media-sound/deadbeef/files/deadbeef-1.10.0_beta1-drop-Werror.patch
new file mode 100644
index 000000000000..9a0639e6d0a7
--- /dev/null
+++ b/media-sound/deadbeef/files/deadbeef-1.10.0_beta1-drop-Werror.patch
@@ -0,0 +1,45 @@
+Remove -Werror
+
+See also: https://devmanual.gentoo.org/ebuild-writing/common-mistakes/index.html#-werror-compiler-flag-not-removed
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -13,6 +13,7 @@ AC_PROG_CXX
+ AC_PROG_OBJC
+ AC_STDC_HEADERS
+ AC_PROG_INSTALL
++AC_SYS_LARGEFILE
+ dnl AC_PROG_LIBTOOL
+ AC_CONFIG_MACRO_DIR([m4])
+ AC_C_BIGENDIAN
+@@ -369,7 +370,7 @@ AS_IF([test "${have_iconv}" = "yes"], [
+ AC_DEFINE(HAVE_LIBICONV,1,[Use libiconv instead of glibc iconv])
+ ])
+
+-AX_CHECK_COMPILER_FLAGS(-msse2, HAVE_SSE2=1, [], -Werror)
++AX_CHECK_COMPILER_FLAGS(-msse2, HAVE_SSE2=1, [],)
+ AS_IF([test "${HAVE_SSE2}"], [
+ AC_DEFINE(HAVE_SSE2,1,[Support SSE2 instructions])
+ ])
+diff --git a/plugins/gtkui/Makefile.am b/plugins/gtkui/Makefile.am
+index 0bce165..1fe68d6 100644
+--- a/plugins/gtkui/Makefile.am
++++ b/plugins/gtkui/Makefile.am
+@@ -105,7 +105,7 @@ ddb_gui_GTK2_la_LDFLAGS = -module -avoid-version
+
+ ddb_gui_GTK2_la_LIBADD = $(LDADD) $(GTK2_DEPS_LIBS) $(SM_LIBADD) ../libparser/libparser.la ../../shared/libtrkpropertiesutil.la ../../shared/libeqpreset.la ../../shared/libdeletefromdisk.la ../../shared/libtftintutil.la ../../shared/analyzer/libanalyzer.la ../../shared/scope/libscope.la ../../shared/scriptable/libscriptable.la $(JANSSON_LIBS) $(DISPATCH_LIBS)
+
+-ddb_gui_GTK2_la_CFLAGS = -std=c99 -Werror -DGLIB_DISABLE_DEPRECATION_WARNINGS -DGDK_DISABLE_DEPRECATION_WARNINGS -DGTK_DISABLE_DEPRECATION_WARNINGS $(GTK2_DEPS_CFLAGS) $(SM_CFLAGS) $(JANSSON_CFLAGS) $(DISPATCH_CFLAGS) $(MEDIALIB_CFLAGS) -I@top_srcdir@/include -I@top_srcdir@/shared -DDDB_WARN_DEPRECATED=1
++ddb_gui_GTK2_la_CFLAGS = -std=c99 -DGLIB_DISABLE_DEPRECATION_WARNINGS -DGDK_DISABLE_DEPRECATION_WARNINGS -DGTK_DISABLE_DEPRECATION_WARNINGS $(GTK2_DEPS_CFLAGS) $(SM_CFLAGS) $(JANSSON_CFLAGS) $(DISPATCH_CFLAGS) $(MEDIALIB_CFLAGS) -I@top_srcdir@/include -I@top_srcdir@/shared -DDDB_WARN_DEPRECATED=1
+
+ endif
+
+@@ -116,7 +116,7 @@ ddb_gui_GTK3_la_LDFLAGS = -module -avoid-version
+
+ ddb_gui_GTK3_la_SOURCES = $(GTKUI_SOURCES_GTK3)
+ ddb_gui_GTK3_la_LIBADD = $(LDADD) $(GTK3_DEPS_LIBS) $(SM_LIBADD) ../libparser/libparser.la ../../shared/libtrkpropertiesutil.la ../../shared/libeqpreset.la ../../shared/libdeletefromdisk.la ../../shared/libtftintutil.la ../../shared/analyzer/libanalyzer.la ../../shared/scope/libscope.la ../../shared/scriptable/libscriptable.la $(JANSSON_LIBS) $(DISPATCH_LIBS)
+-ddb_gui_GTK3_la_CFLAGS = -std=c99 -Werror -DGLIB_DISABLE_DEPRECATION_WARNINGS -DGDK_DISABLE_DEPRECATION_WARNINGS -DGTK_DISABLE_DEPRECATION_WARNINGS $(GTK3_DEPS_CFLAGS) $(SM_CFLAGS) $(JANSSON_CFLAGS) $(DISPATCH_CFLAGS) $(MEDIALIB_CFLAGS) -I@top_srcdir@/include -I@top_srcdir@/shared -DDDB_WARN_DEPRECATED=1
++ddb_gui_GTK3_la_CFLAGS = -std=c99 -DGLIB_DISABLE_DEPRECATION_WARNINGS -DGDK_DISABLE_DEPRECATION_WARNINGS -DGTK_DISABLE_DEPRECATION_WARNINGS $(GTK3_DEPS_CFLAGS) $(SM_CFLAGS) $(JANSSON_CFLAGS) $(DISPATCH_CFLAGS) $(MEDIALIB_CFLAGS) -I@top_srcdir@/include -I@top_srcdir@/shared -DDDB_WARN_DEPRECATED=1
+ ddb_gui_GTK3_la_OBJCFLAGS = $(GTK3_DEPS_CFLAGS) $(SM_CFLAGS) $(JANSSON_CFLAGS)
+
+ nodist_ddb_gui_GTK3_la_SOURCES = gtkui-gresources.c