diff options
Diffstat (limited to 'meta-multimedia/recipes-multimedia/cdparanoia')
3 files changed, 77 insertions, 1 deletions
diff --git a/meta-multimedia/recipes-multimedia/cdparanoia/cdparanoia_10.2.bb b/meta-multimedia/recipes-multimedia/cdparanoia/cdparanoia_10.2.bb index ba368a27f..e846e3a97 100644 --- a/meta-multimedia/recipes-multimedia/cdparanoia/cdparanoia_10.2.bb +++ b/meta-multimedia/recipes-multimedia/cdparanoia/cdparanoia_10.2.bb | |||
@@ -11,6 +11,8 @@ SRC_URI = "http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-${PV}.sr | |||
11 | file://0001-Use-DESTDIR-in-install-Makefile-rule.patch \ | 11 | file://0001-Use-DESTDIR-in-install-Makefile-rule.patch \ |
12 | file://0002-interface-remove-C-reserved-keyword.patch \ | 12 | file://0002-interface-remove-C-reserved-keyword.patch \ |
13 | file://0003-Fix-missing-shared-object-LDFLAGS.patch \ | 13 | file://0003-Fix-missing-shared-object-LDFLAGS.patch \ |
14 | file://dont-use-internal-configs.patch \ | ||
15 | file://out-of-tree-build.patch \ | ||
14 | " | 16 | " |
15 | SRC_URI[md5sum] = "b304bbe8ab63373924a744eac9ebc652" | 17 | SRC_URI[md5sum] = "b304bbe8ab63373924a744eac9ebc652" |
16 | SRC_URI[sha256sum] = "005db45ef4ee017f5c32ec124f913a0546e77014266c6a1c50df902a55fe64df" | 18 | SRC_URI[sha256sum] = "005db45ef4ee017f5c32ec124f913a0546e77014266c6a1c50df902a55fe64df" |
@@ -24,4 +26,6 @@ S = "${WORKDIR}/cdparanoia-III-${PV}" | |||
24 | # between the compilation of those two targets) | 26 | # between the compilation of those two targets) |
25 | PARALLEL_MAKE = "" | 27 | PARALLEL_MAKE = "" |
26 | 28 | ||
27 | inherit autotools-brokensep | 29 | EXTRA_OECONF = "CC='${CC}' CFLAGS='${CFLAGS}'" |
30 | |||
31 | inherit autotools | ||
diff --git a/meta-multimedia/recipes-multimedia/cdparanoia/files/dont-use-internal-configs.patch b/meta-multimedia/recipes-multimedia/cdparanoia/files/dont-use-internal-configs.patch new file mode 100644 index 000000000..9b268b7ed --- /dev/null +++ b/meta-multimedia/recipes-multimedia/cdparanoia/files/dont-use-internal-configs.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | Index: cdparanoia-III-10.2/configure.in | ||
2 | =================================================================== | ||
3 | --- cdparanoia-III-10.2.orig/configure.in | ||
4 | +++ cdparanoia-III-10.2/configure.in | ||
5 | @@ -1,13 +1,8 @@ | ||
6 | AC_INIT(interface/interface.c) | ||
7 | |||
8 | -cp $srcdir/configure.guess $srcdir/config.guess | ||
9 | -cp $srcdir/configure.sub $srcdir/config.sub | ||
10 | - | ||
11 | AC_CANONICAL_HOST | ||
12 | |||
13 | -if test -z "$CC"; then | ||
14 | - AC_PROG_CC | ||
15 | -fi | ||
16 | +AC_PROG_CC | ||
17 | AC_PROG_RANLIB | ||
18 | AC_CHECK_PROG(AR,ar,ar) | ||
19 | AC_CHECK_PROG(INSTALL,install,install) | ||
20 | @@ -44,8 +39,8 @@ case 4 in | ||
21 | $ac_cv_sizeof_long) SIZE32="long";; | ||
22 | esac | ||
23 | |||
24 | -AC_CHECK_TYPE(int16_t,SIZE16="int16_t",,) | ||
25 | -AC_CHECK_TYPE(int32_t,SIZE32="size32_t",,) | ||
26 | +AC_CHECK_TYPES([int16_t], [SIZE16="int16_t"], [], [[#include <stdint.h>]]) | ||
27 | +AC_CHECK_TYPES([int32_t], [SIZE32="int32_t"], [], [[#include <stdint.h>]]) | ||
28 | |||
29 | if test -z "$SIZE16"; then | ||
30 | AC_MSG_ERROR(No 16 bit type found on this platform!) | ||
diff --git a/meta-multimedia/recipes-multimedia/cdparanoia/files/out-of-tree-build.patch b/meta-multimedia/recipes-multimedia/cdparanoia/files/out-of-tree-build.patch new file mode 100644 index 000000000..06ee82099 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/cdparanoia/files/out-of-tree-build.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | Index: cdparanoia-III-10.2/Makefile.in | ||
2 | =================================================================== | ||
3 | --- cdparanoia-III-10.2.orig/Makefile.in | ||
4 | +++ cdparanoia-III-10.2/Makefile.in | ||
5 | @@ -6,6 +6,8 @@ | ||
6 | VERSION=10.2 | ||
7 | VPATH=@srcdir@ | ||
8 | srcdir=@srcdir@ | ||
9 | +top_srcdir=@top_srcdir@ | ||
10 | +top_builddir=@top_builddir@ | ||
11 | |||
12 | @SET_MAKE@ | ||
13 | FLAGS=@TYPESIZES@ @CFLAGS@ | ||
14 | @@ -64,19 +66,19 @@ slib: | ||
15 | |||
16 | install: | ||
17 | $(INSTALL) -d -m 0755 $(DESTDIR)$(BINDIR) | ||
18 | - $(INSTALL) -m 755 $(srcdir)/cdparanoia $(DESTDIR)$(BINDIR) | ||
19 | + $(INSTALL) -m 755 $(top_builddir)/cdparanoia $(DESTDIR)$(BINDIR) | ||
20 | $(INSTALL) -d -m 0755 $(DESTDIR)$(MANDIR) | ||
21 | $(INSTALL) -d -m 0755 $(DESTDIR)$(MANDIR)/man1 | ||
22 | - $(INSTALL) -m 0644 $(srcdir)/cdparanoia.1 $(DESTDIR)$(MANDIR)/man1 | ||
23 | + $(INSTALL) -m 0644 $(top_srcdir)/cdparanoia.1 $(DESTDIR)$(MANDIR)/man1 | ||
24 | $(INSTALL) -d -m 0755 $(DESTDIR)$(INCLUDEDIR) | ||
25 | - $(INSTALL) -m 0644 $(srcdir)/paranoia/cdda_paranoia.h $(DESTDIR)$(INCLUDEDIR) | ||
26 | + $(INSTALL) -m 0644 $(top_srcdir)/paranoia/cdda_paranoia.h $(DESTDIR)$(INCLUDEDIR) | ||
27 | $(INSTALL) -d -m 0755 $(DESTDIR)$(LIBDIR) | ||
28 | - $(INSTALL) -m 0644 $(srcdir)/paranoia/libcdda_paranoia.so.0.$(VERSION) $(DESTDIR)$(LIBDIR) | ||
29 | - $(INSTALL) -m 0644 $(srcdir)/paranoia/libcdda_paranoia.a $(DESTDIR)$(LIBDIR) | ||
30 | - $(INSTALL) -m 0644 $(srcdir)/interface/cdda_interface.h $(DESTDIR)$(INCLUDEDIR) | ||
31 | - $(INSTALL) -m 0644 $(srcdir)/interface/libcdda_interface.so.0.$(VERSION) $(DESTDIR)$(LIBDIR) | ||
32 | - $(INSTALL) -m 0644 $(srcdir)/interface/libcdda_interface.a $(DESTDIR)$(LIBDIR) | ||
33 | - $(INSTALL) -m 0644 $(srcdir)/utils.h $(DESTDIR)$(INCLUDEDIR) | ||
34 | + $(INSTALL) -m 0644 $(top_builddir)/paranoia/libcdda_paranoia.so.0.$(VERSION) $(DESTDIR)$(LIBDIR) | ||
35 | + $(INSTALL) -m 0644 $(top_builddir)/paranoia/libcdda_paranoia.a $(DESTDIR)$(LIBDIR) | ||
36 | + $(INSTALL) -m 0644 $(top_srcdir)/interface/cdda_interface.h $(DESTDIR)$(INCLUDEDIR) | ||
37 | + $(INSTALL) -m 0644 $(top_builddir)/interface/libcdda_interface.so.0.$(VERSION) $(DESTDIR)$(LIBDIR) | ||
38 | + $(INSTALL) -m 0644 $(top_builddir)/interface/libcdda_interface.a $(DESTDIR)$(LIBDIR) | ||
39 | + $(INSTALL) -m 0644 $(top_srcdir)/utils.h $(DESTDIR)$(INCLUDEDIR) | ||
40 | ln -fs libcdda_interface.so.0.$(VERSION) \ | ||
41 | $(DESTDIR)$(LIBDIR)/libcdda_interface.so.0 | ||
42 | ln -fs libcdda_interface.so.0.$(VERSION) \ | ||