diff --git a/srcpkgs/deadbeef/patches/musl.patch b/srcpkgs/deadbeef/patches/musl.patch new file mode 100644 index 00000000000..3de7b1d61a9 --- /dev/null +++ b/srcpkgs/deadbeef/patches/musl.patch @@ -0,0 +1,40 @@ +From 6d39333448dd7c48fb3f4e07ff5d7e05d0527fff Mon Sep 17 00:00:00 2001 +From: Carlo Landmeter +Date: Wed, 29 Oct 2014 10:36:57 +0100 +Subject: [PATCH] musl libc does not have execinfo.h + +--- + main.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/main.c b/main.c +index d7dab49..797889c 100644 +--- a/main.c ++++ b/main.c +@@ -51,7 +51,7 @@ + #include + #include + #include +-#ifdef __linux__ ++#ifdef __GLIBC__ + #include + #endif + #include +@@ -642,7 +642,7 @@ player_mainloop (void) { + } + } + +-#ifdef __linux__ ++#ifdef __GLIBC__ + void + sigsegv_handler (int sig) { + fprintf (stderr, "Segmentation Fault\n"); +@@ -761,7 +761,7 @@ main (int argc, char *argv[]) { + } + #endif + +-#ifdef __linux__ ++#ifdef __GLIBC__ + signal (SIGSEGV, sigsegv_handler); + #endif + setlocale (LC_ALL, ""); diff --git a/srcpkgs/deadbeef/patches/musl_limits_h.patch b/srcpkgs/deadbeef/patches/musl_limits_h.patch new file mode 100644 index 00000000000..7a2b6661092 --- /dev/null +++ b/srcpkgs/deadbeef/patches/musl_limits_h.patch @@ -0,0 +1,101 @@ +diff -ru ./conf.c ../_patched_deadbeef-0.6.2/conf.c +--- ./conf.c 2014-08-05 17:54:03.000000000 +0000 ++++ ../_patched_deadbeef-0.6.2/conf.c 2015-08-05 13:56:05.209000000 +0000 +@@ -29,6 +29,7 @@ + #include + #include + #include ++#include + #include + #include + #include +Only in ../_patched_deadbeef-0.6.2/: main.c.orig +Only in ./: musl_limits_h.patch +diff -ru ./plugins/artwork/artwork.c ../_patched_deadbeef-0.6.2/plugins/artwork/artwork.c +--- ./plugins/artwork/artwork.c 2014-07-31 19:03:51.000000000 +0000 ++++ ../_patched_deadbeef-0.6.2/plugins/artwork/artwork.c 2015-08-05 14:20:35.774000000 +0000 +@@ -27,6 +27,7 @@ + #endif + #include + #include ++#include + #include + #include + #ifdef __linux__ +diff -ru ./plugins/cdda/cdda.c ../_patched_deadbeef-0.6.2/plugins/cdda/cdda.c +--- ./plugins/cdda/cdda.c 2014-07-12 20:30:07.000000000 +0000 ++++ ../_patched_deadbeef-0.6.2/plugins/cdda/cdda.c 2015-08-05 14:17:37.715000000 +0000 +@@ -23,6 +23,7 @@ + #endif + #include + #include ++#include + #include + #include + #include +diff -ru ./plugins/converter/converter.c ../_patched_deadbeef-0.6.2/plugins/converter/converter.c +--- ./plugins/converter/converter.c 2014-07-31 19:16:23.000000000 +0000 ++++ ../_patched_deadbeef-0.6.2/plugins/converter/converter.c 2015-08-05 13:56:05.209000000 +0000 +@@ -26,6 +26,7 @@ + #include + #endif + #include ++#include + #include + #include + #include +diff -ru ./plugins/flac/flac.c ../_patched_deadbeef-0.6.2/plugins/flac/flac.c +--- ./plugins/flac/flac.c 2014-08-05 17:54:03.000000000 +0000 ++++ ../_patched_deadbeef-0.6.2/plugins/flac/flac.c 2015-08-05 14:15:56.192000000 +0000 +@@ -36,6 +36,7 @@ + #include + #include + #include ++#include + #include + #include + #include +diff -ru ./plugins/liboggedit/oggedit_flac.c ../_patched_deadbeef-0.6.2/plugins/liboggedit/oggedit_flac.c +--- ./plugins/liboggedit/oggedit_flac.c 2014-07-31 19:02:29.000000000 +0000 ++++ ../_patched_deadbeef-0.6.2/plugins/liboggedit/oggedit_flac.c 2015-08-05 14:13:00.237000000 +0000 +@@ -28,6 +28,7 @@ + #include + #endif + #include ++#include + #include + #include + #include "oggedit_internal.h" +diff -ru ./plugins/liboggedit/oggedit_internal.c ../_patched_deadbeef-0.6.2/plugins/liboggedit/oggedit_internal.c +--- ./plugins/liboggedit/oggedit_internal.c 2014-07-31 19:02:29.000000000 +0000 ++++ ../_patched_deadbeef-0.6.2/plugins/liboggedit/oggedit_internal.c 2015-08-05 14:10:49.465000000 +0000 +@@ -29,6 +29,7 @@ + #endif + #include + #include ++#include + #include + #include + #include +diff -ru ./plugins/liboggedit/oggedit_vorbis.c ../_patched_deadbeef-0.6.2/plugins/liboggedit/oggedit_vorbis.c +--- ./plugins/liboggedit/oggedit_vorbis.c 2014-07-31 19:02:29.000000000 +0000 ++++ ../_patched_deadbeef-0.6.2/plugins/liboggedit/oggedit_vorbis.c 2015-08-05 14:12:05.786000000 +0000 +@@ -28,6 +28,7 @@ + #include + #endif + #include ++#include + #include + #include + #include "oggedit_internal.h" +diff -ru ./plugins/m3u/m3u.c ../_patched_deadbeef-0.6.2/plugins/m3u/m3u.c +--- ./plugins/m3u/m3u.c 2014-07-31 19:02:29.000000000 +0000 ++++ ../_patched_deadbeef-0.6.2/plugins/m3u/m3u.c 2015-08-05 13:56:05.209000000 +0000 +@@ -26,6 +26,7 @@ + #endif + #include + #include ++#include + #include // for ceil + #if HAVE_SYS_SYSLIMITS_H + #include diff --git a/srcpkgs/deadbeef/template b/srcpkgs/deadbeef/template index 7e24d8058bb..83d7b0f906d 100644 --- a/srcpkgs/deadbeef/template +++ b/srcpkgs/deadbeef/template @@ -1,7 +1,7 @@ # Template file for 'deadbeef'. pkgname=deadbeef version=0.6.2 -revision=3 +revision=4 build_style=gnu-configure configure_args="--disable-static --enable-gtk3 --disable-gtk2" hostmakedepends="pkg-config intltool yasm" @@ -17,11 +17,14 @@ license="GPL-2, LGPL-2.1" homepage="http://deadbeef.sourceforge.net" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2" checksum=3433b966683286c03ffbcc79b2201cd517f8dbf6b41da8600778dfa93cd64e1a +patch_args="-p1" post_configure() { # XXX sed -i 's,^OBJCLD =.*,OBJCLD = $(COMPILE),g' plugins/gtkui/Makefile } + + post_install() { vinstall ${FILESDIR}/deadbeef-queue.desktop 644 usr/share/applications # Remove devel stuff.