aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-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