diff options
Diffstat (limited to 'recipes/cdparanoia')
-rw-r--r-- | recipes/cdparanoia/cdparanoia_10.2.bb | 33 | ||||
-rw-r--r-- | recipes/cdparanoia/cdparanoia_9.8alpha.bb | 31 | ||||
-rw-r--r-- | recipes/cdparanoia/files/Makefile.in.patch | 13 | ||||
-rw-r--r-- | recipes/cdparanoia/files/Makefile.patch | 19 | ||||
-rw-r--r-- | recipes/cdparanoia/files/fixes.patch | 63 | ||||
-rw-r--r-- | recipes/cdparanoia/files/fixes10.patch | 25 | ||||
-rw-r--r-- | recipes/cdparanoia/files/interface_Makefile.in.patch | 11 | ||||
-rw-r--r-- | recipes/cdparanoia/files/paranoia_Makefile.in.patch | 11 |
8 files changed, 206 insertions, 0 deletions
diff --git a/recipes/cdparanoia/cdparanoia_10.2.bb b/recipes/cdparanoia/cdparanoia_10.2.bb new file mode 100644 index 0000000000..2a220336fd --- /dev/null +++ b/recipes/cdparanoia/cdparanoia_10.2.bb @@ -0,0 +1,33 @@ +# cdparanoia OE build file +# Copyright (C) 2005, Advanced Micro Devices, Inc. All Rights Reserved +# Released under the MIT license (see packages/COPYING) + +PR ="r0" +LICENSE="GPL" + +SRC_URI="http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-10.2.src.tgz \ + file://fixes10.patch;patch=1 \ + file://Makefile.in.patch;patch=1 \ + file://interface_Makefile.in.patch;patch=1 \ + file://paranoia_Makefile.in.patch;patch=1 " + +S="${WORKDIR}/cdparanoia-III-10.2" + +PARALLEL_MAKE = "" + +inherit autotools + +do_install() { + oe_runmake BINDIR="${D}/usr/bin" MANDIR="${D}/usr/share/man/" \ + INCLUDEDIR="${D}/usr/include/" LIBDIR="${D}/usr/lib" install +} + +do_stage() { + install -d ${STAGING_INCDIR} ${STAGING_LIBDIR} + + install -m 0644 paranoia/cdda_paranoia.h ${STAGING_INCDIR} + install -m 0644 interface/cdda_interface.h ${STAGING_INCDIR} + + oe_libinstall -C interface libcdda_interface ${STAGING_LIBDIR} + oe_libinstall -C paranoia libcdda_paranoia ${STAGING_LIBDIR} +} diff --git a/recipes/cdparanoia/cdparanoia_9.8alpha.bb b/recipes/cdparanoia/cdparanoia_9.8alpha.bb new file mode 100644 index 0000000000..8c1bbd446f --- /dev/null +++ b/recipes/cdparanoia/cdparanoia_9.8alpha.bb @@ -0,0 +1,31 @@ +# cdparanoia OE build file +# Copyright (C) 2005, Advanced Micro Devices, Inc. All Rights Reserved +# Released under the MIT license (see packages/COPYING) + +PR ="r2" +LICENSE="GPL" + +SRC_URI="http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-alpha9.8.src.tgz \ + file://fixes.patch;patch=1 \ + file://Makefile.patch;patch=1" + +S="${WORKDIR}/cdparanoia-III-alpha9.8" + +PARALLEL_MAKE = "" + +inherit autotools + +do_install() { + oe_runmake BINDIR="${D}/usr/bin" MANDIR="${D}/usr/share/man/" \ + INCLUDEDIR="${D}/usr/include/" LIBDIR="${D}/usr/lib" install +} + +do_stage() { + install -d ${STAGING_INCDIR} ${STAGING_LIBDIR} + + install -m 0644 paranoia/cdda_paranoia.h ${STAGING_INCDIR} + install -m 0644 interface/cdda_interface.h ${STAGING_INCDIR} + + oe_libinstall -C interface libcdda_interface ${STAGING_LIBDIR} + oe_libinstall -C paranoia libcdda_paranoia ${STAGING_LIBDIR} +} diff --git a/recipes/cdparanoia/files/Makefile.in.patch b/recipes/cdparanoia/files/Makefile.in.patch new file mode 100644 index 0000000000..40cf4ad516 --- /dev/null +++ b/recipes/cdparanoia/files/Makefile.in.patch @@ -0,0 +1,13 @@ +--- cdparanoia-III-10.2/Makefile.in.orig 2009-01-27 23:32:15.000000000 +0100 ++++ cdparanoia-III-10.2/Makefile.in 2009-01-27 23:32:53.000000000 +0100 +@@ -87,8 +87,9 @@ + $(LIBDIR)/libcdda_paranoia.so + + cdparanoia: $(OFILES) $(LIBDEP) +- $(LD) $(CFLAGS) $(LDFLAGS) $(OFILES) \ ++ $(LD) $(CFLAGS) \ + -L$(PWD)/paranoia -L$(PWD)/interface \ ++ $(LDFLAGS) $(OFILES) \ + -o cdparanoia $(LIBS) + + .c.o: diff --git a/recipes/cdparanoia/files/Makefile.patch b/recipes/cdparanoia/files/Makefile.patch new file mode 100644 index 0000000000..798ccf9003 --- /dev/null +++ b/recipes/cdparanoia/files/Makefile.patch @@ -0,0 +1,19 @@ +*** cdparanoia-III-alpha9.8/Makefile.in- Mon Mar 27 23:09:24 2006 +--- cdparanoia-III-alpha9.8/Makefile.in Mon Mar 27 23:09:56 2006 +*************** +*** 44,50 **** + cd interface && $(MAKE) all + cd paranoia && $(MAKE) all + $(MAKE) cdparanoia CFLAGS="$(OPT)" +! strip cdparanoia + + debug: + cd interface && $(MAKE) debug +--- 44,50 ---- + cd interface && $(MAKE) all + cd paranoia && $(MAKE) all + $(MAKE) cdparanoia CFLAGS="$(OPT)" +! $(STRIP) cdparanoia + + debug: + cd interface && $(MAKE) debug diff --git a/recipes/cdparanoia/files/fixes.patch b/recipes/cdparanoia/files/fixes.patch new file mode 100644 index 0000000000..6ffc8a6af9 --- /dev/null +++ b/recipes/cdparanoia/files/fixes.patch @@ -0,0 +1,63 @@ +--- cdparanoia-III-alpha9.8/configure.in 2000-03-26 00:33:22.000000000 -0700 ++++ cdparanoia-III-alpha9.8.new/configure.in 2004-12-23 16:34:04.072846728 -0700 +@@ -1,7 +1,7 @@ + AC_INIT(interface/interface.c) + +-cp $srcdir/configure.guess $srcdir/config.guess +-cp $srcdir/configure.sub $srcdir/config.sub ++#cp $srcdir/configure.guess $srcdir/config.guess ++#cp $srcdir/configure.sub $srcdir/config.sub + + AC_CANONICAL_HOST + +--- cdparanoia-III-alpha9.8/interface/utils.h 2000-04-19 15:41:04.000000000 -0700 ++++ cdparanoia-III-alpha9.8.new/interface/utils.h 2004-12-23 16:37:11.126410264 -0700 +@@ -111,7 +111,7 @@ + d->errorbuf=catstring(d->errorbuf,s); + break; + case CDDA_MESSAGE_FORGETIT: +- default: ++ default: ; + } + } + } +@@ -126,7 +126,7 @@ + d->messagebuf=catstring(d->messagebuf,s); + break; + case CDDA_MESSAGE_FORGETIT: +- default: ++ default: ; + } + } + } +@@ -168,7 +168,7 @@ + } + break; + case CDDA_MESSAGE_FORGETIT: +- default: ++ default: ; + } + } + if(malloced)free(buffer); +@@ -204,7 +204,7 @@ + } + break; + case CDDA_MESSAGE_FORGETIT: +- default: ++ default: ; + } + } + if(malloced)free(buffer); +--- cdparanoia-III-alpha9.8/interface/scan_devices.c 2001-03-25 22:44:01.000000000 -0700 ++++ cdparanoia-III-alpha9.8.new/interface/scan_devices.c 2004-12-23 16:38:47.128815680 -0700 +@@ -19,6 +19,10 @@ + #include "common_interface.h" + #include "utils.h" + ++#ifndef PATH_MAX ++#define PATH_MAX 4096 ++#endif ++ + #define MAX_DEV_LEN 20 /* Safe because strings only come from below */ + /* must be absolute paths! */ + static char *scsi_cdrom_prefixes[]={ diff --git a/recipes/cdparanoia/files/fixes10.patch b/recipes/cdparanoia/files/fixes10.patch new file mode 100644 index 0000000000..414ff3944d --- /dev/null +++ b/recipes/cdparanoia/files/fixes10.patch @@ -0,0 +1,25 @@ +--- cdparanoia-III-alpha9.8/configure.in 2000-03-26 00:33:22.000000000 -0700 ++++ cdparanoia-III-alpha9.8.new/configure.in 2004-12-23 16:34:04.072846728 -0700 +@@ -1,7 +1,7 @@ + AC_INIT(interface/interface.c) + +-cp $srcdir/configure.guess $srcdir/config.guess +-cp $srcdir/configure.sub $srcdir/config.sub ++#cp $srcdir/configure.guess $srcdir/config.guess ++#cp $srcdir/configure.sub $srcdir/config.sub + + AC_CANONICAL_HOST + +--- cdparanoia-III-alpha9.8/interface/scan_devices.c 2001-03-25 22:44:01.000000000 -0700 ++++ cdparanoia-III-alpha9.8.new/interface/scan_devices.c 2004-12-23 16:38:47.128815680 -0700 +@@ -19,6 +19,10 @@ + #include "common_interface.h" + #include "utils.h" + ++#ifndef PATH_MAX ++#define PATH_MAX 4096 ++#endif ++ + #define MAX_DEV_LEN 20 /* Safe because strings only come from below */ + /* must be absolute paths! */ + static char *scsi_cdrom_prefixes[]={ diff --git a/recipes/cdparanoia/files/interface_Makefile.in.patch b/recipes/cdparanoia/files/interface_Makefile.in.patch new file mode 100644 index 0000000000..4dbd2bb19a --- /dev/null +++ b/recipes/cdparanoia/files/interface_Makefile.in.patch @@ -0,0 +1,11 @@ +--- cdparanoia-III-10.2/interface/Makefile.in.orig 2009-01-27 23:52:42.000000000 +0100 ++++ cdparanoia-III-10.2/interface/Makefile.in 2009-01-27 23:53:27.000000000 +0100 +@@ -46,7 +46,7 @@ + $(RANLIB) libcdda_interface.a + + libcdda_interface.so: $(OFILES) +- $(CC) -fpic -shared -o libcdda_interface.so.0.$(VERSION) -Wl,-soname -Wl,libcdda_interface.so.0 $(OFILES) $(LIBS) ++ $(CC) -fpic -shared -o libcdda_interface.so.0.$(VERSION) $(LDFLAGS) -Wl,-soname -Wl,libcdda_interface.so.0 $(OFILES) $(LIBS) + [ -e libcdda_interface.so.0 ] || ln -s libcdda_interface.so.0.$(VERSION) libcdda_interface.so.0 + [ -e libcdda_interface.so ] || ln -s libcdda_interface.so.0.$(VERSION) libcdda_interface.so + diff --git a/recipes/cdparanoia/files/paranoia_Makefile.in.patch b/recipes/cdparanoia/files/paranoia_Makefile.in.patch new file mode 100644 index 0000000000..962a43a634 --- /dev/null +++ b/recipes/cdparanoia/files/paranoia_Makefile.in.patch @@ -0,0 +1,11 @@ +--- cdparanoia-III-10.2/paranoia/Makefile.in.orig 2009-01-27 23:54:45.000000000 +0100 ++++ cdparanoia-III-10.2/paranoia/Makefile.in 2009-01-27 23:55:05.000000000 +0100 +@@ -44,7 +44,7 @@ + $(RANLIB) libcdda_paranoia.a + + libcdda_paranoia.so: $(OFILES) +- $(CC) -fpic -shared -o libcdda_paranoia.so.0.$(VERSION) -Wl,-soname -Wl,libcdda_paranoia.so.0 $(OFILES) -L ../interface -lcdda_interface ++ $(CC) -fpic -shared -o libcdda_paranoia.so.0.$(VERSION) $(LDFLAGS) -Wl,-soname -Wl,libcdda_paranoia.so.0 $(OFILES) -L ../interface -lcdda_interface + [ -e libcdda_paranoia.so.0 ] || ln -s libcdda_paranoia.so.0.$(VERSION) libcdda_paranoia.so.0 + [ -e libcdda_paranoia.so ] || ln -s libcdda_paranoia.so.0.$(VERSION) libcdda_paranoia.so + |