the Fink project is an effort to port
popular Unix programs to Mac OS X
# DISCLAIMER: Max Horn is the sole maintainer of this package.
# Please DO NOT MAKE MODIFICATIONS without informing the maintainer.
# Preferably, send a patch to me instead of making changes yourself!
# If that is not possible due to extra urgency, at least send me a mail.
#
# Explanation: I am sick and tired of getting back to my packages and
# discovering that people have messed with it. I am then forced to
# retrace their steps, find out who, when and why did make a certain
# change etc. -- i.e. it makes my life as maintainer harder.
# Furthermore, as maintainer I am responsible for problems caused by my
# packages. But I am not willing to take responsibility for something I
# did not do. In particular, for changes that other people introduced
# behind my back, no matter how good and noble their intentions were. As
# such, I may see myself forced to drop responsibility for (and hence,
# maintainership of) the affected package.
Package: madplay
Version: 0.15.2b
Revision: 7
Depends: libmad-shlibs (>= 0.15.1b-6), libid3tag-shlibs (>= 0.15.1b-5)
BuildDepends: libmad (>= 0.15.1b-6), libid3tag (>= 0.15.1b-5), libgettext8-dev, gettext-bin, gettext-tools, libiconv-dev, fink (>= 0.24.12)
Replaces: mad-bin
#Conflicts: mad-bin
Maintainer: Max Horn
Source: mirror:sourceforge:mad/%n-%v.tar.gz
Source-MD5: 6814b47ceaa99880c754c5195aa1aac1
PatchFile: %n.patch
PatchFile-MD5: eff61a43a5d8bef8bbc5bb6bc9b65c74
PatchScript: <<
%{default_script}
perl -pi.bak -e 's,-flat_namespace -undefined suppress,-twolevel_namespace -undefined error,g' configure
perl -pi.bak -e 's,\$\{CPP=\"cc -E -traditional-cpp\"\},\$\{CPP=\"cc -E\"\},g; s,-march=i486,,g' configure
<<
ConfigureParams: --mandir=%p/share/man --without-esd
InstallScript: make install DESTDIR=%d
DocFiles: CHANGES COPYING COPYRIGHT CREDITS README TODO VERSION
Description: MPEG audio decoder and player
DescDetail: <<
`madplay' is a command-line MPEG audio decoder and
player based on the MAD library (libmad).
<<
DescPackaging: <<
Disabled ESD support, to reduce the number of dependencies.
Modify configure script to *not* specify -march=486, as that causes problems:
On 32bit systems, it fails because i486 does not support MMX/SSE, on
64bit systems it complains because this is not a 64bit enabled CPU type.
Versioned deps on libmad and libid3tag for gettext/libgettext3 -> libgettext8 transition.
<<
License: GPL
Homepage: http://www.underbit.com/products/mad/
--- madplay-0.15.2b/audio_carbon.c.bak 2005-04-04 02:03:58.000000000 -0700
+++ madplay-0.15.2b/audio_carbon.c 2005-04-04 02:04:39.000000000 -0700
@@ -94,7 +94,7 @@
}
static
-int wait(struct buffer *buffer)
+int carbon_wait(struct buffer *buffer)
{
if (MPWaitOnSemaphore(buffer->semaphore, kDurationForever) != noErr) {
audio_error = _("MPWaitOnSemaphore() failed");
@@ -234,7 +234,11 @@
break;
case 16:
- audio_pcm = audio_pcm_s16be;
+ #ifdef __BIG_ENDIAN__
+ audio_pcm = audio_pcm_s16be;
+ #else
+ audio_pcm = audio_pcm_s16le;
+ #endif
break;
}
@@ -263,7 +263,7 @@
/* wait for block to finish playing */
if (buffer->pcm_nsamples == 0) {
- if (wait(buffer) == -1)
+ if (carbon_wait(buffer) == -1)
return -1;
buffer->pcm_length = 0;