homebrew-core/Formula/liboil.rb

26 lines
750 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Liboil < Formula
homepage 'http://liboil.freedesktop.org/'
url 'http://liboil.freedesktop.org/download/liboil-0.3.17.tar.gz'
md5 '47dc734f82faeb2964d97771cfd2e701'
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