df01b8f968
Closes Homebrew/homebrew#25809. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
21 lines
884 B
Ruby
21 lines
884 B
Ruby
require 'formula'
|
|
|
|
class Coin < Formula
|
|
homepage 'https://bitbucket.org/Coin3D/coin/wiki/Home'
|
|
url 'https://bitbucket.org/Coin3D/coin/downloads/Coin-3.1.3.tar.gz'
|
|
sha1 '8e9f05628461963623686d3ec53102214e233dd1'
|
|
|
|
def install
|
|
# https://bitbucket.org/Coin3D/coin/issue/47 (fix misspelled test flag)
|
|
inreplace "configure", '-fno-for-scoping', '-fno-for-scope'
|
|
|
|
# https://bitbucket.org/Coin3D/coin/issue/45 (suppress math-undefs)
|
|
# http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/graphics/Coin/patches/patch-include_Inventor_C_base_math-undefs.h
|
|
inreplace "include/Inventor/C/base/math-undefs.h", "#ifndef COIN_MATH_UNDEFS_H", "#if false"
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--with-framework-prefix=#{lib}"
|
|
system "make install"
|
|
end
|
|
end
|