forked from Sharpie/homebrew-science
/
openmotif.rb
31 lines (27 loc) · 1.14 KB
/
openmotif.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
require 'formula'
class Openmotif < Formula
url 'http://www.openmotif.org/files/public_downloads/openmotif/2.3/2.3.3/openmotif-2.3.3.tar.gz'
homepage 'http://www.openmotif.org'
md5 'fd27cd3369d6c7d5ef79eccba524f7be'
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
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