freebsd-ports/audio/mpg123/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

55 lines
1.0 KiB
Makefile

# New ports collection makefile for: mpg123
# Date created: 25 June 1997
# Whom: Carey Jones <mcj@acquiesce.org>
#
# $FreeBSD$
#
PORTNAME= mpg123
PORTVERSION= 1.13.4
CATEGORIES= audio ipv6
MASTER_SITES= SF \
http://www.mpg123.de/download/
MAINTAINER= novel@FreeBSD.org
COMMENT= Command-line player for mpeg layer 1, 2 and 3 audio
LICENSE= LGPL21
USE_GNOME= gnomehack ltverhack
USE_BZIP2= yes
USE_AUTOTOOLS= libtool libltdl
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-optimization=0 \
--with-audio=oss \
--with-default-audio=oss
CONFIGURE_ENV= CONFIG_SHELL=${SH}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAN1= mpg123.1
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
.if ${MACHINE_CPU:M3dnow}
WITH_CPU= 3dnow
.elif ${MACHINE_CPU:Msse}
WITH_CPU= sse
.elif ${MACHINE_CPU:Mi586}
WITH_CPU= i586
.elif ${MACHINE_CPU:Mi486}
WITH_CPU= i486
.endif
.elif ${ARCH} == "amd64"
WITH_CPU= x86-64
.endif
.if defined(WITH_CPU)
CONFIGURE_ARGS+=--with-cpu=${WITH_CPU}
.endif
.include <bsd.port.post.mk>