homebrew-core/Formula/liboil.rb

26 lines
759 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'
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