-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlibruis.rb
32 lines (29 loc) · 1.13 KB
/
libruis.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
31
32
class Libruis < Formula
desc "C++ cross-platform OpenGL based GUI library."
homepage "https://github.com/cppfw/ruis"
url "https://github.com/cppfw/ruis/archive/0.5.255.tar.gz"
sha256 "cbe99f924df0d6920f3a89d85a67deabd8f21f6e3b568a0ba2b8002ba38bfba7"
depends_on "prorab" => :build
depends_on "prorab-extra" => :build
depends_on "myci" => :build
depends_on "glew" => :build
depends_on "libnitki" => :build
depends_on "libtst" => :build
depends_on "libutki"
depends_on "libpapki"
depends_on "libtml"
depends_on "librasterimage"
depends_on "z"
depends_on "freetype"
depends_on "libr4"
depends_on "libsvgdom"
depends_on "libsvgren"
# use gmake here because otherwise homebrew uses default Mac's make which is of too old version 3.81
def install
ENV['PATH'] += ":#{ENV['HOMEBREW_PREFIX']}/bin"
system "#{ENV['HOMEBREW_PREFIX']}/opt/make/libexec/gnubin/make", "--include-dir=#{ENV['HOMEBREW_PREFIX']}/include", "install", "PREFIX=#{prefix}", "lint=off"
end
test do
system "#{ENV['HOMEBREW_PREFIX']}/opt/make/libexec/gnubin/make", "--include-dir=#{ENV['HOMEBREW_PREFIX']}/include", "test"
end
end