Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (47 sloc) 1.58 KB
class Qmmp < Formula
desc "Qt-based Multimedia Player"
homepage "https://sourceforge.net/projects/qmmp-dev/"
url "https://downloads.sourceforge.net/project/qmmp-dev/qmmp/qmmp-1.3.6.tar.bz2"
sha256 "e842ab14a335c09ee2941ecdac4b47ce9a9e916d523dfe30e98e0569b6f13036"
head "https://svn.code.sf.net/p/qmmp-dev/code/branches/qmmp-1.3/"
bottle do
sha256 "8181b5ae57e8e904e3736c55726933676268ccf36ab8ac59c54deae877585abf" => :catalina
sha256 "8b899200ea22175d4c06b765e172971270debb08e7838434148807429b6f8deb" => :mojave
sha256 "ff847d45a6217fe3cb31d8e7f938a81ec03583ebac0c4fac7e6fd7566f4efef9" => :high_sierra
end
depends_on "cmake" => :build
depends_on "faad2"
depends_on "ffmpeg"
depends_on "flac"
depends_on "libbs2b"
depends_on "libmms"
depends_on "libogg"
depends_on "libsamplerate"
depends_on "libsndfile"
depends_on "libsoxr"
depends_on "libvorbis"
depends_on "mad"
depends_on "mplayer"
depends_on "musepack"
depends_on "opus"
depends_on "opusfile"
depends_on "qt"
depends_on "taglib"
def install
system "cmake", "./", "-USE_SKINNED", "-USE_ENCA", "-USE_QMMP_DIALOG", *std_cmake_args
system "make", "install"
# fix linkage
cd (lib.to_s) do
Dir["*.dylib", "qmmp/*/*.so"].select { |f| File.ftype(f) == "file" }.each do |f|
MachO::Tools.dylibs(f).select { |d| d.start_with?("/tmp") }.each do |d|
bname = File.dirname(d)
d_new = d.sub(bname, opt_lib.to_s)
MachO::Tools.change_install_name(f, d, d_new)
end
end
end
end
test do
system bin/"qmmp", "--version"
end
end
You can’t perform that action at this time.