2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-23 03:25:35 +00:00
|
|
|
|
|
|
|
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/'
|
|
|
|
@md5='6d65ec9e0cc87ccf89ab491533ec4b77'
|
|
|
|
|
|
|
|
def install
|
|
|
|
# Set up our target folders
|
2009-09-30 16:47:18 +00:00
|
|
|
inreplace "defs.h", "#define OMEGALIB \"./omegalib/\"", "#define OMEGALIB \"#{libexec}/\""
|
2009-09-23 03:25:35 +00:00
|
|
|
|
2010-02-19 19:19:01 +00:00
|
|
|
# Don't alias CC; also, don't need that ncurses include path
|
2009-09-23 03:25:35 +00:00
|
|
|
# Set the system type in CFLAGS, not in makefile
|
|
|
|
# Remove an obsolete flag
|
2010-02-19 19:19:01 +00:00
|
|
|
inreplace "Makefile" do |s|
|
|
|
|
s.remove_make_var! ['CC', 'CFLAGS', 'LDFLAGS']
|
|
|
|
end
|
2009-09-23 03:25:35 +00:00
|
|
|
|
2010-02-19 19:19:01 +00:00
|
|
|
ENV.append_to_cflags "-DUNIX -DSYSV"
|
|
|
|
|
2009-09-23 03:25:35 +00:00
|
|
|
system "make"
|
|
|
|
|
2010-02-19 19:19:01 +00:00
|
|
|
# 'make install' is weird, so we do it ourselves
|
2009-09-23 03:25:35 +00:00
|
|
|
bin.install "omega"
|
2009-09-30 16:47:18 +00:00
|
|
|
libexec.install Dir['omegalib/*']
|
2009-09-23 03:25:35 +00:00
|
|
|
end
|
|
|
|
end
|