forked from ska-sa/homebrew-tap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenmotif.rb
More file actions
41 lines (35 loc) · 1.32 KB
/
Copy pathopenmotif.rb
File metadata and controls
41 lines (35 loc) · 1.32 KB
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
33
34
35
36
37
38
39
40
41
require 'formula'
class Openmotif < Formula
url 'http://motif.ics.com/sites/default/files/openmotif-2.3.3.tar.gz'
homepage 'http://motif.ics.com/'
sha1 '2a51e2f28078c4db7ff0c8517eb257001716b699'
depends_on 'pkg-config' => :build
depends_on :x11
def patches
# MacPorts patches
{ :p0 => ['https://trac.macports.org/export/83688/trunk/dports/x11/openmotif/files/patch-uintptr_t-cast.diff',
'https://trac.macports.org/export/83688/trunk/dports/x11/openmotif/files/patch-lib-Mrm-Makefile.in.diff',
'https://trac.macports.org/raw-attachment/ticket/30898/patch-demos-programs-periodic-Makefile.in.diff',
'https://trac.macports.org/raw-attachment/ticket/30898/patch-clients-uil-UilDefI.h.diff']
}
end
fails_with :clang do
build 421
cause <<-EOS.undent
Compilation fails because clang only support weak aliases.
EOS
end
def install
ENV.deparallelize
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--enable-xft", "--enable-jpeg", "--enable-png"
system "make install"
end
def caveats
<<-EOS.undent
This formula installs libraries with the same names as the LessTif
formula in mxcl/master. If OpenMotif is installed, it may break things
that are linked against LessTif.
EOS
end
end