homebrew-core/Formula/liboil.rb
2012-09-03 11:36:42 -07:00

25 lines
759 B
Ruby

require 'formula'
class Liboil < Formula
homepage 'http://liboil.freedesktop.org/'
url 'http://liboil.freedesktop.org/download/liboil-0.3.17.tar.gz'
sha1 'f9d7103a3a4a4089f56197f81871ae9129d229ed'
depends_on 'pkg-config' => :build
depends_on 'glib'
def patches
{ :p0 => [
"https://trac.macports.org/export/89276/trunk/dports/devel/liboil/files/patch-liboil_liboilcpu-x86.c.diff",
"https://trac.macports.org/export/89276/trunk/dports/devel/liboil/files/host_cpu.diff"
]}
end
def install
arch = Hardware.is_64_bit? ? 'x64_64' : 'i386'
inreplace "configure", "__HOST_CPU__", arch
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
system "make"
system "make install"
end
end