summaryrefslogtreecommitdiffstats
path: root/audio/mpg123/Makefile
blob: 6ed81b59132267772241d6ece5ade59d701dce98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Created by: Carey Jones <mcj@acquiesce.org>
# $FreeBSD$

PORTNAME=	mpg123
PORTVERSION=	1.16.0
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 files

LICENSE=	LGPL21

USES=		gmake
USE_BZIP2=	yes
NO_STAGE=	yes
USE_AUTOTOOLS=	libtool libltdl
USE_GNOME=	gnomehack ltverhack
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=		${PORTNAME}.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>
OpenPOWER on IntegriCloud