aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2009-08-29 20:58:38 -0700
committerMax Howell2009-08-31 01:46:19 +0100
commit4a76fa50d2771f85b902a77acd658f624cf91cdd (patch)
tree99acb59077b2ad5c04af483b321d324c8a152567
parentbc13d01c720c9024eab005df62e26f6ff06665ea (diff)
downloadhomebrew-4a76fa50d2771f85b902a77acd658f624cf91cdd.tar.bz2
Formula for ScummVM.
This formula needs a lot of work, on optimising and getting (optional) dependencies figured out.
-rw-r--r--Library/Formula/scummvm.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/scummvm.rb b/Library/Formula/scummvm.rb
new file mode 100644
index 000000000..de0bd7bf1
--- /dev/null
+++ b/Library/Formula/scummvm.rb
@@ -0,0 +1,31 @@
+require 'brewkit'
+
+class Scummvm <Formula
+ @url='http://downloads.sourceforge.net/project/scummvm/scummvm/0.13.1/scummvm-0.13.1.tar.bz2'
+ @homepage='http://www.scummvm.org/'
+ @md5='843d9cd4470022bd3b269eb84298dc16'
+
+ def caveats
+ <<-EOS
+ScummVM provide their own Mac build and as such that is the one they
+officially support on this platform. Ours is more optimised, but you may
+prefer to use theirs. If so type `brew home scummvm' to visit their site.
+ EOS
+ end
+
+ def deps
+ LibraryDep.new 'sdl'
+ # Optional, but you want them anyway.
+ OptionalLibraryDep.new 'flac'
+ OptionalLibraryDep.new 'libogg'
+ OptionalLibraryDep.new 'libvorbis'
+ end
+
+ def install
+ system "./configure --prefix='#{prefix}' --disable-debug"
+ system "make install"
+ share=prefix+'share'
+ (share+'scummvm'+'scummmodern.zip').unlink
+ (share+'pixmaps').rmtree
+ end
+end