2011-03-10 05:11:03 +00:00
|
|
|
class Aalib < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Portable ASCII art graphics library"
|
2015-07-19 09:23:56 +00:00
|
|
|
homepage "http://aa-project.sourceforge.net/aalib/"
|
|
|
|
url "https://downloads.sourceforge.net/aa-project/aalib-1.4rc5.tar.gz"
|
|
|
|
sha256 "fbddda9230cf6ee2a4f5706b4b11e2190ae45f5eda1f0409dc4f99b35e0a70ee"
|
2009-12-29 06:10:45 +00:00
|
|
|
|
2014-07-03 12:32:20 +00:00
|
|
|
bottle do
|
2015-09-21 21:13:34 +00:00
|
|
|
cellar :any_skip_relocation
|
2014-10-20 10:26:35 +00:00
|
|
|
revision 1
|
2015-09-21 21:13:34 +00:00
|
|
|
sha256 "06bd52bb36bc45e839cc6581baa11580d8ab786f83fd878e725d1b0923497c7b" => :el_capitan
|
2014-10-20 10:26:35 +00:00
|
|
|
sha1 "bad7bebd32c57b4448895d9630bd26b81d7381a9" => :yosemite
|
|
|
|
sha1 "703020d9ca9218f85ccccb04aa8c0443d386eb13" => :mavericks
|
|
|
|
sha1 "7df0f5feb8621497d06c64a67a4b0d0350e6ecb1" => :mountain_lion
|
2014-07-03 12:32:20 +00:00
|
|
|
end
|
|
|
|
|
2012-06-07 01:35:12 +00:00
|
|
|
# Fix malloc/stdlib issue on OS X
|
2013-03-14 19:33:31 +00:00
|
|
|
# Fix underquoted definition of AM_PATH_AALIB in aalib.m4
|
2014-03-18 03:44:46 +00:00
|
|
|
patch :DATA
|
2012-06-07 01:35:12 +00:00
|
|
|
|
2009-12-29 06:10:45 +00:00
|
|
|
def install
|
|
|
|
ENV.ncurses_define
|
2012-06-07 01:35:12 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2012-02-25 23:45:28 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}",
|
|
|
|
"--infodir=#{info}",
|
2012-06-07 01:35:12 +00:00
|
|
|
"--enable-shared=yes",
|
2013-04-05 16:56:21 +00:00
|
|
|
"--enable-static=yes",
|
|
|
|
"--without-x"
|
2015-07-19 09:23:56 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-07-19 09:50:39 +00:00
|
|
|
system "script", "-q", "/dev/null", bin/"aainfo"
|
2009-12-29 06:10:45 +00:00
|
|
|
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/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>
|
2013-03-14 19:33:31 +00:00
|
|
|
diff --git a/aalib.m4 b/aalib.m4
|
|
|
|
index c40b8db..991fbda 100644
|
|
|
|
--- a/aalib.m4
|
|
|
|
+++ b/aalib.m4
|
|
|
|
@@ -9,7 +9,7 @@
|
|
|
|
dnl AM_PATH_AALIB([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
|
|
|
dnl Test for AALIB, and define AALIB_CFLAGS and AALIB_LIBS
|
|
|
|
dnl
|
|
|
|
-AC_DEFUN(AM_PATH_AALIB,
|
|
|
|
+AC_DEFUN([AM_PATH_AALIB],
|
|
|
|
[dnl
|
|
|
|
dnl Get the cflags and libraries from the aalib-config script
|
|
|
|
dnl
|