diff options
| author | Adam Vandenberg | 2009-11-07 23:08:07 -0800 |
|---|---|---|
| committer | Max Howell | 2009-11-09 18:35:39 +0000 |
| commit | ed16c252c7744f251d9a332a2ccd6fd54c22a696 (patch) | |
| tree | 98961e2656423692289868e6f9a5d318874bccec /Library | |
| parent | eef50b417bd04b7594b60ae4e852e506629e8057 (diff) | |
| download | homebrew-ed16c252c7744f251d9a332a2ccd6fd54c22a696.tar.bz2 | |
Formula for Adamem emulator.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/adamem.rb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/adamem.rb b/Library/Formula/adamem.rb new file mode 100644 index 000000000..5465a8c24 --- /dev/null +++ b/Library/Formula/adamem.rb @@ -0,0 +1,33 @@ +require 'formula' + +class Adamem <Formula + head 'git://github.com/adamv/adamem-osx.git', :branch => 'osx-brew' + homepage 'http://www.komkon.org/~dekogel/adamem.html' + + def startup_script app + # The executables expect to find system roms in the same directory. + # We create shim sripts in bin/ that invoke the emulators w/ the full + # paths to the system roms. + return <<-END +#!/bin/bash +#{libexec}/#{app} -os7 "#{libexec}/OS7.rom" -eos "#{libexec}/EOS.rom" -wp "#{libexec}/WP.rom" $* +END + end + + def install + Dir.chdir 'src' do + system "make -f Makefile.osx dist" + end + + # Put applications and ROMs in libexec + libexec.install Dir["dist/*"] + + # Put shim scripts in bin + (bin+'adamem').write startup_script('adamem') + (bin+'cvem').write startup_script('cvem') + end + + def caveats + "Note that AdamEm is an X11 app, and does not support sound." + end +end |
