aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/librcsc.rb
diff options
context:
space:
mode:
authorTakenori KUBO2014-08-19 14:46:37 +0200
committerMike McQuaid2014-08-21 14:44:17 +0100
commitdd6bb83237ba320ff53cc040fd717b2d4ed44645 (patch)
tree5645151c0aa6d992c80b29c48bf9b6eac4661387 /Library/Formula/librcsc.rb
parentf2db123a98d610c36c3a795d9244f049a54cfb3a (diff)
downloadhomebrew-dd6bb83237ba320ff53cc040fd717b2d4ed44645.tar.bz2
librcsc 4.1.0
librcsc: the library for Robocup soccer simulation.
Diffstat (limited to 'Library/Formula/librcsc.rb')
-rw-r--r--Library/Formula/librcsc.rb27
1 files changed, 27 insertions, 0 deletions
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 <rcsc/rcg.h>
+ int main() {
+ rcsc::rcg::PlayerT p;
+ return 0;
+ }
+ EOS
+ system ENV.cxx, "test.cpp", "-o", "test", "-lrcsc_rcg"
+ system "./test"
+ end
+end