aboutsummaryrefslogtreecommitdiff
path: root/audio/sdl2_mixer/Makefile
blob: cbb264820f5df952ad20dc1d509f808382c94b9a (plain) (blame)
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
53
54
55
56
57
58
59
60
# $FreeBSD$

PORTNAME=	sdl2_mixer
PORTVERSION=	2.0.0
CATEGORIES=	audio
MASTER_SITES=	http://www.libsdl.org/projects/SDL_mixer/release/
DISTNAME=	SDL2_mixer-${PORTVERSION}

MAINTAINER=	mva@FreeBSD.org
COMMENT=	A sample multi-channel audio mixer library

LICENSE=	ZLIB

USES=		pathfix pkgconfig:build
USE_GMAKE=	yes
USE_SDL=	sdl2
GNU_CONFIGURE=	yes
LDFLAGS+=	-L${LOCALBASE}/lib
CPPFLAGS+=	-I${LOCALBASE}/include
USE_LDCONFIG=	yes

OPTIONS_DEFINE=		FLUIDSYNTH MODPLUG FLAC VORBIS
OPTIONS_DEFAULT=	FLUIDSYNTH MODPLUG FLAC VORBIS

FLUIDSYNTH_DESC=	Enable SoundFont2 Midi support via fluidsynth
MODPLUG_DESC=	Enable MOD music via libModPlug
FLAC_DESC=	Enable FLAC encoding support via flac
VORBIS_DESC=	Enable Ogg Vorbis music

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMODPLUG}
LIB_DEPENDS+=		modplug:${PORTSDIR}/audio/libmodplug
CONFIGURE_ARGS+=	--enable-music-mod --enable-music-mod-modplug
.else
CONFIGURE_ARGS+=	--disable-music-mod --disable-music-mod-modplug
.endif

.if ${PORT_OPTIONS:MFLAC}
LIB_DEPENDS+=		FLAC:${PORTSDIR}/audio/flac
CONFIGURE_ARGS+=	--enable-music-flac
.else
CONFIGURE_ARGS+=	--disable-music-flac
.endif

.if ${PORT_OPTIONS:MFLUIDSYNTH}
LIB_DEPENDS+=		fluidsynth:${PORTSDIR}/audio/fluidsynth
CONFIGURE_ARGS+=	--enable-music-midi --enable-music-midi-fluidsynth
.else
CONFIGURE_ARGS+=	--disable-music-midi --disable-music-midi-fluidsynth
.endif

.if ${PORT_OPTIONS:MVORBIS}
LIB_DEPENDS+=		vorbis:${PORTSDIR}/audio/libvorbis
CONFIGURE_ARGS+=	--enable-music-ogg
.else
CONFIGURE_ARGS+=	--disable-music-ogg
.endif

.include <bsd.port.mk>