summaryrefslogtreecommitdiff
path: root/audio/libmpg123/Makefile.common
blob: a2e2f603560368d38e1716825c6b42d877230eac (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
# $NetBSD: Makefile.common,v 1.1 2008/10/15 01:58:53 bjs Exp $
#
# used by audio/libmpg123/Makefile

.include "../../audio/libmpg123/Makefile.version"

DISTNAME=	mpg123-${MPG123_DISTVERSION}
CATEGORIES=	audio
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=mpg123/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	bjs@NetBSD.org
HOMEPAGE=	http://mpg123.sourceforge.net/


GNU_CONFIGURE=	yes
USE_TOOLS+=	pkg-config
USE_LIBTOOL=	yes

CONFIGURE_ARGS+=	--enable-fifo=yes
CONFIGURE_ARGS+=	--enable-modules=yes
CONFIGURE_ARGS+=	--enable-network=yes
CONFIGURE_ARGS+=	--enable-gapless=yes
###
### XXX Use pkgsrc-provided CFLAGS.
###
CONFIGURE_ARGS+=	--with-optimization=0
CFLAGS+=		${COPTS.mpg123:U${COPTS}}
###
### XXX This should be set to 'no' for platforms where it is required.
###	It's easier doing this here than patching configure.
MPG123_XFERMEM?=	yes
.if !empty(MPG123_XFERMEM:tl:Myes)
BUILDLINK_TRANSFORM+=	rm:-DNO_XFERMEM
.endif