source: trunk/dports/audio/cmus/Portfile

Last change on this file was 148825, checked in by devans@…, 16 months ago

dependents of ffmpeg: increment revision to rebuild with ffmpeg version 3.0.2. (#50694).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.0 KB
Line 
1# $Id: Portfile 148825 2016-05-19 16:38:55Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup           github 1.0
5
6github.setup        cmus cmus 2.7.1 v
7revision            2
8categories          audio
9maintainers         g5pw openmaintainer
10license             GPL-2+
11description         ncurses based music player
12long_description    cmus is a small and fast text mode music player for Linux \
13                    and many other UNIX like operating systems.
14homepage            https://cmus.github.io/
15platforms           darwin
16
17checksums           rmd160  3a9ff85f3279ff74af5d46cca2d8bf5b79671c6b \
18                    sha256  56bbdb487cf15285dea630a71e31b094276e143cb4c15c411b1b3549ec6f23b3
19
20depends_build       path:bin/pkg-config:pkgconfig
21depends_lib         port:libao \
22                    port:libmad \
23                    port:libogg \
24                    port:libvorbis \
25                    port:libiconv \
26                    port:ncurses
27
28patchfiles          patch-ffmpeg-3.0.diff
29
30universal_variant   no
31build.args          V=2
32
33# ccache: invalid option -- L
34configure.ccache    no
35
36configure.pre_args
37configure.args      prefix=${prefix} CONFIG_FLAC=n CONFIG_MIKMOD=n \
38                    CONFIG_MODPLUG=n CONFIG_MPC=n CONFIG_FFMPEG=n \
39                    CONFIG_AAC=n CONFIG_MP4=n CONFIG_MAD=y CONFIG_VORBIS=y \
40                    CONFIG_WAVPACK=n CONFIG_OPUS=n CONFIG_CUE=n \
41                    CONFIG_CDIO=n CONFIG_CDDB=n CONFIG_DISCID=n \
42                    CONFIG_AO=y CONFIG_PULSE=n CONFIG_OSS=n \
43                    CONFIG_JACK=n CONFIG_SAMPLERATE=n \
44                    HOSTCC="${configure.cc}" \
45                    HOST_CFLAGS="${configure.cflags}" \
46                    HOST_LDFLAGS="${configure.ldflags}"
47
48post-configure {
49    reinplace -W ${worksrcpath} "s|-R${prefix}/lib|-rpath ${prefix}/lib|g" config.mk
50}
51
52default_variants +aac +cdio +cue +ffmpeg +flac +mad +mikmod +mpc +vorbis +wav +wavpack
53
54variant aac  description {Support aac files}   {
55    depends_lib-append    port:faad2 path:lib/libmp4v2.dylib:mp4v2
56    configure.args-delete CONFIG_AAC=n CONFIG_MP4=n
57    configure.args-append CONFIG_AAC=y CONFIG_MP4=y
58}
59
60variant flac  description {Support flac files} {
61    depends_lib-append    port:flac
62    configure.args-delete CONFIG_FLAC=n
63    configure.args-append CONFIG_FLAC=y
64}
65
66variant mikmod  description {Support mod files} {
67    depends_lib-append    port:libmikmod
68    configure.args-delete CONFIG_MIKMOD=n
69    configure.args-append CONFIG_MIKMOD=y
70}
71
72variant mpc  description {Support musepack files} {
73    depends_lib-append    port:libmpcdec
74    configure.args-delete CONFIG_MPC=n
75    configure.args-append CONFIG_MPC=y
76}
77
78variant wavpack  description {Support WavPack files} {
79    depends_lib-append    port:wavpack
80    configure.args-delete CONFIG_WAVPACK=n
81    configure.args-append CONFIG_WAVPACK=y
82}
83
84variant opus  description {Support Opus files} {
85    depends_lib-append    port:opusfile
86    configure.args-delete CONFIG_OPUS=n
87    configure.args-append CONFIG_OPUS=y
88}
89
90variant ffmpeg  description {Support ffmpeg} {
91    depends_lib-append    path:lib/libavcodec.dylib:ffmpeg
92    configure.args-delete CONFIG_FFMPEG=n
93    configure.args-append CONFIG_FFMPEG=y
94}
95
96variant cdda  description {Support audio CD playback} {
97    depends_lib-append    port:libcdio \
98                          port:libcdio-paranoia \
99              port:libcddb \
100              port:libdiscid
101    configure.args-delete CONFIG_CDIO=n CONFIG_CDDB=n CONFIG_DISCID=n
102    configure.args-append CONFIG_CDIO=y CONFIG_CDDB=y CONFIG_DISCID=y
103}
104
105variant cue  description {Support CUE sheets} {
106    depends_lib-append    port:libcue
107    configure.args-delete CONFIG_CUE=n
108    configure.args-append CONFIG_CUE=y
109}
110
111variant pulseaudio  description {Support native PulseAudio output} {
112    depends_lib-append    port:pulseaudio
113    configure.args-delete CONFIG_PULSE=n
114    configure.args-append CONFIG_PULSE=y
115}
116
117variant jack  description {Support native JACK output} {
118    depends_lib-append    port:jack
119    configure.args-delete CONFIG_JACK=n CONFIG_SAMPLERATE=n
120    configure.args-append CONFIG_JACK=y CONFIG_SAMPLERATE=y
121}
122
Note: See TracBrowser for help on using the repository browser.