2011-04-05 23:16:18 +00:00
|
|
|
class Ace < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "ADAPTIVE Communication Environment: OO network programming in C++"
|
2015-10-16 16:23:26 +00:00
|
|
|
homepage "https://www.dre.vanderbilt.edu/~schmidt/ACE.html"
|
2016-10-10 07:55:56 +00:00
|
|
|
url "http://download.dre.vanderbilt.edu/previous_versions/ACE-6.4.1.tar.bz2"
|
|
|
|
sha256 "4c74a30a1d013624a2426fd6e0a4791eca4ca8979065e52f7daebda7289dd23e"
|
2011-04-05 23:16:18 +00:00
|
|
|
|
2014-06-29 03:47:43 +00:00
|
|
|
bottle do
|
2015-09-15 05:55:01 +00:00
|
|
|
cellar :any
|
2016-10-12 18:15:49 +00:00
|
|
|
sha256 "8b2594f8361cebeeb579ae2b0d3c678f5f003df9770e9c6ba679a418039ae4ab" => :sierra
|
|
|
|
sha256 "32eaec9cc8f3ea718da715edd4bce363f84062c6bdaf2a23ef73398cbc5d2fe3" => :el_capitan
|
|
|
|
sha256 "ac79623a4dde98b876be53fb97c4ed063309f77f5d0991a12e13b38fceb06c42" => :yosemite
|
2014-06-29 03:47:43 +00:00
|
|
|
end
|
|
|
|
|
2011-04-05 23:16:18 +00:00
|
|
|
def install
|
2016-10-10 07:55:56 +00:00
|
|
|
ln_sf "config-macosx.h", "ace/config.h"
|
|
|
|
ln_sf "platform_macosx.GNU", "include/makeinclude/platform_macros.GNU"
|
2011-04-05 23:16:18 +00:00
|
|
|
|
|
|
|
# Set up the environment the way ACE expects during build.
|
2014-05-21 06:41:42 +00:00
|
|
|
ENV["ACE_ROOT"] = buildpath
|
2016-07-05 08:04:18 +00:00
|
|
|
ENV["DYLD_LIBRARY_PATH"] = "#{buildpath}/lib"
|
2011-04-05 23:16:18 +00:00
|
|
|
|
|
|
|
# Done! We go ahead and build.
|
2014-04-17 04:10:10 +00:00
|
|
|
system "make", "-C", "ace", "-f", "GNUmakefile.ACE",
|
|
|
|
"INSTALL_PREFIX=#{prefix}",
|
|
|
|
"LDFLAGS=",
|
|
|
|
"DESTDIR=",
|
|
|
|
"INST_DIR=/ace",
|
|
|
|
"debug=0",
|
|
|
|
"shared_libs=1",
|
|
|
|
"static_libs=0",
|
|
|
|
"install"
|
2015-12-01 23:20:52 +00:00
|
|
|
|
|
|
|
system "make", "-C", "examples"
|
|
|
|
pkgshare.install "examples"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
cp_r "#{pkgshare}/examples/Log_Msg/.", testpath
|
|
|
|
system "./test_callback"
|
2011-04-05 23:16:18 +00:00
|
|
|
end
|
|
|
|
end
|