2011-02-19 16:57:56 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Geomview < Formula
|
2011-02-19 16:57:56 +00:00
|
|
|
homepage 'http://www.geomview.org'
|
2013-06-20 23:08:35 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/geomview/geomview/1.9.4/geomview-1.9.4.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'b5e04dfee5cef46655766c2456199905832cd45c'
|
2011-02-19 16:57:56 +00:00
|
|
|
|
2012-06-07 01:35:12 +00:00
|
|
|
depends_on :x11
|
2011-02-19 16:57:56 +00:00
|
|
|
depends_on 'lesstif'
|
|
|
|
|
2012-08-24 16:07:13 +00:00
|
|
|
# Per MacPorts: https://trac.macports.org/ticket/35856
|
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
2011-02-19 16:57:56 +00:00
|
|
|
def install
|
2012-06-07 01:35:12 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2011-02-19 16:57:56 +00:00
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2012-08-24 16:07:13 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/src/bin/animate/glob.c b/src/bin/animate/glob.c
|
|
|
|
index f573f9c..2d80834 100644
|
|
|
|
--- a/src/bin/animate/glob.c
|
|
|
|
+++ b/src/bin/animate/glob.c
|
|
|
|
@@ -41,7 +41,7 @@ static char sccsid[] = "@(#)glob.c 5.7 (Berkeley) 12/14/88";
|
|
|
|
#include <errno.h>
|
|
|
|
#include <pwd.h>
|
|
|
|
|
|
|
|
-#if !defined(dirfd) && !defined(__GLIBC__) && !defined(__linux__) && !defined(__FreeBSD__) && !defined(__CYGWIN__)
|
|
|
|
+#if !defined(dirfd) && !defined(__APPLE__) && !defined(__GLIBC__) && !defined(__linux__) && !defined(__FreeBSD__) && !defined(__CYGWIN__)
|
|
|
|
#define dirfd(dirp) ((dirp)->dd_fd)
|
|
|
|
#endif
|