Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
28 lines (21 sloc) 0.788 kb
require 'formula'
class Omega < Formula
url 'http://www.alcyone.com/binaries/omega/omega-0.80.2-src.tar.gz'
homepage 'http://www.alcyone.com/max/projects/omega/'
sha1 '426063f53b546609a19a56efd144a8e494a5a60f'
def install
# Set up our target folders
inreplace "defs.h", "#define OMEGALIB \"./omegalib/\"", "#define OMEGALIB \"#{libexec}/\""
# Don't alias CC; also, don't need that ncurses include path
# Set the system type in CFLAGS, not in makefile
# Remove an obsolete flag
inreplace "Makefile" do |s|
s.remove_make_var! ['CC', 'CFLAGS', 'LDFLAGS']
end
ENV.append_to_cflags "-DUNIX -DSYSV"
system "make"
# 'make install' is weird, so we do it ourselves
bin.install "omega"
libexec.install Dir['omegalib/*']
end
end
Jump to Line
Something went wrong with that request. Please try again.