2012-05-29 21:51:27 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Tn5250 < Formula
|
|
|
|
homepage 'http://tn5250.sourceforge.net/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/tn5250/tn5250/0.17.4/tn5250-0.17.4.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '2c84f03f798fd5095009d6798d1e6c0b29e48a75'
|
2012-05-29 21:51:27 +00:00
|
|
|
|
2013-02-03 10:17:39 +00:00
|
|
|
# Fix segfault; reported here:
|
|
|
|
# http://archive.midrange.com/linux5250/201207/msg00000.html
|
2014-03-20 19:05:21 +00:00
|
|
|
patch :DATA
|
2013-02-03 10:17:39 +00:00
|
|
|
|
2012-05-29 21:51:27 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2013-02-03 10:17:39 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/curses/cursesterm.c b/curses/cursesterm.c
|
|
|
|
index bf20f05..b9c394c 100644
|
|
|
|
--- a/curses/cursesterm.c
|
|
|
|
+++ b/curses/cursesterm.c
|
|
|
|
@@ -22,6 +22,9 @@
|
|
|
|
#define _TN5250_TERMINAL_PRIVATE_DEFINED
|
|
|
|
#include "tn5250-private.h"
|
|
|
|
#include "cursesterm.h"
|
|
|
|
+#ifdef __APPLE__
|
|
|
|
+#include <term.h>
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#ifdef USE_CURSES
|
|
|
|
|
|
|
|
diff --git a/curses/tn5250.c b/curses/tn5250.c
|
|
|
|
index 30a1627..67392b1 100644
|
|
|
|
--- a/curses/tn5250.c
|
|
|
|
+++ b/curses/tn5250.c
|
|
|
|
@@ -19,6 +19,7 @@
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "tn5250-private.h"
|
|
|
|
+#include "cursesterm.h"
|
|
|
|
|
|
|
|
Tn5250Session *sess = NULL;
|
|
|
|
Tn5250Stream *stream = NULL;
|