homebrew-core/Formula/aview.rb

46 lines
1 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Aview < Formula
desc "ASCII-art image browser and animation viewer"
homepage "http://aa-project.sourceforge.net/aview/"
url "https://downloads.sourceforge.net/aa-project/aview-1.3.0rc1.tar.gz"
sha256 "42d61c4194e8b9b69a881fdde698c83cb27d7eda59e08b300e73aaa34474ec99"
2009-12-29 06:11:11 +00:00
depends_on "aalib"
2009-12-29 06:11:11 +00:00
2014-03-18 03:44:51 +00:00
patch :DATA
2009-12-29 06:11:11 +00:00
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
2010-07-15 16:37:07 +00:00
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make", "install"
2009-12-29 06:11:11 +00:00
end
end
__END__
diff --git a/image.c b/image.c
index 232b838..9780e61 100644
--- a/image.c
+++ b/image.c
@@ -1,6 +1,6 @@
#include <stdio.h>
#include <unistd.h>
-#include <malloc.h>
+#include <stdlib.h>
#include "config.h"
int imgwidth, imgheight;
diff --git a/ui.c b/ui.c
index d316f7a..134a4ca 100644
--- a/ui.c
+++ b/ui.c
@@ -1,6 +1,6 @@
#include <stdio.h>
#include <ctype.h>
-#include <malloc.h>
+#include <stdlib.h>
#include <string.h>
#include <aalib.h>
#include "shrink.h"