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"
|
2015-09-16 10:57:06 +00:00
|
|
|
url "http://download.dre.vanderbilt.edu/previous_versions/ACE-6.3.3.tar.bz2"
|
|
|
|
sha256 "f362e45f624db3343db529654b601d5df69b5f56fa4597cf453da35d80989888"
|
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
|
2015-12-02 18:27:54 +00:00
|
|
|
revision 1
|
|
|
|
sha256 "18c8fa1ffa10fc33f3c498a60a0e7a741a01dc8982e7e2141161f126baff2ec9" => :el_capitan
|
|
|
|
sha256 "4b3d4e048ee9fe295844be6a2c1461f9391fd89f30e1603e8c2a8af636c1164f" => :yosemite
|
|
|
|
sha256 "40f562e9afb830079075d9ae973ed73e071ac5ef0e610732d523949394aa4c99" => :mavericks
|
2014-06-29 03:47:43 +00:00
|
|
|
end
|
|
|
|
|
2011-04-05 23:16:18 +00:00
|
|
|
def install
|
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.
|
2014-05-21 06:41:42 +00:00
|
|
|
name = MacOS.cat.to_s.delete "_"
|
2013-10-23 11:59:23 +00:00
|
|
|
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.
|
2014-05-21 06:41:42 +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.
|
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
|