homebrew-core/Formula/playdar.rb

27 lines
717 B
Ruby
Raw Normal View History

require 'formula'
class Playdar <Formula
2009-11-04 16:34:41 +00:00
homepage 'http://www.playdar.org'
head 'git://github.com/RJ/playdar-core.git'
depends_on 'taglib'
2009-11-04 16:34:41 +00:00
depends_on 'erlang'
def install
2009-11-04 16:34:41 +00:00
system "make all"
system "make scanner"
Dir['playdar_modules/*/src'].each{ |fn| rm_rf fn }
rm_rf 'playdar_modules/library/priv/taglib_driver/scanner_visual_studio_sln'
2009-11-04 16:34:41 +00:00
File.unlink 'playdar_modules/library/priv/taglib_driver/taglib_json_reader.cpp'
# otherwise playdar crashes
prefix.install ['ebin', 'playdar_modules', 'priv', 'etc']
2009-11-04 16:34:41 +00:00
inreplace 'playdarctl', 'cd `dirname $0`', "cd #{prefix}"
inreplace 'playdarctl', 'EBIN=./ebin/', "EBIN=#{prefix}/ebin"
2009-11-04 16:34:41 +00:00
bin.install 'playdarctl'
end
end