Permalink
Fetching contributors…
Cannot retrieve contributors at this time
129 lines (105 sloc) 4.3 KB
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup github 1.0
github.setup cmus cmus 2.7.1 v
revision 4
categories audio
maintainers {g5pw @g5pw} openmaintainer
license GPL-2+
description ncurses based music player
long_description cmus is a small and fast text mode music player for Linux \
and many other UNIX like operating systems.
homepage https://cmus.github.io/
platforms darwin
checksums rmd160 3a9ff85f3279ff74af5d46cca2d8bf5b79671c6b \
sha256 56bbdb487cf15285dea630a71e31b094276e143cb4c15c411b1b3549ec6f23b3
depends_build port:pkgconfig
depends_lib port:libao \
port:libmad \
port:libogg \
port:libvorbis \
port:libiconv \
port:ncurses
patchfiles patch-ffmpeg-3.0.diff \
patch-ffmpeg-4.0.diff
universal_variant no
build.args V=2
# ccache: invalid option -- L
configure.ccache no
configure.pre_args
configure.args prefix=${prefix} CONFIG_FLAC=n CONFIG_MIKMOD=n \
CONFIG_MODPLUG=n CONFIG_MPC=n CONFIG_FFMPEG=n \
CONFIG_AAC=n CONFIG_MP4=n CONFIG_MAD=y CONFIG_VORBIS=y \
CONFIG_WAVPACK=n CONFIG_OPUS=n CONFIG_CUE=n \
CONFIG_CDIO=n CONFIG_CDDB=n CONFIG_DISCID=n \
CONFIG_AO=y CONFIG_PULSE=n CONFIG_OSS=n \
CONFIG_JACK=n CONFIG_SAMPLERATE=n \
HOSTCC="${configure.cc}" \
HOST_CFLAGS="${configure.cflags}" \
HOST_LDFLAGS="${configure.ldflags}"
# add missing non-POSIX SIGWINCH definition for Darwin signal.h
platform darwin 8 {
patchfiles-append patch-cmus-uicurses-sigwinch-tiger.diff
}
post-configure {
reinplace -W ${worksrcpath} "s|-R${prefix}/lib|-rpath ${prefix}/lib|g" config.mk
}
default_variants +aac +cdio +cue +ffmpeg +flac +mad +mikmod +mpc +vorbis +wav +wavpack
variant aac description {Support aac files} {
depends_lib-append port:faad2 path:lib/libmp4v2.dylib:mp4v2
configure.args-delete CONFIG_AAC=n CONFIG_MP4=n
configure.args-append CONFIG_AAC=y CONFIG_MP4=y
}
variant flac description {Support flac files} {
depends_lib-append port:flac
configure.args-delete CONFIG_FLAC=n
configure.args-append CONFIG_FLAC=y
}
variant mikmod description {Support mod files} {
depends_lib-append port:libmikmod
configure.args-delete CONFIG_MIKMOD=n
configure.args-append CONFIG_MIKMOD=y
}
variant mpc description {Support musepack files} {
depends_lib-append port:libmpcdec
configure.args-delete CONFIG_MPC=n
configure.args-append CONFIG_MPC=y
}
variant wavpack description {Support WavPack files} {
depends_lib-append port:wavpack
configure.args-delete CONFIG_WAVPACK=n
configure.args-append CONFIG_WAVPACK=y
}
variant opus description {Support Opus files} {
depends_lib-append port:opusfile
configure.args-delete CONFIG_OPUS=n
configure.args-append CONFIG_OPUS=y
}
variant ffmpeg description {Support ffmpeg} {
depends_lib-append path:lib/libavcodec.dylib:ffmpeg
configure.args-delete CONFIG_FFMPEG=n
configure.args-append CONFIG_FFMPEG=y
}
variant cdda description {Support audio CD playback} {
depends_lib-append port:libcdio \
port:libcdio-paranoia \
port:libcddb \
port:libdiscid
configure.args-delete CONFIG_CDIO=n CONFIG_CDDB=n CONFIG_DISCID=n
configure.args-append CONFIG_CDIO=y CONFIG_CDDB=y CONFIG_DISCID=y
}
variant cue description {Support CUE sheets} {
depends_lib-append port:libcue
configure.args-delete CONFIG_CUE=n
configure.args-append CONFIG_CUE=y
}
variant pulseaudio description {Support native PulseAudio output} {
depends_lib-append port:pulseaudio
configure.args-delete CONFIG_PULSE=n
configure.args-append CONFIG_PULSE=y
}
variant jack description {Support native JACK output} {
depends_lib-append port:jack
configure.args-delete CONFIG_JACK=n CONFIG_SAMPLERATE=n
configure.args-append CONFIG_JACK=y CONFIG_SAMPLERATE=y
}