2010-06-16 19:08:54 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Liboil < Formula
|
2010-06-16 19:08:54 +00:00
|
|
|
homepage 'http://liboil.freedesktop.org/'
|
|
|
|
url 'http://liboil.freedesktop.org/download/liboil-0.3.17.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'f9d7103a3a4a4089f56197f81871ae9129d229ed'
|
2010-06-16 19:08:54 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-06-16 19:08:54 +00:00
|
|
|
depends_on 'glib'
|
|
|
|
|
2014-03-14 15:03:25 +00:00
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/89276/trunk/dports/devel/liboil/files/patch-liboil_liboilcpu-x86.c.diff"
|
|
|
|
sha1 "6e5043b0f493533a824ea251296e8a8d390a3eb5"
|
|
|
|
end
|
|
|
|
|
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/89276/trunk/dports/devel/liboil/files/host_cpu.diff"
|
|
|
|
sha1 "08a0021cca90be8394d7ed5fe0e61d6f25618193"
|
2012-01-23 01:07:39 +00:00
|
|
|
end
|
|
|
|
|
2010-06-16 19:08:54 +00:00
|
|
|
def install
|
|
|
|
arch = Hardware.is_64_bit? ? 'x64_64' : 'i386'
|
2010-09-07 21:34:39 +00:00
|
|
|
inreplace "configure", "__HOST_CPU__", arch
|
2010-06-16 19:08:54 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|