I looked all over the place and couldn’t find a good way to get wavpack support in amarok for gutsy. It looked like what I really needed was wavpack support in xine-lib (libxine1). As it turns out libxine1 is built without wavpack support for some reason. So I built my own, instructions below. (Next to see if this works for MythTV’s mythaudio plugin. Does it use xine-lib?)
Note that some of this is specific to xine-lib-1.1.7. Changes will need to be made if you want to use another version.
First make sure build dependencies are installed.
sudo apt-get build-dep libxine1
sudo apt-get install build-essential fakeroot devscripts
sudo apt-get install libwavpack-dev
Now get the source.
mkdir ~/src
cd ~/src
sudo apt-get source libxine1
cd xine-lib-*
Make it your own version using dch (debchange). Put something like “WAVPACKCUSTOM” on the end of the version so you know it’s something you changed down the road. My version: 1.1.7-1ubuntuWAVPACKCUSTOM. Also add a comment next to the ‘*’ about what you’re doing.
dch -i
Enable wavpack support by applying this patch.
diff -ur xine-lib-1.1.7/debian/libxine1.install xine-lib-1.1.7.new/debian/libxin
e1.install
--- xine-lib-1.1.7/debian/libxine1.install 2007-09-26 11:25:01.000000000 -0
600
+++ xine-lib-1.1.7.new/debian/libxine1.install 2007-09-26 10:55:47.000000000 -0
600
@@ -82,6 +82,7 @@
debian/tmp/usr/lib/xine/plugins/*/xineplug_vo_out_xv.so
debian/tmp/usr/lib/xine/plugins/*/xineplug_vo_out_xvmc.so
debian/tmp/usr/lib/xine/plugins/*/xineplug_vo_out_xxmc.so
+debian/tmp/usr/lib/xine/plugins/*/xineplug_wavpack.so
# postprocess plugins
debian/tmp/usr/lib/xine/plugins/*/post/xineplug_post_mosaico.so
diff -ur xine-lib-1.1.7/debian/rules xine-lib-1.1.7.new/debian/rules
--- xine-lib-1.1.7/debian/rules 2007-09-26 11:25:01.000000000 -0600
+++ xine-lib-1.1.7.new/debian/rules 2007-09-26 10:14:22.000000000 -0600
@@ -44,6 +44,7 @@
--with-external-ffmpeg \
--with-external-libmpcdec \
--with-libflac \
+ --with-wavpack \
--disable-vidix \
--enable-directfb \
$(DEB_BUILD_CONFIG_OPTIONS) \
Save that to a file called wavpack.patch in the ~/src directory (and ensure the whitespace stays in tact; those are tabs in the rules hunk). Then apply the patch.
patch -p0 < wavpack.patch
If that doesn’t work, apply the patch by hand. Edit debian/rules file and add the –with-wavpack. Then edit the debian/libxine1.install file and add the debian/tmp/usr/lib/xine/plugins/*/xineplug_wavpack.so line.
Now Build.
dpkg-buildpackage -rfakeroot -us -uc -b
Now Install. The debs go in the parent directory, but debi makes installing them easy.
sudo debi
References
Updating a Deb
February 9, 2008 at 9:23 pm |
You wrote:
Make it your own version using dch (debchange). Put something like “WAVPACKCUSTOM” on the end of the version so you know it’s something you changed down the road. My version: 1.1.7-1ubuntuWAVPACKCUSTOM. Also add a comment next to the ‘*’ about what you’re doing.
but sadly, I have not the slightest clue how to follow this direction and I’m somewhat proficient at Linux–not at all a newbie. There is the problem that there are so many linuxes that it can be a little tough for distro vagabonds like me to keep them all straight, but I suspect we vagabonds have much more of a clue that the average user. However, I would like to get wavpack working on amarok on kubuntu and would appreciate your help. your helping me will certainly help those with even less understanding than me.
March 5, 2008 at 4:46 am |
I am very new to ubuntu and my first linux OS is Ubuntu 7.10…anyway i am trying to follow the all the step but i’m stuck this method
Make it your own version using dch (debchange). Put something like “WAVPACKCUSTOM” on the end of the version so you know it’s something you changed down the road. My version: 1.1.7-1ubuntuWAVPACKCUSTOM. Also add a comment next to the ‘*’ about what you’re doing.
dch -i
Enable wavpack support by applying this patch.
i dont know what to do next
everything is okay until this step
1)mkdir ~/src
2)cd ~/src
3)sudo apt-get source libxine1
4)cd xine-lib-*
after the 4th one i type
dch -i and i think it go to changelog file
then i dont what to do next