All of lore.kernel.org
 help / color / mirror / Atom feed
From: "André Draszik" <git@andred.net>
To: openembedded-devel@lists.openembedded.org
Subject: [meta-multimedia][PATCH] streamripper: add v1.64.6
Date: Thu,  3 Nov 2016 19:58:46 +0000	[thread overview]
Message-ID: <20161103195846.26528-1-git@andred.net> (raw)

Signed-off-by: André Draszik <git@andred.net>
---
 .../0001-ripstream-fix-compilation.patch           | 39 ++++++++++++++++++++++
 .../streamripper/streamripper_1.64.6.bb            | 35 +++++++++++++++++++
 2 files changed, 74 insertions(+)
 create mode 100644 meta-multimedia/recipes-multimedia/streamripper/streamripper/0001-ripstream-fix-compilation.patch
 create mode 100644 meta-multimedia/recipes-multimedia/streamripper/streamripper_1.64.6.bb

diff --git a/meta-multimedia/recipes-multimedia/streamripper/streamripper/0001-ripstream-fix-compilation.patch b/meta-multimedia/recipes-multimedia/streamripper/streamripper/0001-ripstream-fix-compilation.patch
new file mode 100644
index 0000000..ecb18ca
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/streamripper/streamripper/0001-ripstream-fix-compilation.patch
@@ -0,0 +1,39 @@
+From 600ee578b5779f08538e62a0758d2c2843e868b8 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <git@andred.net>
+Date: Fri, 28 Oct 2016 12:00:02 +0100
+Subject: [PATCH] ripstream: fix compilation
+
+| ../../streamripper-1.64.6/lib/ripstream.c: In function 'write_id3v2_frame':
+| ../../streamripper-1.64.6/lib/ripstream.c:717:5: error: unknown type name '__uint32_t'
+|      __uint32_t framesize = 0;
+|      ^~~~~~~~~~
+
+The already included srtypes.h does the right thing for all
+platforms (I think). It certainly works well here.
+
+Upstream-Status: Inappropriate [no upstream activity for 7+ years]
+Signed-off-by: André Draszik <git@andred.net>
+---
+ lib/ripstream.c | 6 +-----
+ 1 file changed, 1 insertion(+), 5 deletions(-)
+
+diff --git a/lib/ripstream.c b/lib/ripstream.c
+index c671e18..7f311c6 100644
+--- a/lib/ripstream.c
++++ b/lib/ripstream.c
+@@ -713,11 +713,7 @@ write_id3v2_frame(RIP_MANAGER_INFO* rmi, char* tag_name, mchar* data,
+     int rc;
+     char bigbuf[HEADER_SIZE] = "";
+     ID3V2frame id3v2frame;
+-#ifndef WIN32
+-    __uint32_t framesize = 0;
+-#else
+-    unsigned long int framesize = 0;
+-#endif
++    uint32_t framesize = 0;
+ 
+     memset(&id3v2frame, '\000', sizeof(id3v2frame));
+     strncpy(id3v2frame.id, tag_name, 4);
+-- 
+2.10.1
+
diff --git a/meta-multimedia/recipes-multimedia/streamripper/streamripper_1.64.6.bb b/meta-multimedia/recipes-multimedia/streamripper/streamripper_1.64.6.bb
new file mode 100644
index 0000000..c470d3c
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/streamripper/streamripper_1.64.6.bb
@@ -0,0 +1,35 @@
+SUMMARY = "download online streams into audio files"
+DESCRIPTION = "This command-line tool can be used to record MPEG III \
+and OGG online radio-streams into track-separated audio files."
+HOMEPAGE = "http://streamripper.sourceforge.net"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
+DEPENDS = "glib-2.0 libmad libogg libvorbis"
+
+SRC_URI = "\
+    ${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz \
+    file://0001-ripstream-fix-compilation.patch \
+"
+SRC_URI[mdsum] = "a37a1a8b8f9228522196a122a1c2dd32"
+SRC_URI[sha256sum] = "c1d75f2e9c7b38fd4695be66eff4533395248132f3cc61f375196403c4d8de42"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF += "--with-included-argv=yes --with-included-libmad=no"
+EXTRA_OECONF += "\
+    --with-ogg-includes=${STAGING_INCDIR} \
+    --with-ogg-libraries=${STAGING_LIBDIR} \
+    --with-vorbis-includes=${STAGING_INCDIR} \
+    --with-vorbis-libraries=${STAGING_LIBDIR} \
+"
+
+do_configure_prepend() {
+    # autotools complain otherwise
+    mv ${S}/libmad-0.15.1b/CHANGES ${S}/libmad-0.15.1b/ChangeLog
+    touch ${S}/libmad-0.15.1b/NEWS ${S}/libmad-0.15.1b/AUTHORS
+    mv ${S}/CHANGES ${S}/ChangeLog
+    touch ${S}/NEWS ${S}/AUTHORS
+}
+
+# the included argv library needs this
+CFLAGS_append = " -DANSI_PROTOTYPES"
-- 
2.10.1



             reply	other threads:[~2016-11-03 19:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-03 19:58 André Draszik [this message]
2016-11-03 21:00 ` [meta-multimedia][PATCH v2] streamripper: add v1.64.6 André Draszik
2016-11-03 21:01   ` [meta-multimedia][PATCH v3] " André Draszik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161103195846.26528-1-git@andred.net \
    --to=git@andred.net \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.