Skip to content

Commit

Permalink
Add audio CD playback and ripping support
Browse files Browse the repository at this point in the history
Add the cdparanoia gst plugin to support audio CD playback.

Closes: #11
  • Loading branch information
hadess committed Jan 6, 2020
1 parent 68ec0ec commit e8f7eb6
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 1 deletion.
27 changes: 27 additions & 0 deletions cdparanoia-use-proper-gnu-config-files.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Index: cdparanoia-III-10.2/configure
===================================================================
--- cdparanoia-III-10.2.orig/configure
+++ cdparanoia-III-10.2/configure
@@ -1289,9 +1289,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu



-cp $srcdir/configure.guess $srcdir/config.guess
-cp $srcdir/configure.sub $srcdir/config.sub
-
ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
if test -f $ac_dir/install-sh; then
Index: cdparanoia-III-10.2/configure.in
===================================================================
--- cdparanoia-III-10.2.orig/configure.in
+++ cdparanoia-III-10.2/configure.in
@@ -1,8 +1,5 @@
AC_INIT(interface/interface.c)

-cp $srcdir/configure.guess $srcdir/config.guess
-cp $srcdir/configure.sub $srcdir/config.sub
-
AC_CANONICAL_HOST

if test -z "$CC"; then
44 changes: 43 additions & 1 deletion org.gnome.Rhythmbox3.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
/* totem-pl-parser http support, for podcasts and streaming, and optical media detection */
"--talk-name=org.gtk.vfs", "--talk-name=org.gtk.vfs.*",
/* FIXME See #16 */
"--env=GIO_USE_VOLUME_MONITOR=udisks2"
"--env=GIO_USE_VOLUME_MONITOR=udisks2",
/* Ensure cdda gstreamer plugin is picked found for audio CD's */
"--env=GST_PLUGIN_PATH=/app/lib/codecs/lib/gstreamer-1.0"
],
"build-options" : {
"cflags": "-O2 -g",
Expand Down Expand Up @@ -137,6 +139,46 @@
}
]
},
/* gst-plugins-base needs cdparanoia to add support for cdda */
{
"name": "cdparanoia",
"buildsystem": "simple",
"build-commands": [
"cp /usr/share/automake-*/config.{sub,guess} .",
"./configure --prefix=/app",
"make all slib",
"make install"
],
"sources": [
{
"type": "archive",
"url": "http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-10.2.src.tgz",
"sha256": "005db45ef4ee017f5c32ec124f913a0546e77014266c6a1c50df902a55fe64df"
},
{
"type": "patch",
"path": "cdparanoia-use-proper-gnu-config-files.patch"
}
]
},
/* To play cdda */
{
"name": "gst-plugins-base",
"buildsystem": "meson",
"config-opts": [
"-Dauto_features=disabled",
"-Dcdparanoia=enabled"
],
"cleanup": [ "*.la", "/share/gtk-doc" ],
"sources": [
{
"type": "git",
"url": "https://gitlab.freedesktop.org/gstreamer/gst-plugins-base.git",
"branch" : "1.16.2",
"commit" : "9d3581b2e6f12f0b7e790d1ebb63b90cf5b1ef4e"
}
]
},
{
"name": "rhythmbox",
"config-opts": [ "--disable-more-warnings" ],
Expand Down

0 comments on commit e8f7eb6

Please sign in to comment.