2011-04-05 23:16:18 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Ace < Formula
|
|
|
|
homepage 'http://www.cse.wustl.edu/~schmidt/ACE.html'
|
2014-03-16 23:11:42 +00:00
|
|
|
url 'http://download.dre.vanderbilt.edu/previous_versions/ACE-6.2.5.tar.bz2'
|
|
|
|
sha1 '54a38cbfa363c1a4d3a702c779e4dc9c15e8c4cd'
|
2011-04-05 23:16:18 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# ACE has two methods of compilation, "traditional" and ./configure.
|
|
|
|
# The "traditional" method has consistently given better results
|
|
|
|
# for the last 5 years, so although awkward to use on OSX, we use
|
|
|
|
# it anyway.
|
|
|
|
|
2013-10-23 11:59:23 +00:00
|
|
|
# Figure out the names of the header and makefile for this version
|
|
|
|
# of OSX and link those files to the standard names.
|
|
|
|
name = MacOS.cat.to_s.delete '_'
|
|
|
|
ln_sf "config-macosx-#{name}.h", "ace/config.h"
|
|
|
|
ln_sf "platform_macosx_#{name}.GNU", "include/makeinclude/platform_macros.GNU"
|
2011-04-05 23:16:18 +00:00
|
|
|
|
|
|
|
# Set up the environment the way ACE expects during build.
|
2012-02-24 20:50:21 +00:00
|
|
|
ENV['ACE_ROOT'] = buildpath
|
|
|
|
ENV['DYLD_LIBRARY_PATH'] = "#{buildpath}/ace:#{buildpath}/lib"
|
2011-04-05 23:16:18 +00:00
|
|
|
|
|
|
|
# Done! We go ahead and build.
|
2012-02-21 06:04:21 +00:00
|
|
|
cd "ace" do
|
2012-02-24 20:50:21 +00:00
|
|
|
system "make", "-f", "GNUmakefile.ACE",
|
|
|
|
"INSTALL_PREFIX=#{prefix}",
|
|
|
|
"LDFLAGS=",
|
|
|
|
"DESTDIR=",
|
|
|
|
"INST_DIR=/ace",
|
|
|
|
"debug=0",
|
2012-04-24 04:36:25 +00:00
|
|
|
"shared_libs=1",
|
|
|
|
"static_libs=0",
|
2012-02-24 20:50:21 +00:00
|
|
|
"install"
|
2012-02-21 06:04:21 +00:00
|
|
|
end
|
2011-04-05 23:16:18 +00:00
|
|
|
end
|
|
|
|
end
|