From dd6bb83237ba320ff53cc040fd717b2d4ed44645 Mon Sep 17 00:00:00 2001 From: Takenori KUBO Date: Tue, 19 Aug 2014 14:46:37 +0200 Subject: librcsc 4.1.0 librcsc: the library for Robocup soccer simulation. --- Library/Formula/librcsc.rb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Library/Formula/librcsc.rb (limited to 'Library') diff --git a/Library/Formula/librcsc.rb b/Library/Formula/librcsc.rb new file mode 100644 index 000000000..6a174adb9 --- /dev/null +++ b/Library/Formula/librcsc.rb @@ -0,0 +1,27 @@ +require "formula" + +class Librcsc < Formula + homepage "http://sourceforge.jp/projects/rctools/" + url "http://dl.sourceforge.jp/rctools/51941/librcsc-4.1.0.tar.gz" + sha1 "2eaadd13fea559062053c571afe14b169f901136" + + depends_on "boost" + + def install + system "./configure", "--disable-debug", + "--prefix=#{prefix}" + system "make", "install" + end + + test do + (testpath/"test.cpp").write <<-EOS.undent + #include + int main() { + rcsc::rcg::PlayerT p; + return 0; + } + EOS + system ENV.cxx, "test.cpp", "-o", "test", "-lrcsc_rcg" + system "./test" + end +end -- cgit v1.2.3