summaryrefslogtreecommitdiff
path: root/audio/bmp-flac/Makefile
blob: 3ece9700291a07691c6fc8caba7fc32feec2648f (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
# $NetBSD: Makefile,v 1.3 2010/09/14 11:01:19 wiz Exp $
#

DISTNAME=	flac-1.1.3
PKGNAME=	bmp-${DISTNAME}
PKGREVISION=	2
CATEGORIES=	audio
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=flac/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://flac.sourceforge.net/
COMMENT=	FLAC BMP plugin

PKG_DESTDIR_SUPPORT=	user-destdir

USE_TOOLS+=		gmake pkg-config
GNU_CONFIGURE=		yes

USE_LANGUAGES=		c c++
USE_LIBTOOL=		yes
SHLIBTOOL_OVERRIDE=	libtool-disable-static

XMMS_WRKSRC=	${WRKSRC}/src/plugin_xmms

SUBST_CLASSES+=		bmph
SUBST_STAGE.bmph=	post-configure
SUBST_MESSAGE.bmph=	Fixing xmms headers
SUBST_FILES.bmph=	src/plugin_xmms/*.c
SUBST_SED.bmph=		-e 's,include <xmms/,include <bmp/,g'

BUILD_DIRS=	src/libFLAC
BUILD_DIRS+=	src/plugin_common
BUILD_DIRS+=	src/share
BUILD_DIRS+=	src/plugin_xmms
INSTALL_DIRS=	src/plugin_xmms

.include "../../mk/compiler.mk"

# SunPro does not support __inline
.if !empty(PKGSRC_COMPILER:Msunpro)
CFLAGS+=	-D__inline=inline
.endif

BUILDLINK_API_DEPENDS.flac+=	flac>=1.1.3nb1
.include "../../audio/flac/buildlink3.mk"
.include "../../audio/bmp/buildlink3.mk"

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