1 | # $Id: Portfile 108313 2013-07-19 08:26:40Z ciserlohn@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name cmus |
---|
6 | version 2.5.0 |
---|
7 | distname ${name}-v${version} |
---|
8 | categories audio |
---|
9 | maintainers nomaintainer |
---|
10 | license GPL-2+ |
---|
11 | description ncurses based music player |
---|
12 | long_description \ |
---|
13 | cmus is a small and fast text mode music player for Linux and many other\ |
---|
14 | UNIX like operating systems. |
---|
15 | homepage http://cmus.sourceforge.net/ |
---|
16 | platforms darwin |
---|
17 | master_sites sourceforge:project/cmus |
---|
18 | use_bzip2 yes |
---|
19 | |
---|
20 | checksums rmd160 ee7b285cbafd6449d853d669e25cb4997254cece \ |
---|
21 | sha256 2021fab64088898d62d1439525ec345e219f58d91a9e933dc85e84eda21c8ddf |
---|
22 | |
---|
23 | depends_build path:bin/pkg-config:pkgconfig |
---|
24 | depends_lib port:libao port:libmad port:libogg port:libvorbis \ |
---|
25 | port:libiconv port:ncurses |
---|
26 | universal_variant no |
---|
27 | build.args V=2 |
---|
28 | |
---|
29 | # ccache: invalid option -- L |
---|
30 | configure.ccache no |
---|
31 | |
---|
32 | configure.pre_args |
---|
33 | configure.args prefix=${prefix} CONFIG_FLAC=n CONFIG_MIKMOD=n \ |
---|
34 | CONFIG_MODPLUG=n CONFIG_MPC=n CONFIG_FFMPEG=n \ |
---|
35 | CONFIG_AAC=n CONFIG_MP4=n CONFIG_MAD=y CONFIG_VORBIS=y \ |
---|
36 | HOSTCC=${configure.cc} HOST_CFLAGS=${configure.cflags} \ |
---|
37 | HOST_LDFLAGS="${configure.ldflags}" |
---|
38 | |
---|
39 | variant aac description {Support aac files} { |
---|
40 | depends_lib-append port:faad2 path:lib/libmp4v2.dylib:mp4v2 |
---|
41 | configure.args-delete CONFIG_AAC=n CONFIG_MP4=n |
---|
42 | configure.args-append CONFIG_AAC=y CONFIG_MP4=y |
---|
43 | } |
---|
44 | |
---|
45 | variant flac description {Support flac files} { |
---|
46 | depends_lib-append port:flac |
---|
47 | configure.args-delete CONFIG_FLAC=n |
---|
48 | configure.args-append CONFIG_FLAC=y |
---|
49 | } |
---|
50 | |
---|
51 | variant mikmod description {Support mod files} { |
---|
52 | depends_lib-append port:libmikmod |
---|
53 | configure.args-delete CONFIG_MIKMOD=n |
---|
54 | configure.args-append CONFIG_MIKMOD=y |
---|
55 | } |
---|
56 | |
---|
57 | variant mpc description {Support musepack files} { |
---|
58 | depends_lib-append port:libmpcdec |
---|
59 | configure.args-delete CONFIG_MPC=n |
---|
60 | configure.args-append CONFIG_MPC=y |
---|
61 | } |
---|
62 | |
---|
63 | livecheck.type regex |
---|
64 | livecheck.url http://cmus.sourceforge.net/ |
---|
65 | livecheck.regex cmus-v(\[0-9.\]*)\.tar\.bz2 |
---|