summaryrefslogtreecommitdiffstats
path: root/meta-multimedia
diff options
context:
space:
mode:
authorAndré Draszik <git@andred.net>2016-11-03 21:01:19 +0000
committerMartin Jansa <Martin.Jansa@gmail.com>2016-11-23 15:24:02 +0100
commit3173e7e227d12683705e47e7a3b25dccfebe6c0d (patch)
treea2dfd591331e65f1ca22f8790d513447a45fce68 /meta-multimedia
parent35f77c6250d1123e4af3ac01a539477163c89bdf (diff)
downloadmeta-openembedded-3173e7e227d12683705e47e7a3b25dccfebe6c0d.tar.gz
streamripper: add v1.64.6
Signed-off-by: André Draszik <git@andred.net> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-multimedia')
-rw-r--r--meta-multimedia/recipes-multimedia/streamripper/streamripper/0001-build-these-are-foreign-automake-projects.patch49
-rw-r--r--meta-multimedia/recipes-multimedia/streamripper/streamripper/0002-build-don-t-ignore-CPPFLAGS-from-environment.patch30
-rw-r--r--meta-multimedia/recipes-multimedia/streamripper/streamripper/0003-ripstream-fix-compilation.patch42
-rw-r--r--meta-multimedia/recipes-multimedia/streamripper/streamripper_1.64.6.bb29
4 files changed, 150 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/streamripper/streamripper/0001-build-these-are-foreign-automake-projects.patch b/meta-multimedia/recipes-multimedia/streamripper/streamripper/0001-build-these-are-foreign-automake-projects.patch
new file mode 100644
index 000000000..c0f4692d1
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/streamripper/streamripper/0001-build-these-are-foreign-automake-projects.patch
@@ -0,0 +1,49 @@
1From 4c7165b3fbc0e99e7cdd77031e8a001440d0629d Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <git@andred.net>
3Date: Thu, 3 Nov 2016 20:53:21 +0000
4Subject: [PATCH 1/3] build: these are 'foreign' automake projects
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9In order to prevent automake from complaining about missing
10
11files ChangeLog, AUTHORS, etc., use the 'foreign' automake
12option to instruct it so.
13
14Upstream-Status: Inappropriate [no upstream activity for 7+ years]
15Signed-off-by: André Draszik <git@andred.net>
16---
17 configure.ac | 2 +-
18 libmad-0.15.1b/configure.ac | 2 +-
19 2 files changed, 2 insertions(+), 2 deletions(-)
20
21diff --git a/configure.ac b/configure.ac
22index b12d11f..96300d6 100644
23--- a/configure.ac
24+++ b/configure.ac
25@@ -11,7 +11,7 @@ dnl AC_CHECK_FUNC: defines a shell variable
26
27 AC_PREREQ(2.59)
28 AC_INIT(streamripper,1.64.6)
29-AM_INIT_AUTOMAKE
30+AM_INIT_AUTOMAKE([foreign])
31
32 AC_CONFIG_HEADERS([lib/config.h])
33
34diff --git a/libmad-0.15.1b/configure.ac b/libmad-0.15.1b/configure.ac
35index 8fb35ee..ab116a6 100644
36--- a/libmad-0.15.1b/configure.ac
37+++ b/libmad-0.15.1b/configure.ac
38@@ -26,7 +26,7 @@ AC_PREREQ(2.53)
39
40 AC_CONFIG_SRCDIR([decoder.h])
41
42-AM_INIT_AUTOMAKE
43+AM_INIT_AUTOMAKE([foreign])
44
45 AM_CONFIG_HEADER([config.h])
46
47--
482.10.1
49
diff --git a/meta-multimedia/recipes-multimedia/streamripper/streamripper/0002-build-don-t-ignore-CPPFLAGS-from-environment.patch b/meta-multimedia/recipes-multimedia/streamripper/streamripper/0002-build-don-t-ignore-CPPFLAGS-from-environment.patch
new file mode 100644
index 000000000..58473f611
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/streamripper/streamripper/0002-build-don-t-ignore-CPPFLAGS-from-environment.patch
@@ -0,0 +1,30 @@
1From 2fcf2b164e25c4b2523dea4b04094916e57ba19e Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <git@andred.net>
3Date: Thu, 3 Nov 2016 20:53:26 +0000
4Subject: [PATCH 2/3] build: don't ignore CPPFLAGS from environment
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Upstream-Status: Inappropriate [no upstream activity for 7+ years]
10Signed-off-by: André Draszik <git@andred.net>
11---
12 configure.ac | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/configure.ac b/configure.ac
16index 96300d6..1600c88 100644
17--- a/configure.ac
18+++ b/configure.ac
19@@ -56,7 +56,7 @@ AC_ARG_WITH(curses,
20 [ --with-curses(=XXX) compile curses front-end (XXX is curses (default), ncurses, ncursesw, pdcurses or slang)])
21
22
23-CPPFLAGS="-D__UNIX__"
24+CPPFLAGS="$CPPFLAGS -D__UNIX__"
25 AC_SUBST(CPPFLAGS)
26
27
28--
292.10.1
30
diff --git a/meta-multimedia/recipes-multimedia/streamripper/streamripper/0003-ripstream-fix-compilation.patch b/meta-multimedia/recipes-multimedia/streamripper/streamripper/0003-ripstream-fix-compilation.patch
new file mode 100644
index 000000000..065254ec8
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/streamripper/streamripper/0003-ripstream-fix-compilation.patch
@@ -0,0 +1,42 @@
1From 6d59b60ff5108357ad2c2951a97112e713ee5368 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <git@andred.net>
3Date: Thu, 3 Nov 2016 20:53:32 +0000
4Subject: [PATCH 3/3] ripstream: fix compilation
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9| ../../streamripper-1.64.6/lib/ripstream.c: In function 'write_id3v2_frame':
10| ../../streamripper-1.64.6/lib/ripstream.c:717:5: error: unknown type name '__uint32_t'
11| __uint32_t framesize = 0;
12| ^~~~~~~~~~
13
14The already included srtypes.h does the right thing for all
15platforms (I think). It certainly works well here.
16
17Upstream-Status: Inappropriate [no upstream activity for 7+ years]
18Signed-off-by: André Draszik <git@andred.net>
19---
20 lib/ripstream.c | 6 +-----
21 1 file changed, 1 insertion(+), 5 deletions(-)
22
23diff --git a/lib/ripstream.c b/lib/ripstream.c
24index c671e18..7f311c6 100644
25--- a/lib/ripstream.c
26+++ b/lib/ripstream.c
27@@ -713,11 +713,7 @@ write_id3v2_frame(RIP_MANAGER_INFO* rmi, char* tag_name, mchar* data,
28 int rc;
29 char bigbuf[HEADER_SIZE] = "";
30 ID3V2frame id3v2frame;
31-#ifndef WIN32
32- __uint32_t framesize = 0;
33-#else
34- unsigned long int framesize = 0;
35-#endif
36+ uint32_t framesize = 0;
37
38 memset(&id3v2frame, '\000', sizeof(id3v2frame));
39 strncpy(id3v2frame.id, tag_name, 4);
40--
412.10.1
42
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 000000000..94355b64d
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/streamripper/streamripper_1.64.6.bb
@@ -0,0 +1,29 @@
1SUMMARY = "download online streams into audio files"
2DESCRIPTION = "This command-line tool can be used to record MPEG III \
3and OGG online radio-streams into track-separated audio files."
4HOMEPAGE = "http://streamripper.sourceforge.net"
5LICENSE = "GPLv2"
6LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
7DEPENDS = "glib-2.0 libmad libogg libvorbis"
8
9SRC_URI = "\
10 ${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz \
11 file://0001-build-these-are-foreign-automake-projects.patch \
12 file://0002-build-don-t-ignore-CPPFLAGS-from-environment.patch \
13 file://0003-ripstream-fix-compilation.patch \
14"
15SRC_URI[mdsum] = "a37a1a8b8f9228522196a122a1c2dd32"
16SRC_URI[sha256sum] = "c1d75f2e9c7b38fd4695be66eff4533395248132f3cc61f375196403c4d8de42"
17
18inherit autotools pkgconfig
19
20EXTRA_OECONF += "--with-included-argv=yes --with-included-libmad=no"
21EXTRA_OECONF += "\
22 --with-ogg-includes=${STAGING_INCDIR} \
23 --with-ogg-libraries=${STAGING_LIBDIR} \
24 --with-vorbis-includes=${STAGING_INCDIR} \
25 --with-vorbis-libraries=${STAGING_LIBDIR} \
26"
27
28# the included argv library needs this
29CPPFLAGS_append = " -DANSI_PROTOTYPES"