aalib: needs ENV.x11

master
Adam Vandenberg 2012-02-25 15:45:28 -08:00
parent 0dbba1b8a3
commit 32522a490a
1 changed files with 9 additions and 3 deletions

View File

@ -1,20 +1,26 @@
require 'formula'
class Aalib < Formula
url 'http://downloads.sourceforge.net/aa-project/aalib-1.4rc4.tar.gz'
homepage 'http://aa-project.sourceforge.net/aalib/'
url 'http://downloads.sourceforge.net/aa-project/aalib-1.4rc4.tar.gz'
md5 'd5aa8e9eae07b7441298b5c30490f6a6'
# Fix malloc/stdlib issue on OS X
def patches
DATA
end
def install
# Build fails some of the time without `ENV.x11`!
# See: https://github.com/mxcl/homebrew/pull/10356
ENV.x11
ENV.ncurses_define
system 'autoreconf --force --install'
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--mandir=#{man}", "--infodir=#{info}",
"--prefix=#{prefix}", "--enable-shared=yes", "--enable-static=yes"
"--prefix=#{prefix}",
"--mandir=#{man}",
"--infodir=#{info}",
"--enable-shared=yes", "--enable-static=yes"
system "make install"
end
end