blob: c67a2f406626a52f3089ac61b143c71f17ae652f (
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
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
|
# Created by: Yanhui Shen <shen.elf@gmail.com>
# $FreeBSD$
PORTNAME= mous
PORTVERSION= 1.1a
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://cloud.github.com/downloads/0x02/mous/
MAINTAINER= shen.elf@gmail.com
COMMENT= Simple yet powerful audio player
LICENSE= BSD
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
USES= cmake
NO_STAGE= yes
OPTIONS_DEFINE= ALSA ASSEMBLY FAAC FAAD FLAC LAME AO CUE MAC4DECODER \
MACDECODER MPG123 NCURSES OSS QT4 SDK TAGLIB VORBIS \
WAVDECODER WAVENCODER WMA
OPTIONS_DEFAULT= ASSEMBLY FAAC FAAD FLAC LAME CUE MAC4DECODER \
MPG123 NCURSES OSS QT4 TAGLIB VORBIS WAVDECODER \
WAVENCODER WMA
ASSEMBLY_DESC= Enable assembly optimize
MAC4DECODER_DESC= Newest mac4.11 decoder(*.ape)
MACDECODER_DESC= Old mac3.99 ape decoder(*.ape)
NCURSES_DESC= Ncurses frontend
QT4_DESC= QT4 frontend
SDK_DESC= Install SDK
TAGLIB_DESC= TagLib plugin(recommended)
WAVDECODER_DESC= Decode Wav
WAVENCODER_DESC= Encode Wav
WMA_DESC= WMA decoder plugin
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKSRC}/pkg-message
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSDK}
CMAKE_ARGS+= -DWithHeadFiles=1
PLIST_SUB+= SDK=""
.else
CMAKE_ARGS+= -DWithHeadFiles=0
PLIST_SUB+= SDK="@comment "
.endif
.if ${PORT_OPTIONS:MASSEMBLY}
BUILD_DEPENDS+= ${LOCALBASE}/bin/yasm:${PORTSDIR}/devel/yasm
CMAKE_ARGS+= -DWithAssembly=1
.else
CMAKE_ARGS+= -DWithAssembly=0
.endif
.if ${PORT_OPTIONS:MNCURSES}
USES+= ncurses
CMAKE_ARGS+= -DWithFrontendNcurses=1
PLIST_SUB+= NCURSES=""
.else
CMAKE_ARGS+= -DWithFrontendNcurses=0
PLIST_SUB+= NCURSES="@comment "
.endif
.if ${PORT_OPTIONS:MQT4}
USE_QT4= gui linguist moc_build qmake_build rcc_build uic_build
CMAKE_ARGS+= -DWithFrontendQt=1
PLIST_SUB+= QT4=""
.else
CMAKE_ARGS+= -DWithFrontendQt=0
PLIST_SUB+= QT4="@comment "
.endif
.if ${PORT_OPTIONS:MOSS}
CMAKE_ARGS+= -DWithPluginOssRenderer=1
PLIST_SUB+= OSS=""
.else
CMAKE_ARGS+= -DWithPluginOssRenderer=0
PLIST_SUB+= OSS="@comment "
.endif
.if ${PORT_OPTIONS:MALSA}
LIB_DEPENDS+= libasound.so:${PORTSDIR}/audio/alsa-lib
CMAKE_ARGS+= -DWithPluginAlsaRenderer=1
PLIST_SUB+= ALSA=""
.else
CMAKE_ARGS+= -DWithPluginAlsaRenderer=0
PLIST_SUB+= ALSA="@comment "
.endif
.if ${PORT_OPTIONS:MAO}
LIB_DEPENDS+= libao.so:${PORTSDIR}/audio/libao
CMAKE_ARGS+= -DWithPluginAoRenderer=1
PLIST_SUB+= AO=""
.else
CMAKE_ARGS+= -DWithPluginAoRenderer=0
PLIST_SUB+= AO="@comment "
.endif
.if ${PORT_OPTIONS:MTAGLIB}
LIB_DEPENDS+= libtag.so:${PORTSDIR}/audio/taglib
CMAKE_ARGS+= -DWithPluginTagLibParser=1
PLIST_SUB+= TAGLIB=""
.else
CMAKE_ARGS+= -DWithPluginTagLibParser=0
PLIST_SUB+= TAGLIB="@comment "
.endif
.if ${PORT_OPTIONS:MCUE}
LIB_DEPENDS+= libcue.so:${PORTSDIR}/textproc/libcue
CMAKE_ARGS+= -DWithPluginCuePack=1
PLIST_SUB+= CUE=""
.else
CMAKE_ARGS+= -DWithPluginCuePack=0
PLIST_SUB+= CUE="@comment "
.endif
.if ${PORT_OPTIONS:MWAVDECODER}
CMAKE_ARGS+= -DWithPluginWavDecoder=1
PLIST_SUB+= WAVDECODER=""
.else
CMAKE_ARGS+= -DWithPluginWavEncoder=0
PLIST_SUB+= WAVDECODER="@comment "
.endif
.if ${PORT_OPTIONS:MWAVDECODER}
CMAKE_ARGS+= -DWithPluginWavEncoder=1
PLIST_SUB+= WAVENCODER=""
.else
CMAKE_ARGS+= -DWithPluginWavEncoder=0
PLIST_SUB+= WAVENCODER="@comment "
.endif
.if ${PORT_OPTIONS:MFAAD}
LIB_DEPENDS+= libfaad.so:${PORTSDIR}/audio/faad
CMAKE_ARGS+= -DWithPluginFaadDecoder=1
PLIST_SUB+= FAAD=""
.else
CMAKE_ARGS+= -DWithPluginFaadEncoder=0
PLIST_SUB+= FAAD="@comment "
.endif
.if ${PORT_OPTIONS:MFAAC}
LIB_DEPENDS+= libfaac.so:${PORTSDIR}/audio/faac
CMAKE_ARGS+= -DWithPluginFaacEncoder=1
PLIST_SUB+= FAAC=""
.else
CMAKE_ARGS+= -DWithPluginFaacEncoder=0
PLIST_SUB+= FAAC="@comment "
.endif
.if ${PORT_OPTIONS:MMPG123}
LIB_DEPENDS+= libmpg123.so:${PORTSDIR}/audio/mpg123
CMAKE_ARGS+= -DWithPluginMpg123Decoder=1
PLIST_SUB+= MPG123=""
.else
CMAKE_ARGS+= -DWithPluginMpg123Decoder=0
PLIST_SUB+= MPG123="@comment "
.endif
.if ${PORT_OPTIONS:MLAME}
LIB_DEPENDS+= libmp3lame.so:${PORTSDIR}/audio/lame
CMAKE_ARGS+= -DWithPluginLameEncoder=1
PLIST_SUB+= LAME=""
.else
CMAKE_ARGS+= -DWithPluginLameEncoder=0
PLIST_SUB+= LAME="@comment "
.endif
.if ${PORT_OPTIONS:MWMA}
CMAKE_ARGS+= -DWithPluginWmaDecoder=1
PLIST_SUB+= WMA=""
.else
CMAKE_ARGS+= -DWithPluginWmaDecoder=0
PLIST_SUB+= WMA="@comment "
.endif
.if ${PORT_OPTIONS:MMAC4DECODER}
CMAKE_ARGS+= -DWithPluginMac4Decoder=1
PLIST_SUB+= MAC4=""
.else
CMAKE_ARGS+= -DWithPluginMac4Decoder=0
PLIST_SUB+= MAC4="@comment "
.endif
.if ${PORT_OPTIONS:MMACDECODER}
LIB_DEPENDS+= libmac.so:${PORTSDIR}/audio/mac
CMAKE_ARGS+= -DWithPluginMacDecoder=1
PLIST_SUB+= MAC=""
.else
CMAKE_ARGS+= -DWithPluginMacDecoder=0
PLIST_SUB+= MAC="@comment "
.endif
.if ${PORT_OPTIONS:MFLAC}
LIB_DEPENDS+= libFLAC.so:${PORTSDIR}/audio/flac
CMAKE_ARGS+= -DWithPluginFlacDecoder=1
PLIST_SUB+= FLAC=""
.else
CMAKE_ARGS+= -DWithPluginFlacDecoder=0
PLIST_SUB+= FLAC="@comment "
.endif
.if ${PORT_OPTIONS:MVORBIS}
LIB_DEPENDS+= libvorbisfile.so:${PORTSDIR}/audio/libvorbis
CMAKE_ARGS+= -DWithPluginOggDecoder=1
PLIST_SUB+= OGG=""
.else
CMAKE_ARGS+= -DWithPluginOggDecoder=0
PLIST_SUB+= OGG="@comment "
.endif
post-patch:
@${REINPLACE_CMD} 's|%%DATADIR%%|${DATADIR}|' \
${WRKSRC}/CMakeLists.txt
post-install:
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.mk>
|