homebrew-core/Formula/openmotif.rb
2017-12-13 21:36:40 -08:00

37 lines
1.2 KiB
Ruby

class Openmotif < Formula
desc "LGPL release of the Motif toolkit"
homepage "https://motif.ics.com/motif"
url "https://downloads.sourceforge.net/project/motif/Motif%202.3.8%20Source%20Code/motif-2.3.8.tar.gz"
sha256 "859b723666eeac7df018209d66045c9853b50b4218cecadb794e2359619ebce7"
bottle do
sha256 "ca0c7a96b098ed5efc2dace2cb1b9bc2447c8f1cf0780e882bfee691160466e0" => :high_sierra
sha256 "21120a7b3aab57d5660c480ab5f1924cbfb31e8625674bf02704971f103616f9" => :sierra
sha256 "bef02966fb2d72ac23235c8038cdf864cefe47d1cb905fac08a9194d7c9ed554" => :el_capitan
end
depends_on "pkg-config" => :build
depends_on "fontconfig"
depends_on "freetype"
depends_on "jpeg"
depends_on "libpng"
depends_on :x11
conflicts_with "lesstif",
:because => "Lesstif and Openmotif are complete replacements for each other"
def install
system "./configure", "--prefix=#{prefix}",
"--disable-dependency-tracking",
"--disable-silent-rules"
system "make"
system "make", "install"
# Avoid conflict with Perl
mv man3/"Core.3", man3/"openmotif-Core.3"
end
test do
assert_match /no source file specified/, pipe_output("#{bin}/uil 2>&1")
end
end