forked from KeckCAVES/homebrew-keckcaves
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lidarviewer.rb
29 lines (25 loc) · 879 Bytes
/
lidarviewer.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
require 'formula'
class Lidarviewer < Formula
ver = "2.12"
pkgver = "1"
homepage 'http://keckcaves.org/software/lidarviewer'
url "https://github.com/KeckCAVES/LidarViewer.git", :revision => "v#{ver}"
version "#{ver}-#{pkgver}"
depends_on 'KeckCAVES/keckcaves/vrui'
def install
args = []
args << "INSTALLDIR=#{prefix}"
args << "ETCINSTALLDIR=#{etc}/#{name}"
args << "VRUI_MAKEDIR=#{HOMEBREW_PREFIX}/share/vrui/make"
args << "JPEG_BASEDIR=#{HOMEBREW_PREFIX}"
args << "TIFF_BASEDIR=#{HOMEBREW_PREFIX}"
args << "LIBUSB1_BASEDIR=#{HOMEBREW_PREFIX}"
args << "PNG_BASEDIR=#{MacOS::X11.prefix}"
args << "X11_BASEDIR=#{MacOS::X11.prefix}"
args << "GL_BASEDIR=#{MacOS::X11.prefix}"
args << "GLU_BASEDIR=#{MacOS::X11.prefix}"
args << "SHOWCOMMAND=1"
system "make", *args
system "make", *(args+["install"])
end
end