homebrew-core/Formula/gle.rb
Misty De Meo 98e050bd6c Add MacOS.preferred_arch
Replaced the plethora of ternaries we've used all over the place to
determine whether x86_64 or i386 is called for.
2013-08-15 22:46:56 -07:00

25 lines
645 B
Ruby

require 'formula'
class Gle < Formula
homepage 'http://glx.sourceforge.net/'
url 'http://downloads.sourceforge.net/glx/gle-graphics-4.2.4cf-src.tar.gz'
version '4.2.4c'
sha1 '5528528dfe54c74f69bfad174105d55a3dd90e49'
depends_on 'pkg-config' => :build
depends_on :x11
depends_on 'jpeg' => :optional
depends_on 'libtiff' => :optional
def install
system "./configure", "--prefix=#{prefix}",
"--with-arch=#{MacOS.preferred_arch}",
"--without-qt"
inreplace 'Makefile', "MKDIR_P", "mkdir -p"
system "make"
ENV.deparallelize
system "make install"
end
end