2013-12-14 06:44:34 +00:00
|
|
|
class Lib3ds < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Library for managing 3D-Studio Release 3 and 4 '.3DS' files"
|
2015-01-15 07:56:06 +00:00
|
|
|
homepage "https://code.google.com/p/lib3ds/"
|
|
|
|
url "https://lib3ds.googlecode.com/files/lib3ds-1.3.0.zip"
|
|
|
|
sha1 "544262eac73c1e4a1d77f0f1cbd90b990a996db8"
|
2013-12-14 06:44:34 +00:00
|
|
|
|
2014-07-03 17:36:37 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-10-21 08:58:31 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "73e8d8c384e541a8f00b0a9e5512c8d51e2140ab" => :yosemite
|
|
|
|
sha1 "cfeeba0b43b699344e74faf55536c008c97791cc" => :mavericks
|
|
|
|
sha1 "40bea2c7a1bad1d1516e04cd3bdb88b967270b7d" => :mountain_lion
|
2014-07-03 17:36:37 +00:00
|
|
|
end
|
|
|
|
|
2013-12-14 06:44:34 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
|
2015-01-15 07:56:06 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
# create a raw emtpy 3ds file.
|
|
|
|
(testpath/"test.3ds").write("\x4d\x4d\x06\x00\x00\x00")
|
|
|
|
system "#{bin}/3dsdump", "test.3ds"
|
2013-12-14 06:44:34 +00:00
|
|
|
end
|
|
|
|
end
|