summaryrefslogtreecommitdiff
path: root/audio/libmpg123/Makefile
blob: 48495bac14710bf685f7721bcdac0542cce99c84 (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
# $NetBSD: Makefile,v 1.3 2008/09/19 17:49:26 ahoka Exp $
#

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

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

MAINTAINER=	bjs@NetBSD.org
HOMEPAGE=	http://mpg123.sourceforge.net/
COMMENT=	MPEG layer 1, 2, and 3 decoder library

PKG_DESTDIR_SUPPORT=	user-destdir

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

PKGCONFIG_OVERRIDE+=	libmpg123.pc.in

BUILD_DIRS=		src/libmpg123
INSTALL_DIRS=		src/libmpg123

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

INSTALLATION_DIRS=	lib/pkgconfig

post-install:
	${INSTALL_DATA} ${WRKSRC}/libmpg123.pc ${DESTDIR}${PREFIX}/lib/pkgconfig

.include "options.mk"

.include "../../mk/bsd.pkg.mk"