2010-06-16 19:08:54 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Liboil <Formula
|
|
|
|
homepage 'http://liboil.freedesktop.org/'
|
|
|
|
url 'http://liboil.freedesktop.org/download/liboil-0.3.17.tar.gz'
|
|
|
|
md5 '47dc734f82faeb2964d97771cfd2e701'
|
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-06-16 19:08:54 +00:00
|
|
|
depends_on 'glib'
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
def patches
|
2010-04-07 05:58:35 +00:00
|
|
|
{:p0 => [
|
|
|
|
"http://svn.macports.org/repository/macports/trunk/dports/devel/liboil/files/patch-liboil_liboilcpu-x86.c.diff",
|
|
|
|
"http://svn.macports.org/repository/macports/trunk/dports/devel/liboil/files/host_cpu.diff"
|
|
|
|
]}
|
2010-06-16 19:08:54 +00:00
|
|
|
end
|
|
|
|
end
|