diff options
author | André Draszik <git@andred.net> | 2016-11-03 21:01:19 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-11-23 15:24:02 +0100 |
commit | 3173e7e227d12683705e47e7a3b25dccfebe6c0d (patch) | |
tree | a2dfd591331e65f1ca22f8790d513447a45fce68 /meta-multimedia/recipes-multimedia/streamripper | |
parent | 35f77c6250d1123e4af3ac01a539477163c89bdf (diff) | |
download | meta-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/recipes-multimedia/streamripper')
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 @@ | |||
1 | From 4c7165b3fbc0e99e7cdd77031e8a001440d0629d Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <git@andred.net> | ||
3 | Date: Thu, 3 Nov 2016 20:53:21 +0000 | ||
4 | Subject: [PATCH 1/3] build: these are 'foreign' automake projects | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | In order to prevent automake from complaining about missing | ||
10 | |||
11 | files ChangeLog, AUTHORS, etc., use the 'foreign' automake | ||
12 | option to instruct it so. | ||
13 | |||
14 | Upstream-Status: Inappropriate [no upstream activity for 7+ years] | ||
15 | Signed-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 | |||
21 | diff --git a/configure.ac b/configure.ac | ||
22 | index 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 | |||
34 | diff --git a/libmad-0.15.1b/configure.ac b/libmad-0.15.1b/configure.ac | ||
35 | index 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 | -- | ||
48 | 2.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 @@ | |||
1 | From 2fcf2b164e25c4b2523dea4b04094916e57ba19e Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <git@andred.net> | ||
3 | Date: Thu, 3 Nov 2016 20:53:26 +0000 | ||
4 | Subject: [PATCH 2/3] build: don't ignore CPPFLAGS from environment | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Upstream-Status: Inappropriate [no upstream activity for 7+ years] | ||
10 | Signed-off-by: André Draszik <git@andred.net> | ||
11 | --- | ||
12 | configure.ac | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/configure.ac b/configure.ac | ||
16 | index 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 | -- | ||
29 | 2.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 @@ | |||
1 | From 6d59b60ff5108357ad2c2951a97112e713ee5368 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <git@andred.net> | ||
3 | Date: Thu, 3 Nov 2016 20:53:32 +0000 | ||
4 | Subject: [PATCH 3/3] ripstream: fix compilation | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-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 | |||
14 | The already included srtypes.h does the right thing for all | ||
15 | platforms (I think). It certainly works well here. | ||
16 | |||
17 | Upstream-Status: Inappropriate [no upstream activity for 7+ years] | ||
18 | Signed-off-by: André Draszik <git@andred.net> | ||
19 | --- | ||
20 | lib/ripstream.c | 6 +----- | ||
21 | 1 file changed, 1 insertion(+), 5 deletions(-) | ||
22 | |||
23 | diff --git a/lib/ripstream.c b/lib/ripstream.c | ||
24 | index 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 | -- | ||
41 | 2.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 @@ | |||
1 | SUMMARY = "download online streams into audio files" | ||
2 | DESCRIPTION = "This command-line tool can be used to record MPEG III \ | ||
3 | and OGG online radio-streams into track-separated audio files." | ||
4 | HOMEPAGE = "http://streamripper.sourceforge.net" | ||
5 | LICENSE = "GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b" | ||
7 | DEPENDS = "glib-2.0 libmad libogg libvorbis" | ||
8 | |||
9 | SRC_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 | " | ||
15 | SRC_URI[mdsum] = "a37a1a8b8f9228522196a122a1c2dd32" | ||
16 | SRC_URI[sha256sum] = "c1d75f2e9c7b38fd4695be66eff4533395248132f3cc61f375196403c4d8de42" | ||
17 | |||
18 | inherit autotools pkgconfig | ||
19 | |||
20 | EXTRA_OECONF += "--with-included-argv=yes --with-included-libmad=no" | ||
21 | EXTRA_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 | ||
29 | CPPFLAGS_append = " -DANSI_PROTOTYPES" | ||