2013-12-13 23:52:56 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Mal4s < Formula
|
|
|
|
homepage 'https://github.com/secure411dotorg/mal4s/'
|
2014-09-18 22:41:23 +00:00
|
|
|
url 'https://service.dissectcyber.com/mal4s/mal4s-1.2.8.tar.gz'
|
|
|
|
sha1 'd1f38c0e09b1f5963e70c93c88ea41a3d7890887'
|
2013-12-13 23:52:56 +00:00
|
|
|
|
|
|
|
head 'https://github.com/secure411dotorg/mal4s.git'
|
|
|
|
|
2014-05-23 15:50:31 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
depends_on "glm" => :build
|
|
|
|
depends_on "glew"
|
|
|
|
depends_on "jpeg"
|
|
|
|
depends_on "pcre"
|
|
|
|
depends_on "sdl2"
|
|
|
|
depends_on "sdl2_image"
|
|
|
|
depends_on "sdl2_mixer"
|
|
|
|
depends_on "freetype"
|
2013-12-13 23:52:56 +00:00
|
|
|
depends_on :x11 => :optional
|
|
|
|
|
2014-09-17 03:58:01 +00:00
|
|
|
if MacOS.version < :mavericks
|
|
|
|
depends_on "boost" => "c++11"
|
|
|
|
else
|
|
|
|
depends_on "boost"
|
|
|
|
end
|
|
|
|
|
2014-04-05 04:16:09 +00:00
|
|
|
needs :cxx11
|
|
|
|
|
2013-12-13 23:52:56 +00:00
|
|
|
def install
|
2014-09-17 03:58:01 +00:00
|
|
|
ENV.cxx11
|
|
|
|
|
2013-12-13 23:52:56 +00:00
|
|
|
args = ["--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"]
|
2014-03-06 20:40:26 +00:00
|
|
|
args << "--without-x" if build.without? 'x11'
|
2013-12-13 23:52:56 +00:00
|
|
|
system "autoreconf", "-f", "-i"
|
|
|
|
system "./configure", *args
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2014-01-12 02:32:21 +00:00
|
|
|
system "#{bin}/mal4s", "--stop-at-end", "#{share}/mal4s/sample--newns.mal4s"
|
2013-12-13 23:52:56 +00:00
|
|
|
end
|
|
|
|
end
|