aboutsummaryrefslogtreecommitdiff
path: root/audio/mous/Makefile
blob: 41a07423031a3bab3265ff7991cbb4647aa3e05b (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# Created by: Yanhui Shen <shen.elf@gmail.com>
# $FreeBSD$

PORTNAME=	mous
PORTVERSION=	1.1a
PORTREVISION=	4
CATEGORIES=	audio
MASTER_SITES=	GHC

MAINTAINER=	shen.elf@gmail.com
COMMENT=	Simple yet powerful audio player

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/COPYRIGHT

USES=		cmake
USE_LDCONFIG=	yes
USE_GITHUB=	yes
GH_ACCOUNT=	bsdelf

OPTIONS_DEFINE=		ALSA ASSEMBLY FAAC FAAD FLAC LAME AO CUE MAC4DECODER \
			MACDECODER MPG123 NCURSES OSS QT4 SDK TAGLIB VORBIS \
			WAVDECODER WAVENCODER WMA
OPTIONS_DEFAULT=	FAAC FAAD FLAC LAME CUE MAC4DECODER \
			MPG123 NCURSES OSS QT4 TAGLIB VORBIS WAVDECODER \
			WAVENCODER
OPTIONS_DEFAULT_amd64=	ASSEMBLY WMA
OPTIONS_DEFAULT_i386=	ASSEMBLY WMA

OPTIONS_SUB=		yes

ALSA_LIB_DEPENDS=	libasound.so:${PORTSDIR}/audio/alsa-lib
ALSA_CMAKE_ON=		-DWithPluginAlsaRenderer=1
ALSA_CMAKE_OFF=		-DWithPluginAlsaRenderer=0

AO_LIB_DEPENDS=		libao.so:${PORTSDIR}/audio/libao
AO_CMAKE_ON=		-DWithPluginAoRenderer=1
AO_CMAKE_OFF=		-DWithPluginAoRenderer=0

ASSEMBLY_DESC=		Enable assembly optimizations
ASSEMBLY_BUILD_DEPENDS=	${LOCALBASE}/bin/yasm:${PORTSDIR}/devel/yasm
ASSEMBLY_CMAKE_ON=	-DWithAssembly=1
ASSEMBLY_CMAKE_OFF=	-DWithAssembly=0

CUE_LIB_DEPENDS=	libcue.so:${PORTSDIR}/textproc/libcue
CUE_CMAKE_ON=		-DWithPluginCuePack=1
CUE_CMAKE_OFF=		-DWithPluginCuePack=0

FAAC_LIB_DEPENDS=	libfaac.so:${PORTSDIR}/audio/faac
FAAC_CMAKE_ON=		-DWithPluginFaacEncoder=1
FAAC_CMAKE_OFF=		-DWithPluginFaacEncoder=0

FAAD_LIB_DEPENDS=	libfaad.so:${PORTSDIR}/audio/faad
FAAD_CMAKE_ON=		-DWithPluginFaadDecoder=1
FAAD_CMAKE_OFF=		-DWithPluginFaadEncoder=0

FLAC_LIB_DEPENDS=	libFLAC.so:${PORTSDIR}/audio/flac
FLAC_CMAKE_ON=		-DWithPluginFlacDecoder=1
FLAC_CMAKE_OFF=		-DWithPluginFlacDecoder=0

LAME_LIB_DEPENDS=	libmp3lame.so:${PORTSDIR}/audio/lame
LAME_CMAKE_ON=		-DWithPluginLameEncoder=1
LAME_CMAKE_OFF=		-DWithPluginLameEncoder=0

MPG123_LIB_DEPENDS=	libmpg123.so:${PORTSDIR}/audio/mpg123
MPG123_CMAKE_ON=	-DWithPluginMpg123Decoder=1
MPG123_CMAKE_OFF=	-DWithPluginMpg123Decoder=0

MAC4DECODER_DESC=	Newest mac4.11 decoder (*.ape)
MAC4DECODER_CMAKE_ON=	-DWithPluginMac4Decoder=1
MAC4DECODER_CMAKE_OFF=	-DWithPluginMac4Decoder=0

MACDECODER_DESC=	Old mac3.99 ape decoder (*.ape)
MACDECODER_LIB_DEPENDS=	libmac.so:${PORTSDIR}/audio/mac
MACDECODER_CMAKE_ON=	-DWithPluginMacDecoder=1
MACDECODER_CMAKE_OFF=	-DWithPluginMacDecoder=0

NCURSES_DESC=		Ncurses frontend
NCURSES_USES=		ncurses
NCURSES_CMAKE_ON=	-DWithFrontendNcurses=1
NCURSES_CMAKE_OFF=	-DWithFrontendNcurses=0

OSS_CMAKE_ON=		-DWithPluginOssRenderer=1
OSS_CMAKE_OFF=		-DWithPluginOssRenderer=0

QT4_DESC=		QT4 frontend
QT4_USE=		QT4=corelib,gui,linguisttools_build
QT4_USE+=		QT4=qmake_build,moc_build,rcc_build,uic_build
QT4_CMAKE_ON=		-DWithFrontendQt=1
QT4_CMAKE_OFF=		-DWithFrontendQt=0

SDK_DESC=		Install SDK
SDK_CMAKE_ON=		-DWithHeadFiles=1
SDK_CMAKE_OFF=		-DWithHeadFiles=0

TAGLIB_DESC=		TagLib plugin (recommended)
TAGLIB_LIB_DEPENDS=	libtag.so:${PORTSDIR}/audio/taglib
TAGLIB_CMAKE_ON=	-DWithPluginTagLibParser=1
TAGLIB_CMAKE_OFF=	-DWithPluginTagLibParser=0

VORBIS_LIB_DEPENDS=	libvorbisfile.so:${PORTSDIR}/audio/libvorbis
VORBIS_CMAKE_ON=	-DWithPluginOggDecoder=1
VORBIS_CMAKE_OFF=	-DWithPluginOggDecoder=0

WAVDECODER_DESC=	Decode Wav
WAVDECODER_CMAKE_ON=	-DWithPluginWavDecoder=1
WAVDECODER_CMAKE_OFF=	-DWithPluginWavEncoder=0

WAVENCODER_DESC=	Encode Wav
WAVENCODER_CMAKE_ON=	-DWithPluginWavEncoder=1
WAVENCODER_CMAKE_OFF=	-DWithPluginWavEncoder=0

WMA_DESC=		WMA decoder plugin
WMA_CMAKE_ON=		-DWithPluginWmaDecoder=1
WMA_CMAKE_OFF=		-DWithPluginWmaDecoder=0

post-patch:
	@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' \
		-e 's|/usr/local|${LOCALBASE}|g' \
		${WRKSRC}/CMakeLists.txt

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mous/*

.include <bsd.port.mk>