Lines 2-127
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= mous |
4 |
PORTNAME= mous |
5 |
PORTVERSION= 1.1a |
5 |
PORTVERSION= 2.0.1 |
6 |
PORTREVISION= 6 |
6 |
DISTVERSIONPREFIX= v |
7 |
CATEGORIES= audio |
7 |
CATEGORIES= audio |
8 |
MASTER_SITES= GHC |
8 |
MASTER_SITES= GH |
9 |
|
9 |
|
10 |
MAINTAINER= shen.elf@gmail.com |
10 |
MAINTAINER= shen.elf@gmail.com |
11 |
COMMENT= Simple yet powerful audio player |
11 |
COMMENT= Simple yet powerful audio player |
12 |
|
12 |
|
13 |
LICENSE= BSD2CLAUSE |
13 |
LICENSE= BSD2CLAUSE |
14 |
LICENSE_FILE= ${WRKSRC}/COPYRIGHT |
14 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
15 |
|
15 |
|
16 |
BROKEN= fails to build: sdk/scx/Socket.hpp:188:5: invalid operands to binary expression |
16 |
USES= cmake:outsource,noninja compiler:c++14-lang |
17 |
|
17 |
|
18 |
USES= cmake |
|
|
19 |
USE_LDCONFIG= yes |
18 |
USE_LDCONFIG= yes |
20 |
USE_GITHUB= yes |
19 |
USE_GITHUB= yes |
21 |
GH_ACCOUNT= bsdelf |
20 |
GH_ACCOUNT= bsdelf |
|
|
21 |
GH_TAGNAME= v2.0.1 |
22 |
|
22 |
|
23 |
OPTIONS_DEFINE= ALSA ASSEMBLY FAAC FAAD FLAC LAME AO CUE MAC4DECODER \ |
23 |
OPTIONS_GROUP= APPLICATION GENERIC_PLUGIN CODEC_PLUGIN |
24 |
MACDECODER MPG123 NCURSES OSS QT4 SDK TAGLIB VORBIS \ |
24 |
OPTIONS_GROUP_APPLICATION= CLI NCURSES QT5 |
25 |
WAVDECODER WAVENCODER WMA |
25 |
OPTIONS_GROUP_GENERIC_PLUGIN= LIBCUE TAGLIB |
26 |
OPTIONS_DEFAULT= FAAC FAAD FLAC LAME CUE MAC4DECODER \ |
26 |
OPTIONS_GROUP_CODEC_PLUGIN= FDK_AAC FLAC LAME MAC \ |
27 |
MPG123 NCURSES OSS QT4 TAGLIB VORBIS WAVDECODER \ |
27 |
MPG123 VORBIS WAV WAVPACK |
28 |
WAVENCODER |
|
|
29 |
OPTIONS_DEFAULT_amd64= ASSEMBLY WMA |
30 |
OPTIONS_DEFAULT_i386= ASSEMBLY WMA |
31 |
|
28 |
|
32 |
OPTIONS_SUB= yes |
29 |
OPTIONS_RADIO= OUTPUT_PLUGIN |
|
|
30 |
OPTIONS_RADIO_OUTPUT_PLUGIN= OSS SNDIO |
33 |
|
31 |
|
34 |
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib |
32 |
OPTIONS_DEFAULT= CLI NCURSES \ |
35 |
ALSA_CMAKE_ON= -DWithPluginAlsaRenderer=1 |
33 |
LIBCUE TAGLIB \ |
36 |
ALSA_CMAKE_OFF= -DWithPluginAlsaRenderer=0 |
34 |
FDK_AAC FLAC LAME LIBCUE MAC \ |
|
|
35 |
MPG123 VORBIS WAV WAVPACK \ |
36 |
OSS |
37 |
|
37 |
|
38 |
AO_LIB_DEPENDS= libao.so:audio/libao |
38 |
OPTIONS_SUB= yes |
39 |
AO_CMAKE_ON= -DWithPluginAoRenderer=1 |
|
|
40 |
AO_CMAKE_OFF= -DWithPluginAoRenderer=0 |
41 |
|
39 |
|
42 |
ASSEMBLY_DESC= Enable assembly optimizations |
40 |
CMAKE_ARGS+= -DWITH_PLUGIN_ALSA=0 \ |
43 |
ASSEMBLY_BUILD_DEPENDS= ${LOCALBASE}/bin/yasm:devel/yasm |
41 |
-DWITH_PLUGIN_LIBAO=0 \ |
44 |
ASSEMBLY_CMAKE_ON= -DWithAssembly=1 |
42 |
-DWITH_PLUGIN_COREAUDIO=0 \ |
45 |
ASSEMBLY_CMAKE_OFF= -DWithAssembly=0 |
43 |
-DWITH_PLUGIN_FAAC=0 \ |
|
|
44 |
-DWITH_PLUGIN_FAAD=0 \ |
45 |
-DWITH_PLUGIN_WMA=0 |
46 |
|
46 |
|
47 |
CUE_LIB_DEPENDS= libcue.so:textproc/libcue |
47 |
CLI_DESC= Command line interface support |
48 |
CUE_CMAKE_ON= -DWithPluginCuePack=1 |
48 |
CLI_CMAKE_ON= -DWITH_APP_CLI=1 |
49 |
CUE_CMAKE_OFF= -DWithPluginCuePack=0 |
49 |
CLI_CMAKE_OFF= -DWITH_APP_CLI=0 |
50 |
|
50 |
|
51 |
FAAC_LIB_DEPENDS= libfaac.so:audio/faac |
51 |
NCURSES_USE= ncurses |
52 |
FAAC_CMAKE_ON= -DWithPluginFaacEncoder=1 |
52 |
NCURSES_CMAKE_ON= -DWITH_APP_NCURSES=1 |
53 |
FAAC_CMAKE_OFF= -DWithPluginFaacEncoder=0 |
53 |
NCURSES_CMAKE_OFF= -DWITH_APP_NCURSES=0 |
54 |
|
54 |
|
55 |
FAAD_LIB_DEPENDS= libfaad.so:audio/faad |
55 |
QT5_USE= qt5=core,gui,widgets,qmake_build |
56 |
FAAD_CMAKE_ON= -DWithPluginFaadDecoder=1 |
56 |
QT5_CMAKE_ON= -DWITH_APP_QT5=1 |
57 |
FAAD_CMAKE_OFF= -DWithPluginFaadEncoder=0 |
57 |
QT5_CMAKE_OFF= -DWITH_APP_QT5=0 |
58 |
|
58 |
|
59 |
FLAC_LIB_DEPENDS= libFLAC.so:audio/flac |
59 |
TAGLIB_DESC= TagLib support |
60 |
FLAC_CMAKE_ON= -DWithPluginFlacDecoder=1 |
60 |
TAGLIB_LIB_DEPENDS= libtag.so:audio/taglib |
61 |
FLAC_CMAKE_OFF= -DWithPluginFlacDecoder=0 |
61 |
TAGLIB_CMAKE_ON= -DWITH_PLUGIN_TAGLIB=1 |
|
|
62 |
TAGLIB_CMAKE_OFF= -DWITH_PLUGIN_TAGLIB=0 |
62 |
|
63 |
|
63 |
LAME_LIB_DEPENDS= libmp3lame.so:audio/lame |
64 |
OSS_CMAKE_ON= -DWITH_PLUGIN_OSS=1 |
64 |
LAME_CMAKE_ON= -DWithPluginLameEncoder=1 |
65 |
OSS_CMAKE_OFF= -DWITH_PLUGIN_OSS=0 |
65 |
LAME_CMAKE_OFF= -DWithPluginLameEncoder=0 |
|
|
66 |
|
66 |
|
67 |
MPG123_LIB_DEPENDS= libmpg123.so:audio/mpg123 |
67 |
SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio |
68 |
MPG123_CMAKE_ON= -DWithPluginMpg123Decoder=1 |
68 |
SNDIO_CMAKE_ON= -DWITH_PLUGIN_SNDIO=1 |
69 |
MPG123_CMAKE_OFF= -DWithPluginMpg123Decoder=0 |
69 |
SNDIO_CMAKE_OFF= -DWITH_PLUGIN_SNDIO=0 |
70 |
|
70 |
|
71 |
MAC4DECODER_DESC= Newest mac4.11 decoder (*.ape) |
71 |
LIBCUE_DESC= CUE sheet support |
72 |
MAC4DECODER_CMAKE_ON= -DWithPluginMac4Decoder=1 |
72 |
LIBCUE_LIB_DEPENDS= libcue.so:textproc/libcue |
73 |
MAC4DECODER_CMAKE_OFF= -DWithPluginMac4Decoder=0 |
73 |
LIBCUE_CMAKE_ON= -DWITH_PLUGIN_LIBCUE=1 |
|
|
74 |
LIBCUE_CMAKE_OFF= -DWITH_PLUGIN_LIBCUE=0 |
74 |
|
75 |
|
75 |
MACDECODER_DESC= Old mac3.99 ape decoder (*.ape) |
76 |
FDK_AAC_DESC= FDK AAC codec support |
76 |
MACDECODER_LIB_DEPENDS= libmac.so:audio/mac |
77 |
FDK_AAC_LIB_DEPENDS= libfdk-aac.so:audio/fdk-aac \ |
77 |
MACDECODER_CMAKE_ON= -DWithPluginMacDecoder=1 |
78 |
libmp4v2.so:multimedia/mp4v2 |
78 |
MACDECODER_CMAKE_OFF= -DWithPluginMacDecoder=0 |
79 |
FDK_AAC_CMAKE_ON= -DWITH_PLUGIN_FDK_AAC=1 |
|
|
80 |
FDK_AAC_CMAKE_OFF= -DWITH_PLUGIN_FDK_AAC=0 |
79 |
|
81 |
|
80 |
NCURSES_DESC= Ncurses frontend |
82 |
FLAC_LIB_DEPENDS= libFLAC.so:audio/flac |
81 |
NCURSES_USES= ncurses |
83 |
FLAC_CMAKE_ON= -DWITH_PLUGIN_FLAC=1 |
82 |
NCURSES_CMAKE_ON= -DWithFrontendNcurses=1 |
84 |
FLAC_CMAKE_OFF= -DWITH_PLUGIN_FLAC=0 |
83 |
NCURSES_CMAKE_OFF= -DWithFrontendNcurses=0 |
|
|
84 |
|
85 |
|
85 |
OSS_CMAKE_ON= -DWithPluginOssRenderer=1 |
86 |
LAME_LIB_DEPENDS= libmp3lame.so:audio/lame |
86 |
OSS_CMAKE_OFF= -DWithPluginOssRenderer=0 |
87 |
LAME_CMAKE_ON= -DWITH_PLUGIN_LAME=1 |
|
|
88 |
LAME_CMAKE_OFF= -DWITH_PLUGIN_LAME=0 |
87 |
|
89 |
|
88 |
QT4_DESC= QT4 frontend |
90 |
MAC_DESC= Monkey's Audio codec support |
89 |
QT4_USE= QT4=corelib,gui,linguisttools_build |
91 |
MAC_CMAKE_ON= -DWITH_PLUGIN_MAC=1 |
90 |
QT4_USE+= QT4=qmake_build,moc_build,rcc_build,uic_build |
92 |
MAC_CMAKE_OFF= -DWITH_PLUGIN_MAC=0 |
91 |
QT4_CMAKE_ON= -DWithFrontendQt=1 |
|
|
92 |
QT4_CMAKE_OFF= -DWithFrontendQt=0 |
93 |
|
93 |
|
94 |
SDK_DESC= Install SDK |
94 |
MPG123_LIB_DEPENDS= libmpg123.so:audio/mpg123 |
95 |
SDK_CMAKE_ON= -DWithHeadFiles=1 |
95 |
MPG123_CMAKE_ON= -DWITH_PLUGIN_MPG123=1 |
96 |
SDK_CMAKE_OFF= -DWithHeadFiles=0 |
96 |
MPG123_CMAKE_OFF= -DWITH_PLUGIN_MPG123=0 |
97 |
|
97 |
|
98 |
TAGLIB_DESC= TagLib plugin (recommended) |
98 |
VORBIS_LIB_DEPENDS= libogg.so:audio/libogg \ |
99 |
TAGLIB_LIB_DEPENDS= libtag.so:audio/taglib |
99 |
libvorbis.so:audio/libvorbis\ |
100 |
TAGLIB_CMAKE_ON= -DWithPluginTagLibParser=1 |
100 |
libvorbisenc.so:audio/libvorbis\ |
101 |
TAGLIB_CMAKE_OFF= -DWithPluginTagLibParser=0 |
101 |
libvorbisfile.so:audio/libvorbis |
|
|
102 |
VORBIS_CMAKE_ON= -DWITH_PLUGIN_OGG_VORBIS=1 |
103 |
VORBIS_CMAKE_OFF= -DWITH_PLUGIN_OGG_VORBIS=0 |
102 |
|
104 |
|
103 |
VORBIS_LIB_DEPENDS= libvorbisfile.so:audio/libvorbis |
105 |
WAV_CMAKE_ON= -DWITH_PLUGIN_WAV=1 |
104 |
VORBIS_CMAKE_ON= -DWithPluginOggDecoder=1 |
106 |
WAV_CMAKE_OFF= -DWITH_PLUGIN_WAV=0 |
105 |
VORBIS_CMAKE_OFF= -DWithPluginOggDecoder=0 |
|
|
106 |
|
107 |
|
107 |
WAVDECODER_DESC= Decode Wav |
108 |
WAVPACK_LIB_DEPENDS= libwavpack.so:audio/wavpack |
108 |
WAVDECODER_CMAKE_ON= -DWithPluginWavDecoder=1 |
109 |
WAVPACK_CMAKE_ON= -DWITH_PLUGIN_WAVPACK=1 |
109 |
WAVDECODER_CMAKE_OFF= -DWithPluginWavEncoder=0 |
110 |
WAVPACK_CMAKE_OFF= -DWITH_PLUGIN_WAVPACK=0 |
110 |
|
111 |
|
111 |
WAVENCODER_DESC= Encode Wav |
112 |
INSTALL_TARGET= install/strip |
112 |
WAVENCODER_CMAKE_ON= -DWithPluginWavEncoder=1 |
|
|
113 |
WAVENCODER_CMAKE_OFF= -DWithPluginWavEncoder=0 |
114 |
|
113 |
|
115 |
WMA_DESC= WMA decoder plugin |
|
|
116 |
WMA_CMAKE_ON= -DWithPluginWmaDecoder=1 |
117 |
WMA_CMAKE_OFF= -DWithPluginWmaDecoder=0 |
118 |
|
119 |
post-patch: |
120 |
@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' \ |
121 |
-e 's|/usr/local|${LOCALBASE}|g' \ |
122 |
${WRKSRC}/CMakeLists.txt |
123 |
|
124 |
post-install: |
125 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mous/* |
126 |
|
127 |
.include <bsd.port.mk> |
114 |
.include <bsd.port.mk> |