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 |
|
|
9 |
|
8 |
|
10 |
MAINTAINER= shen.elf@gmail.com |
9 |
MAINTAINER= shen.elf@gmail.com |
11 |
COMMENT= Simple yet powerful audio player |
10 |
COMMENT= Simple yet powerful audio player |
12 |
|
11 |
|
13 |
LICENSE= BSD2CLAUSE |
12 |
LICENSE= BSD2CLAUSE |
14 |
LICENSE_FILE= ${WRKSRC}/COPYRIGHT |
13 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
15 |
|
14 |
|
16 |
BROKEN= fails to build: sdk/scx/Socket.hpp:188:5: invalid operands to binary expression |
15 |
USES= cmake:outsource compiler:c++14-lang |
17 |
|
16 |
|
18 |
USES= cmake |
|
|
19 |
USE_LDCONFIG= yes |
17 |
USE_LDCONFIG= yes |
20 |
USE_GITHUB= yes |
18 |
USE_GITHUB= yes |
21 |
GH_ACCOUNT= bsdelf |
19 |
GH_ACCOUNT= bsdelf |
22 |
|
20 |
|
23 |
OPTIONS_DEFINE= ALSA ASSEMBLY FAAC FAAD FLAC LAME AO CUE MAC4DECODER \ |
21 |
OPTIONS_GROUP= APPLICATION GENERIC_PLUGIN CODEC_PLUGIN |
24 |
MACDECODER MPG123 NCURSES OSS QT4 SDK TAGLIB VORBIS \ |
22 |
OPTIONS_GROUP_APPLICATION= CLI NCURSES QT5 |
25 |
WAVDECODER WAVENCODER WMA |
23 |
OPTIONS_GROUP_GENERIC_PLUGIN= LIBCUE TAGLIB |
26 |
OPTIONS_DEFAULT= FAAC FAAD FLAC LAME CUE MAC4DECODER \ |
24 |
OPTIONS_GROUP_CODEC_PLUGIN= FDK_AAC FLAC LAME MAC \ |
27 |
MPG123 NCURSES OSS QT4 TAGLIB VORBIS WAVDECODER \ |
25 |
MPG123 VORBIS WAV WAVPACK |
28 |
WAVENCODER |
|
|
29 |
OPTIONS_DEFAULT_amd64= ASSEMBLY WMA |
30 |
OPTIONS_DEFAULT_i386= ASSEMBLY WMA |
31 |
|
26 |
|
32 |
OPTIONS_SUB= yes |
27 |
OPTIONS_RADIO= OUTPUT_PLUGIN |
|
|
28 |
OPTIONS_RADIO_OUTPUT_PLUGIN= OSS SNDIO |
33 |
|
29 |
|
34 |
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib |
30 |
OPTIONS_DEFAULT= CLI NCURSES \ |
35 |
ALSA_CMAKE_ON= -DWithPluginAlsaRenderer=1 |
31 |
LIBCUE TAGLIB \ |
36 |
ALSA_CMAKE_OFF= -DWithPluginAlsaRenderer=0 |
32 |
FDK_AAC FLAC LAME LIBCUE MAC \ |
|
|
33 |
MPG123 VORBIS WAV WAVPACK \ |
34 |
OSS |
37 |
|
35 |
|
38 |
AO_LIB_DEPENDS= libao.so:audio/libao |
36 |
OPTIONS_SUB= yes |
39 |
AO_CMAKE_ON= -DWithPluginAoRenderer=1 |
|
|
40 |
AO_CMAKE_OFF= -DWithPluginAoRenderer=0 |
41 |
|
37 |
|
42 |
ASSEMBLY_DESC= Enable assembly optimizations |
38 |
CMAKE_OFF= WITH_PLUGIN_ALSA \ |
43 |
ASSEMBLY_BUILD_DEPENDS= ${LOCALBASE}/bin/yasm:devel/yasm |
39 |
WITH_PLUGIN_LIBAO \ |
44 |
ASSEMBLY_CMAKE_ON= -DWithAssembly=1 |
40 |
DWITH_PLUGIN_COREAUDIO \ |
45 |
ASSEMBLY_CMAKE_OFF= -DWithAssembly=0 |
41 |
WITH_PLUGIN_FAAC \ |
|
|
42 |
WITH_PLUGIN_FAAD \ |
43 |
WITH_PLUGIN_WMA |
46 |
|
44 |
|
47 |
CUE_LIB_DEPENDS= libcue.so:textproc/libcue |
45 |
CLI_DESC= Command line interface support |
48 |
CUE_CMAKE_ON= -DWithPluginCuePack=1 |
46 |
CLI_CMAKE_BOOL= WITH_APP_CLI |
49 |
CUE_CMAKE_OFF= -DWithPluginCuePack=0 |
|
|
50 |
|
47 |
|
51 |
FAAC_LIB_DEPENDS= libfaac.so:audio/faac |
48 |
NCURSES_USE= ncurses |
52 |
FAAC_CMAKE_ON= -DWithPluginFaacEncoder=1 |
49 |
NCURSES_CMAKE_BOOL= WITH_APP_NCURSES |
53 |
FAAC_CMAKE_OFF= -DWithPluginFaacEncoder=0 |
|
|
54 |
|
50 |
|
55 |
FAAD_LIB_DEPENDS= libfaad.so:audio/faad |
51 |
QT5_USE= qt5=core,gui,widgets,qmake_build |
56 |
FAAD_CMAKE_ON= -DWithPluginFaadDecoder=1 |
52 |
QT5_CMAKE_BOOL= WITH_APP_QT5 |
57 |
FAAD_CMAKE_OFF= -DWithPluginFaadEncoder=0 |
|
|
58 |
|
53 |
|
59 |
FLAC_LIB_DEPENDS= libFLAC.so:audio/flac |
54 |
TAGLIB_DESC= TagLib support |
60 |
FLAC_CMAKE_ON= -DWithPluginFlacDecoder=1 |
55 |
TAGLIB_LIB_DEPENDS= libtag.so:audio/taglib |
61 |
FLAC_CMAKE_OFF= -DWithPluginFlacDecoder=0 |
56 |
TAGLIB_CMAKE_BOOL= WITH_PLUGIN_TAGLIB |
62 |
|
57 |
|
63 |
LAME_LIB_DEPENDS= libmp3lame.so:audio/lame |
58 |
OSS_CMAKE_BOOL= WITH_PLUGIN_OSS |
64 |
LAME_CMAKE_ON= -DWithPluginLameEncoder=1 |
|
|
65 |
LAME_CMAKE_OFF= -DWithPluginLameEncoder=0 |
66 |
|
59 |
|
67 |
MPG123_LIB_DEPENDS= libmpg123.so:audio/mpg123 |
60 |
SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio |
68 |
MPG123_CMAKE_ON= -DWithPluginMpg123Decoder=1 |
61 |
SNDIO_CMAKE_BOOL= WITH_PLUGIN_SNDIO |
69 |
MPG123_CMAKE_OFF= -DWithPluginMpg123Decoder=0 |
|
|
70 |
|
62 |
|
71 |
MAC4DECODER_DESC= Newest mac4.11 decoder (*.ape) |
63 |
LIBCUE_DESC= CUE sheet support |
72 |
MAC4DECODER_CMAKE_ON= -DWithPluginMac4Decoder=1 |
64 |
LIBCUE_LIB_DEPENDS= libcue.so:textproc/libcue |
73 |
MAC4DECODER_CMAKE_OFF= -DWithPluginMac4Decoder=0 |
65 |
LIBCUE_CMAKE_BOOL= WITH_PLUGIN_LIBCUE |
74 |
|
66 |
|
75 |
MACDECODER_DESC= Old mac3.99 ape decoder (*.ape) |
67 |
FDK_AAC_DESC= FDK AAC codec support |
76 |
MACDECODER_LIB_DEPENDS= libmac.so:audio/mac |
68 |
FDK_AAC_LIB_DEPENDS= libfdk-aac.so:audio/fdk-aac \ |
77 |
MACDECODER_CMAKE_ON= -DWithPluginMacDecoder=1 |
69 |
libmp4v2.so:multimedia/mp4v2 |
78 |
MACDECODER_CMAKE_OFF= -DWithPluginMacDecoder=0 |
70 |
FDK_AAC_CMAKE_BOOL= WITH_PLUGIN_FDK_AAC |
79 |
|
71 |
|
80 |
NCURSES_DESC= Ncurses frontend |
72 |
FLAC_LIB_DEPENDS= libFLAC.so:audio/flac |
81 |
NCURSES_USES= ncurses |
73 |
FLAC_CMAKE_BOOL= WITH_PLUGIN_FLAC |
82 |
NCURSES_CMAKE_ON= -DWithFrontendNcurses=1 |
|
|
83 |
NCURSES_CMAKE_OFF= -DWithFrontendNcurses=0 |
84 |
|
74 |
|
85 |
OSS_CMAKE_ON= -DWithPluginOssRenderer=1 |
75 |
LAME_LIB_DEPENDS= libmp3lame.so:audio/lame |
86 |
OSS_CMAKE_OFF= -DWithPluginOssRenderer=0 |
76 |
LAME_CMAKE_BOOL= WITH_PLUGIN_LAME |
87 |
|
77 |
|
88 |
QT4_DESC= QT4 frontend |
78 |
MAC_DESC= Monkey's Audio codec support |
89 |
QT4_USE= QT4=corelib,gui,linguisttools_build |
79 |
MAC_CMAKE_BOOL= WITH_PLUGIN_MAC |
90 |
QT4_USE+= QT4=qmake_build,moc_build,rcc_build,uic_build |
|
|
91 |
QT4_CMAKE_ON= -DWithFrontendQt=1 |
92 |
QT4_CMAKE_OFF= -DWithFrontendQt=0 |
93 |
|
80 |
|
94 |
SDK_DESC= Install SDK |
81 |
MPG123_LIB_DEPENDS= libmpg123.so:audio/mpg123 |
95 |
SDK_CMAKE_ON= -DWithHeadFiles=1 |
82 |
MPG123_CMAKE_BOOL= WITH_PLUGIN_MPG123 |
96 |
SDK_CMAKE_OFF= -DWithHeadFiles=0 |
|
|
97 |
|
83 |
|
98 |
TAGLIB_DESC= TagLib plugin (recommended) |
84 |
VORBIS_LIB_DEPENDS= libogg.so:audio/libogg \ |
99 |
TAGLIB_LIB_DEPENDS= libtag.so:audio/taglib |
85 |
libvorbis.so:audio/libvorbis\ |
100 |
TAGLIB_CMAKE_ON= -DWithPluginTagLibParser=1 |
86 |
libvorbisenc.so:audio/libvorbis\ |
101 |
TAGLIB_CMAKE_OFF= -DWithPluginTagLibParser=0 |
87 |
libvorbisfile.so:audio/libvorbis |
|
|
88 |
VORBIS_CMAKE_BOOL= WITH_PLUGIN_OGG_VORBIS |
102 |
|
89 |
|
103 |
VORBIS_LIB_DEPENDS= libvorbisfile.so:audio/libvorbis |
90 |
WAV_CMAKE_BOOL= WITH_PLUGIN_WAV |
104 |
VORBIS_CMAKE_ON= -DWithPluginOggDecoder=1 |
|
|
105 |
VORBIS_CMAKE_OFF= -DWithPluginOggDecoder=0 |
106 |
|
91 |
|
107 |
WAVDECODER_DESC= Decode Wav |
92 |
WAVPACK_LIB_DEPENDS= libwavpack.so:audio/wavpack |
108 |
WAVDECODER_CMAKE_ON= -DWithPluginWavDecoder=1 |
93 |
WAVPACK_CMAKE_BOOL= WITH_PLUGIN_WAVPACK |
109 |
WAVDECODER_CMAKE_OFF= -DWithPluginWavEncoder=0 |
|
|
110 |
|
94 |
|
111 |
WAVENCODER_DESC= Encode Wav |
|
|
112 |
WAVENCODER_CMAKE_ON= -DWithPluginWavEncoder=1 |
113 |
WAVENCODER_CMAKE_OFF= -DWithPluginWavEncoder=0 |
114 |
|
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> |
95 |
.include <bsd.port.mk> |