# $Id: Portfile 61124 2009-12-02 17:41:14Z ryandesign@macports.org $

PortSystem 1.0
name		mpg123
version		1.9.2
categories	audio
maintainers	gmx.at:astifter openmaintainer
description	fast mp3 player for linux and unix systems
long_description	\
	Mpg123 is a fast, free and portable MPEG audio player for Unix. It \
	supports MPEG 1.0/2.0 layers 1, 2 and 3. For full CD quality \
	playback (44 kHz, 16 bit, stereo) a Pentium, SPARCstation10, DEC \
	Alpha or similar CPU is required. Mono and/or reduced quality \
	playback (22 kHz or 11 kHz) is even possible on 486 CPUs. \
	\
	This version uses EsounD on a pure Darwin install and CoreAudio \
	on Mac OS X.

homepage	http://www.mpg123.de/
platforms	darwin
master_sites	sourceforge \
		${homepage}download/
use_bzip2	yes
checksums	md5     5313b1bcc0274b4d7c394397c205bb20 \
		sha1    89d80da4dde0dbed1f605650c06a49d70cabff4c \
		rmd160  a7a786d85f7fb7d019cfad26562f4c8b3cfb77e3

depends_lib	port:libtool

patchfiles	patch-src-module.c

platform macosx {
    configure.args-append --with-audio=coreaudio
}

platform darwin powerpc {
    configure.args-append --with-cpu=altivec
}

if {${configure.build_arch} == "x86_64"} {
    configure.args-append --with-cpu=x86-64
}

universal_variant no
