7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
25 lines
753 B
Ruby
25 lines
753 B
Ruby
require 'formula'
|
|
|
|
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'
|
|
depends_on 'glib'
|
|
|
|
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
|
|
|
|
def patches
|
|
{: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"
|
|
]}
|
|
end
|
|
end
|