You are not logged in.

#1 2005-05-14 15:07:42

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 247

musepack (mppdec, mppenc, replaygain)

This is the "real" version, not decoding lib which is already in arch repos. It contains executables:
mppdec
mppenc
replaygain

Building from source is a bit strange. There is no configure script. You can't even amend for that lack with make, but have to edit the source itself (header file mpp.h). So I included a patch to do this. When I do "make install", I get:

make: `install' is up to date.

I don't know what is the problem here. I worked around that by using cp to install.
I don't know if this is acceptable for adding to AUR, so I added the PKGBUILD here. If anybody wants to edit this PKGBUILD and/or add it to AUR or the main repos, feel free to do so.

PKGBUILD:

# Contributor: Mitja Vardjan
#
pkgname=musepack
pkgver=1.15v
pkgrel=1
pkgdesc="An audio compression format with a strong emphasis on high quality"
url="http://www.musepack.net/"
license="LGPL"
source=(http://musepack.origean.net/files/source/mpcsv7-src-$pkgver.tar.bz2)
md5sums=('eb3e6b64b1f7d68aaeb04e39936d87fb')

build() {
  cd $startdir/src/sv7
  patch mpp.h $startdir/audio.patch
  make all mppdec || return 1
  mkdir -p $startdir/pkg/usr/bin
  cp mppenc mppdec replaygain $startdir/pkg/usr/bin
}

audio.patch:

--- src/sv7/mpp.h       2005-05-14 15:33:16.000000000 +0200
+++ src/sv7/mpp.h.new   2005-05-14 15:26:08.000000000 +0200
@@ -40,7 +40,7 @@
 // If your Operating System supports the Enlightenment Sound Daemon you can output to /dev/esd and
 // instead of writing a file the program plays the file via this sound device.
 // you also must link the libesd library, so maybe you also must edit the Makefile
-#define USE_ESD_AUDIO
+//#define USE_ESD_AUDIO

 #endif

@@ -54,12 +54,12 @@
 // Sound support for SGI Irix
 // If you have a SGI Workstation running IRIX, you can output to /dev/audio and
 // instead of writing a file the program plays the file via this sound device.
-#define USE_IRIX_AUDIO
+//#define USE_IRIX_AUDIO

 // Audio support for Windows (WAVE OUT) (only Windows)
 // If you have a Windows based system and if you want also play files directly instead of only writing audio files,
 // then define the next item
-#define USE_WIN_AUDIO
+//#define USE_WIN_AUDIO

 // Buffersize for Windows Audio in 4.5 KByte units
 // Only needed for Windows+USE_WIN_AUDIO

Offline

Board footer

Powered by FluxBB