Lines 4-13
Link Here
|
4 |
PORTNAME= cmus |
4 |
PORTNAME= cmus |
5 |
PORTVERSION= 2.6.0 |
5 |
PORTVERSION= 2.6.0 |
6 |
DISTVERSIONPREFIX= v |
6 |
DISTVERSIONPREFIX= v |
7 |
PORTREVISION= 3 |
7 |
PORTREVISION= 4 |
8 |
CATEGORIES= audio |
8 |
CATEGORIES= audio |
9 |
|
9 |
|
10 |
MAINTAINER= h.skuhra@gmail.com |
10 |
MAINTAINER= t@tobik.me |
11 |
COMMENT= Console-based music player with really cool features |
11 |
COMMENT= Console-based music player with really cool features |
12 |
|
12 |
|
13 |
LICENSE= GPLv2 |
13 |
LICENSE= GPLv2 |
Lines 15-214
Link Here
|
15 |
|
15 |
|
16 |
USE_GITHUB= yes |
16 |
USE_GITHUB= yes |
17 |
|
17 |
|
18 |
USES= gmake pkgconfig iconv ncurses |
18 |
USES= gmake iconv ncurses pkgconfig |
19 |
HAS_CONFIGURE= yes |
19 |
HAS_CONFIGURE= yes |
20 |
CONFIGURE_ENV+= HOSTCC=${CC} |
20 |
CONFIGURE_ARGS= prefix=${PREFIX} mandir=${MANPREFIX}/man \ |
21 |
CONFIGURE_ARGS+=prefix=${PREFIX} mandir=${MANPREFIX}/man \ |
21 |
exampledir=${EXAMPLESDIR} |
22 |
exampledir=${EXAMPLESDIR} \ |
|
|
23 |
CONFIG_ALSA=n CONFIG_ARTS=n CONFIG_ROAR=n |
24 |
|
22 |
|
25 |
OPTIONS_DEFINE= AAC AO CDDB CDIO CUE DISCID FFMPEG FLAC JACK MAD MIKMOD \ |
23 |
# So the build does not use gcc for compiling ttman |
26 |
MODPLUG MP4 MUSEPACK OPUS PULSEAUDIO SAMPLERATE TREMOR \ |
24 |
CONFIGURE_ARGS+= HOSTCC=${CC} |
27 |
VORBIS WAVPACK |
|
|
28 |
OPTIONS_DEFAULT=AAC FFMPEG FLAC MAD MP4 VORBIS |
29 |
|
25 |
|
30 |
DISCID_DESC= DISCID support |
26 |
# Verbose build makes it easier to spot problems |
|
|
27 |
MAKE_ARGS= V=2 |
31 |
|
28 |
|
32 |
.include <bsd.port.options.mk> |
29 |
# Disable all configure options first. These will be overwritten by |
|
|
30 |
# enabled port options later. The args to cmus' configure script |
31 |
# follow shell value semantics i.e. later assignments overwrite |
32 |
# previous assignments. The options here appear in the same order as |
33 |
# ${WRKSRC}/configure --help. Please keep it that way. |
34 |
_CMUS_CONFIGURE_OPTS= CDDB CDIO DISCID FLAC MAD MODPLUG MIKMOD MPC \ |
35 |
VORBIS TREMOR OPUS WAV WAVPACK MP4 AAC FFMPEG \ |
36 |
CUE ROAR PULSE ALSA JACK SAMPLERATE AO ARTS \ |
37 |
OSS SUN WAVEOUT |
38 |
.for opt in ${_CMUS_CONFIGURE_OPTS} |
39 |
CONFIGURE_ARGS+= CONFIG_${opt}=n |
40 |
.endfor |
33 |
|
41 |
|
34 |
.if ${PORT_OPTIONS:MFLAC} |
42 |
OPTIONS_DEFAULT= AAC FFMPEG FLAC MAD MP4 OSS VORBIS WAV |
35 |
LIB_DEPENDS+= libFLAC.so:audio/flac |
43 |
OPTIONS_SUB= yes |
36 |
CONFIGURE_ARGS+=CONFIG_FLAC=y |
|
|
37 |
PLIST_SUB+= FLAC="" |
38 |
.else |
39 |
CONFIGURE_ARGS+=CONFIG_FLAC=n |
40 |
PLIST_SUB+= FLAC="@comment " |
41 |
.endif |
42 |
|
44 |
|
43 |
.if ${PORT_OPTIONS:MMAD} |
45 |
OPTIONS_GROUP= OUT IN |
44 |
LIB_DEPENDS+= libmad.so:audio/libmad |
46 |
OPTIONS_GROUP_OUT= AO JACK OSS PULSEAUDIO # SNDIO |
45 |
CONFIGURE_ARGS+=CONFIG_MAD=y |
47 |
OPTIONS_GROUP_IN= AAC CDDB CDIO CUE DISCID FFMPEG FLAC MAD MIKMOD \ |
46 |
PLIST_SUB+= MAD="" |
48 |
MODPLUG MP4 MUSEPACK OPUS SAMPLERATE TREMOR \ |
47 |
.else |
49 |
VORBIS WAV WAVPACK |
48 |
CONFIGURE_ARGS+=CONFIG_MAD=n |
|
|
49 |
PLIST_SUB+= MAD="@comment " |
50 |
.endif |
51 |
|
50 |
|
52 |
.if ${PORT_OPTIONS:MMODPLUG} |
51 |
DISCID_DESC= libdiscid CDDA identification support |
53 |
LIB_DEPENDS+= libmodplug.so:audio/libmodplug |
52 |
IN_DESC= Input plugins |
54 |
CONFIGURE_ARGS+=CONFIG_MODPLUG=y |
53 |
OUT_DESC= Output plugins |
55 |
PLIST_SUB+= MODPLUG="" |
|
|
56 |
.else |
57 |
CONFIGURE_ARGS+=CONFIG_MODPLUG=n |
58 |
PLIST_SUB+= MODPLUG="@comment " |
59 |
.endif |
60 |
|
54 |
|
61 |
.if ${PORT_OPTIONS:MMIKMOD} |
55 |
AAC_CONFIGURE_ON= CONFIG_AAC=y |
62 |
LIB_DEPENDS+= libmikmod.so:audio/libmikmod |
56 |
AAC_LIB_DEPENDS= libfaad.so:audio/faad |
63 |
CONFIGURE_ARGS+=CONFIG_MIKMOD=y |
|
|
64 |
PLIST_SUB+= MIKMOD="" |
65 |
.else |
66 |
PLIST_SUB+= MIKMOD="@comment " |
67 |
.endif |
68 |
|
57 |
|
69 |
.if ${PORT_OPTIONS:MMUSEPACK} |
58 |
AO_CONFIGURE_ON= CONFIG_AO=y |
70 |
LIB_DEPENDS+= libmpcdec.so:audio/musepack |
59 |
AO_LIB_DEPENDS= libao.so:audio/libao |
71 |
CONFIGURE_ARGS+=CONFIG_MPC=y |
|
|
72 |
PLIST_SUB+= MPC="" |
73 |
.else |
74 |
CONFIGURE_ARGS+=CONFIG_MPC=n |
75 |
PLIST_SUB+= MPC="@comment " |
76 |
.endif |
77 |
|
60 |
|
78 |
.if ${PORT_OPTIONS:MOPUS} |
61 |
CDDB_CONFIGURE_ON= CONFIG_CDDB=y |
79 |
LIB_DEPENDS+= libopusfile.so:audio/opusfile |
62 |
CDDB_LIB_DEPENDS= libcddb.so:audio/libcddb |
80 |
CONFIGURE_ARGS+=CONFIG_OPUS=y |
|
|
81 |
PLIST_SUB+= OPUS="" |
82 |
.else |
83 |
CONFIGURE_ARGS+=CONFIG_OPUS=n |
84 |
PLIST_SUB+= OPUS="@comment " |
85 |
.endif |
86 |
|
63 |
|
87 |
.if ${PORT_OPTIONS:MVORBIS} || ${PORT_OPTIONS:MTREMOR} |
64 |
CDIO_CONFIGURE_ON= CONFIG_CDIO=y |
88 |
LIB_DEPENDS+= libvorbisfile.so:audio/libvorbis |
65 |
CDIO_LIB_DEPENDS= libcdio_cdda.so:sysutils/libcdio-paranoia \ |
89 |
CONFIGURE_ARGS+=CONFIG_VORBIS=y |
66 |
libcdio.so:sysutils/libcdio |
90 |
PLIST_SUB+= VORBIS="" |
|
|
91 |
.else |
92 |
CONFIGURE_ARGS+=CONFIG_VORBIS=n |
93 |
PLIST_SUB+= VORBIS="@comment " |
94 |
.endif |
95 |
|
67 |
|
96 |
.if ${PORT_OPTIONS:MTREMOR} |
68 |
CUE_CONFIGURE_ON= CONFIG_CUE=y |
97 |
LIB_DEPENDS+= libvorbisidec.so:audio/libtremor |
69 |
CUE_LIB_DEPENDS= libcue.so:textproc/libcue |
98 |
CONFIGURE_ARGS+=CONFIG_TREMOR=y |
|
|
99 |
.endif |
100 |
|
70 |
|
101 |
.if ${PORT_OPTIONS:MMP4} |
71 |
DISCID_CONFIGURE_ON= CONFIG_DISCID=y |
102 |
LIB_DEPENDS+= libfaad.so:audio/faad |
72 |
DISCID_LIB_DEPENDS= libdiscid.so:audio/libdiscid |
103 |
LIB_DEPENDS+= libmp4v2.so:multimedia/mp4v2 |
|
|
104 |
CONFIGURE_ARGS+=CONFIG_MP4=y |
105 |
PLIST_SUB+= MP4="" |
106 |
.else |
107 |
CONFIGURE_ARGS+=CONFIG_MP4=n |
108 |
PLIST_SUB+= MP4="@comment " |
109 |
.endif |
110 |
|
73 |
|
111 |
.if ${PORT_OPTIONS:MAAC} |
74 |
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg |
112 |
LIB_DEPENDS+= libfaad.so:audio/faad |
75 |
FFMPEG_CONFIGURE_ON= CONFIG_FFMPEG=y |
113 |
CONFIGURE_ARGS+=CONFIG_AAC=y |
|
|
114 |
PLIST_SUB+= AAC="" |
115 |
.else |
116 |
CONFIGURE_ARGS+=CONFIG_AAC=n |
117 |
PLIST_SUB+= AAC="@comment " |
118 |
.endif |
119 |
|
76 |
|
120 |
.if ${PORT_OPTIONS:MWAVPACK} |
77 |
FLAC_CONFIGURE_ON= CONFIG_FLAC=y |
121 |
LIB_DEPENDS+= libwavpack.so:audio/wavpack |
78 |
FLAC_LIB_DEPENDS= libFLAC.so:audio/flac |
122 |
CONFIGURE_ARGS+=CONFIG_WAVPACK=y |
|
|
123 |
PLIST_SUB+= WAVPACK="" |
124 |
.else |
125 |
CONFIGURE_ARGS+=CONFIG_WAVPACK=n |
126 |
PLIST_SUB+= WAVPACK="@comment " |
127 |
.endif |
128 |
|
79 |
|
129 |
.if ${PORT_OPTIONS:MFFMPEG} |
80 |
JACK_CONFIGURE_ON= CONFIG_JACK=y |
130 |
BUILD_DEPENDS+= ffmpeg>=2:multimedia/ffmpeg |
81 |
JACK_LIB_DEPENDS= libjack.so:audio/jack |
131 |
RUN_DEPENDS+= ffmpeg>=2:multimedia/ffmpeg |
|
|
132 |
CONFIGURE_ARGS+=CONFIG_FFMPEG=y |
133 |
PLIST_SUB+= FFMPEG="" |
134 |
.else |
135 |
CONFIGURE_ARGS+=CONFIG_FFMPEG=n |
136 |
PLIST_SUB+= FFMPEG="@comment " |
137 |
.endif |
138 |
|
82 |
|
139 |
.if ${PORT_OPTIONS:MAO} |
83 |
MAD_CONFIGURE_ON= CONFIG_MAD=y |
140 |
LIB_DEPENDS+= libao.so:audio/libao |
84 |
MAD_LIB_DEPENDS= libmad.so:audio/libmad |
141 |
CONFIGURE_ARGS+=CONFIG_AO=y |
|
|
142 |
PLIST_SUB+= AO="" |
143 |
.else |
144 |
CONFIGURE_ARGS+=CONFIG_AO=n |
145 |
PLIST_SUB+= AO="@comment " |
146 |
.endif |
147 |
|
85 |
|
148 |
.if ${PORT_OPTIONS:MPULSEAUDIO} |
86 |
MIKMOD_CONFIGURE_ON= CONFIG_MIKMOD=y |
149 |
LIB_DEPENDS+= libpulse.so:audio/pulseaudio |
87 |
MIKMOD_LIB_DEPENDS= libmikmod.so:audio/libmikmod |
150 |
CONFIGURE_ARGS+=CONFIG_PULSE=y |
|
|
151 |
PLIST_SUB+= PULSEAUDIO="" |
152 |
.else |
153 |
CONFIGURE_ARGS+=CONFIG_PULSE=n |
154 |
PLIST_SUB+= PULSEAUDIO="@comment " |
155 |
.endif |
156 |
|
88 |
|
157 |
.if ${PORT_OPTIONS:MCDDB} && ${PORT_OPTIONS:MCDIO} |
89 |
MODPLUG_CONFIGURE_ON= CONFIG_MODPLUG=y |
158 |
LIB_DEPENDS+= libcddb.so:audio/libcddb |
90 |
MODPLUG_LIB_DEPENDS= libmodplug.so:audio/libmodplug |
159 |
CONFIGURE_ARGS+=CONFIG_CDDB=y |
|
|
160 |
.else |
161 |
CONFIGURE_ARGS+=CONFIG_CDDB=n |
162 |
.endif |
163 |
|
91 |
|
164 |
.if ${PORT_OPTIONS:MCDIO} |
92 |
MP4_CONFIGURE_ON= CONFIG_MP4=y |
165 |
LIB_DEPENDS+= libcdio_cdda.so:sysutils/libcdio-paranoia |
93 |
MP4_LIB_DEPENDS= libfaad.so:audio/faad \ |
166 |
CONFIGURE_ARGS+=CONFIG_CDIO=y |
94 |
libmp4v2.so:multimedia/mp4v2 |
167 |
PLIST_SUB+= CDIO="" |
|
|
168 |
.else |
169 |
CONFIGURE_ARGS+=CONFIG_CDIO=n |
170 |
PLIST_SUB+= CDIO="@comment " |
171 |
.endif |
172 |
|
95 |
|
173 |
.if ${PORT_OPTIONS:MCUE} |
96 |
MUSEPACK_CONFIGURE_ON= CONFIG_MPC=y |
174 |
LIB_DEPENDS+= libcue.so:textproc/libcue |
97 |
MUSEPACK_LIB_DEPENDS= libmpcdec.so:audio/musepack |
175 |
CONFIGURE_ARGS+=CONFIG_CUE=y |
|
|
176 |
PLIST_SUB+= CUE="" |
177 |
.else |
178 |
CONFIGURE_ARGS+=CONFIG_CUE=n |
179 |
PLIST_SUB+= CUE="@comment " |
180 |
.endif |
181 |
|
98 |
|
182 |
.if ${PORT_OPTIONS:MDISCID} |
99 |
OPUS_CONFIGURE_ON= CONFIG_OPUS=y |
183 |
LIB_DEPENDS+= libdiscid.so:audio/libdiscid |
100 |
OPUS_LIB_DEPENDS= libopusfile.so:audio/opusfile |
184 |
CONFIGURE_ARGS+=CONFIG_DISCID=y |
|
|
185 |
.else |
186 |
CONFIGURE_ARGS+=CONFIG_DISCID=n |
187 |
.endif |
188 |
|
101 |
|
189 |
.if ${PORT_OPTIONS:MJACK} |
102 |
OSS_CONFIGURE_ON= CONFIG_OSS=y |
190 |
LIB_DEPENDS+= libjack.so:audio/jack |
|
|
191 |
CONFIGURE_ARGS+=CONFIG_JACK=y |
192 |
PLIST_SUB+= JACK="" |
193 |
.else |
194 |
CONFIGURE_ARGS+=CONFIG_JACK=n |
195 |
PLIST_SUB+= JACK="@comment " |
196 |
.endif |
197 |
|
103 |
|
198 |
.if ${PORT_OPTIONS:MSAMPLERATE} && ${PORT_OPTIONS:MJACK} |
104 |
PULSEAUDIO_CONFIGURE_ON= CONFIG_PULSE=y |
199 |
LIB_DEPENDS+= libsamplerate.so:audio/libsamplerate |
105 |
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio |
200 |
CONFIGURE_ARGS+=CONFIG_SAMPLERATE=y |
|
|
201 |
.else |
202 |
CONFIGURE_ARGS+=CONFIG_SAMPLERATE=n |
203 |
.endif |
204 |
|
106 |
|
|
|
107 |
SAMPLERATE_IMPLIES= JACK |
108 |
SAMPLERATE_CONFIGURE_ON= CONFIG_SAMPLERATE=y |
109 |
SAMPLERATE_LIB_DEPENDS= libsamplerate.so:audio/libsamplerate |
110 |
|
111 |
TREMOR_IMPLIES= VORBIS |
112 |
TREMOR_CONFIGURE_ON= CONFIG_TREMOR=y |
113 |
TREMOR_LIB_DEPENDS= libvorbisidec.so:audio/libtremor |
114 |
|
115 |
VORBIS_CONFIGURE_ON= CONFIG_VORBIS=y |
116 |
VORBIS_LIB_DEPENDS= libvorbisfile.so:audio/libvorbis |
117 |
|
118 |
WAV_CONFIGURE_ON= CONFIG_WAV=y |
119 |
|
120 |
WAVPACK_CONFIGURE_ON= CONFIG_WAVPACK=y |
121 |
WAVPACK_LIB_DEPENDS= libwavpack.so:audio/wavpack |
122 |
|
123 |
# Doc/cmus.txt is used to generate the man pages. Fix paths to point |
124 |
# to the correct directories. |
205 |
post-patch: |
125 |
post-patch: |
206 |
@${REINPLACE_CMD} -e 's,doc/cmus/examples,examples/cmus,g' \ |
126 |
@${REINPLACE_CMD} \ |
|
|
127 |
-e 's,/usr/share/doc/cmus/examples,${EXAMPLESDIR},g' \ |
128 |
-e 's,/usr/share/cmus,${DATADIR},g' \ |
207 |
${WRKSRC}/Doc/cmus.txt |
129 |
${WRKSRC}/Doc/cmus.txt |
208 |
@${REINPLACE_CMD} -e 's,/usr,${PREFIX},g' ${WRKSRC}/Doc/cmus.txt |
|
|
209 |
|
130 |
|
210 |
post-install: |
131 |
post-install: |
211 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/cmus* |
132 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/cmus* |
212 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/cmus/[io]p/*.so |
133 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/cmus/[io]p/*.so |
|
|
134 |
# Install zsh completion file |
135 |
${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions |
136 |
${INSTALL_DATA} ${WRKSRC}/contrib/_cmus \ |
137 |
${STAGEDIR}${PREFIX}/share/zsh/site-functions/_cmus |
213 |
|
138 |
|
214 |
.include <bsd.port.mk> |
139 |
.include <bsd.port.mk> |