1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-24 21:01:20 +00:00
freebsd-ports/audio/mpg123/Makefile
Maxim Sobolev 40c0df04d2 Provide workaround for a bug in pcm driver introduced with format emulation
changes.

At present newpcm has sticky parameter settings, even when an
inappropriate value is set.  For instance, set format to alaw on h/w
that does not support alaw; newpcm interface state records format as
alaw, and subsequent unrelated state changes may fail, ie a rate change.

In mpg123 this can cause files to be played at lower quality
than available because of mis-diagnosis of available formats and
sample rates.  E.g downsamples everything to 11025Hz on this h/w as
12kHz probing breaks state and subsequent probes for higher supported
sampling rates.

PR:		25046
Submitted by:	Orion Hodson <oh@btinternet.com>
2001-02-13 15:00:44 +00:00

68 lines
1.6 KiB
Makefile

# New ports collection makefile for: mpg123
# Date created: 25 June 1997
# Whom: Carey Jones <mcj@acquiesce.org>
#
# $FreeBSD$
#
PORTNAME= mpg123
PORTVERSION= 0.59r
PORTREVISION= 1
CATEGORIES= audio ipv6
MASTER_SITES= http://www.mpg123.de/mpg123/ \
http://www-ti.informatik.uni-tuebingen.de/~hippm/mpg123/ \
ftp://ftp.tu-clausthal.de/pub/unix/audio/mpg123/ \
http://ftp.tu-clausthal.de/pub/unix/audio/mpg123/
DISTFILES= mpg123-0.59r-pl1.tar.gz
PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/ \
http://www.unix-ag.org/Linux-Alpha/Packages/
PATCHFILES= mpg123-059r-v6-20000713b.diff.gz \
l3.diff.gz
PATCH_DIST_STRIP= -p1
MAINTAINER= jkoshy@freebsd.org
WANT_ESOUND= yes
MAN1= mpg123.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 400014
MAKE_ENV+= USE_INET6=yes
.endif
.if defined(HAVE_ESOUND)
USE_ESOUND= yes
ALL_TARGET= freebsd-esd
.else
ALL_TARGET= freebsd
.endif
pre-configure:
.if ${MACHINE_ARCH} == "i386"
.if !defined(OPT_ARCH) || ((${OPT_ARCH} != "i486") && (${OPT_ARCH} != "i586") \
&& (${OPT_ARCH} != "3dnow"))
@${ECHO_MSG} "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
@${ECHO_MSG} "Note: you can set OPT_ARCH to optimize for your hardware. (Eg:- make OPT_ARCH=i486)"
.if ${PORTOBJFORMAT} == "elf"
@${ECHO_MSG} "Valid values are: i486, i586, 3dnow"
.else
@${ECHO_MSG} "Valid values are: i486"
.endif
@${ECHO_MSG} "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
.endif
.if ${PORTOBJFORMAT} == "elf"
OPT_ARCH?= i586
.else
OPT_ARCH?= i486
.endif
.endif
.if defined(OPT_ARCH)
MAKE_ARGS+= OPT_ARCH=${OPT_ARCH}
.endif
.include <bsd.port.post.mk>