parent
b57f80e0cd
commit
43826edb14
|
@ -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
|
Loading…
Reference in New Issue