2009-12-29 06:11:11 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Aview < Formula
|
2009-12-29 06:11:11 +00:00
|
|
|
homepage 'http://aa-project.sourceforge.net/aview/'
|
2013-01-27 01:44:59 +00:00
|
|
|
url 'http://downloads.sourceforge.net/aa-project/aview-1.3.0rc1.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'd757ff9f62e6ce4d926c03ae4f4096d9fcf353fc'
|
2009-12-29 06:11:11 +00:00
|
|
|
|
|
|
|
depends_on 'aalib'
|
|
|
|
|
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2012-06-07 01:35:12 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2010-07-15 16:37:07 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
2009-12-29 06:11:11 +00:00
|
|
|
system "make install"
|
|
|
|
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"
|
|
|
|
|