forked from KeckCAVES/homebrew-keckcaves
-
Notifications
You must be signed in to change notification settings - Fork 0
/
crusta.rb
30 lines (26 loc) · 819 Bytes
/
crusta.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require 'formula'
class Crusta < Formula
ver = "1.0-131-gee93552"
pkgver = "1"
homepage "http://keckcaves.org/software/crusta"
url "https://github.com/KeckCAVES/crusta.git", :revision => "v#{ver}"
version "#{ver}-#{pkgver}"
depends_on 'cmake' => :build
depends_on 'pkg-config' => :build
depends_on 'KeckCAVES/keckcaves/vrui'
depends_on 'glew'
depends_on 'gdal'
depends_on 'fontconfig'
depends_on 'ftgl'
def install
args = []
args << "-DPROJECT_VERSION=#{version}"
args << "-DINSTALL_TYPE=Local"
args << "-DCMAKE_INSTALL_PREFIX=#{prefix}"
args << "-DETC_DIR=#{etc}/#{name}"
args << "-DCMAKE_PREFIX_PATH=#{HOMEBREW_PREFIX}"
args << "-DCMAKE_RULE_MESSAGES=OFF" << "-DCMAKE_VERBOSE_MAKEFILE=ON"
system "cmake", ".", *args
system "make", "install"
end
end