2013-12-13 23:52:56 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Mal4s < Formula
|
|
|
|
homepage 'https://github.com/secure411dotorg/mal4s/'
|
2014-01-12 02:32:21 +00:00
|
|
|
url 'https://service.dissectcyber.com/mal4s/mal4s-1.1.2.tar.gz'
|
|
|
|
sha1 'a99b2ffb9d2e1395c8f38a27108611611ca925df'
|
2013-12-13 23:52:56 +00:00
|
|
|
|
|
|
|
head 'https://github.com/secure411dotorg/mal4s.git'
|
|
|
|
|
|
|
|
depends_on :macos => :mavericks
|
|
|
|
depends_on :automake
|
|
|
|
depends_on :autoconf
|
|
|
|
depends_on :libtool
|
|
|
|
depends_on :x11 => :optional
|
|
|
|
depends_on :freetype
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'glm' => :build
|
|
|
|
depends_on 'boost'
|
|
|
|
depends_on 'glew'
|
|
|
|
depends_on 'jpeg'
|
|
|
|
depends_on 'pcre'
|
|
|
|
depends_on 'sdl2'
|
|
|
|
depends_on 'sdl2_image'
|
|
|
|
depends_on 'sdl2_mixer'
|
|
|
|
|
|
|
|
def install
|
|
|
|
args = ["--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"]
|
|
|
|
args << "--without-x" unless build.with? 'x11'
|
|
|
|
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
|