4abf57a446
Qhull is a mathematical library used by Octave. This formula installs all components into the correct locations, including the libraries and headers, so that Octave can use it. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
19 lines
435 B
Ruby
19 lines
435 B
Ruby
require 'formula'
|
|
|
|
class Qhull <Formula
|
|
url 'http://www.qhull.org/download/qhull-2010.1-src.tgz'
|
|
homepage 'http://www.qhull.org/'
|
|
md5 'e64138470acdeb18f752a0bc2a11ceb4'
|
|
|
|
def install
|
|
cd "./src"
|
|
ENV['MANDIR']=man
|
|
ENV['BINDIR']=bin
|
|
system "make -e -f Makefile"
|
|
mkdir_p man
|
|
mkdir_p bin
|
|
system "make -e -f Makefile install"
|
|
(include+'qhull').install Dir['*.h']
|
|
lib.install 'libqhull.a'
|
|
end
|
|
end
|