homebrew-core/Formula/aalib.rb

140 lines
3.4 KiB
Ruby
Raw Normal View History

2009-12-29 06:10:45 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Aalib < Formula
2009-12-29 06:10:45 +00:00
homepage 'http://aa-project.sourceforge.net/aalib/'
2012-02-25 23:45:28 +00:00
url 'http://downloads.sourceforge.net/aa-project/aalib-1.4rc4.tar.gz'
2009-12-29 06:10:45 +00:00
md5 'd5aa8e9eae07b7441298b5c30490f6a6'
2012-02-25 23:45:28 +00:00
# Fix malloc/stdlib issue on OS X
2009-12-29 06:10:45 +00:00
def patches
DATA
end
if MacOS.xcode_version >= "4.3"
# remove the autoreconf if possible, no comment provided about why it is there
# so we have no basis to make a decision at this point.
depends_on "automake" => :build
depends_on "libtool" => :build
end
2009-12-29 06:10:45 +00:00
def install
2012-02-25 23:45:28 +00:00
# Build fails some of the time without `ENV.x11`!
# See: https://github.com/mxcl/homebrew/pull/10356
ENV.x11
2009-12-29 06:10:45 +00:00
ENV.ncurses_define
system 'autoreconf --force --install'
system "./configure", "--disable-debug", "--disable-dependency-tracking",
2012-02-25 23:45:28 +00:00
"--prefix=#{prefix}",
"--mandir=#{man}",
"--infodir=#{info}",
"--enable-shared=yes", "--enable-static=yes"
2009-12-29 06:10:45 +00:00
system "make install"
end
end
__END__
diff --git a/src/aaedit.c b/src/aaedit.c
index 09534d2..2ea52f9 100644
--- a/src/aaedit.c
+++ b/src/aaedit.c
@@ -1,6 +1,6 @@
#include <string.h>
#include <ctype.h>
-#include <malloc.h>
+#include <stdlib.h>
#include "aalib.h"
#include "aaint.h"
static void aa_editdisplay(struct aa_edit *e)
diff --git a/src/aafire.c b/src/aafire.c
index 6144cff..313f08d 100644
--- a/src/aafire.c
+++ b/src/aafire.c
@@ -1,6 +1,5 @@
#include <stdio.h>
#include <string.h>
-#include <malloc.h>
#include <stdlib.h>
#include "aalib.h"
diff --git a/src/aakbdreg.c b/src/aakbdreg.c
index def65fe..f4f8efb 100644
--- a/src/aakbdreg.c
+++ b/src/aakbdreg.c
@@ -1,4 +1,4 @@
-#include <malloc.h>
+#include <stdlib.h>
#include "config.h"
#include "aalib.h"
#include "aaint.h"
diff --git a/src/aalib.c b/src/aalib.c
index 11fecc8..e3063b4 100644
--- a/src/aalib.c
+++ b/src/aalib.c
@@ -1,6 +1,6 @@
#include <stdio.h>
#include <string.h>
-#include <malloc.h>
+#include <stdlib.h>
#include "aalib.h"
#include "aaint.h"
diff --git a/src/aamoureg.c b/src/aamoureg.c
index 0380828..bb55fe3 100644
--- a/src/aamoureg.c
+++ b/src/aamoureg.c
@@ -1,4 +1,4 @@
-#include <malloc.h>
+#include <stdlib.h>
#include "config.h"
#include "aalib.h"
#include "aaint.h"
diff --git a/src/aarec.c b/src/aarec.c
index 70f4ebc..ee43e8a 100644
--- a/src/aarec.c
+++ b/src/aarec.c
@@ -1,5 +1,5 @@
#include <string.h>
-#include <malloc.h>
+#include <stdlib.h>
#include "aalib.h"
#include "aaint.h"
aa_linkedlist *aa_kbdrecommended = NULL, *aa_mouserecommended = NULL,
diff --git a/src/aaregist.c b/src/aaregist.c
index 54abec0..765155e 100644
--- a/src/aaregist.c
+++ b/src/aaregist.c
@@ -1,4 +1,4 @@
-#include <malloc.h>
+#include <stdlib.h>
#include "config.h"
#include "aalib.h"
#include "aaint.h"
diff --git a/src/aax.c b/src/aax.c
index adcbd82..36e3294 100644
--- a/src/aax.c
+++ b/src/aax.c
@@ -1,4 +1,3 @@
-#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
diff --git a/src/aaxkbd.c b/src/aaxkbd.c
index 30d5903..da2248d 100644
--- a/src/aaxkbd.c
+++ b/src/aaxkbd.c
@@ -1,4 +1,3 @@
-#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
diff --git a/src/aaxmouse.c b/src/aaxmouse.c
index 9935b03..7e725ad 100644
--- a/src/aaxmouse.c
+++ b/src/aaxmouse.c
@@ -1,4 +1,3 @@
-#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>