-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplib.rb
50 lines (42 loc) · 1.24 KB
/
plib.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
require "formula"
class Plib < Formula
homepage "http://plib.sourceforge.net/index.html"
url "http://plib.sourceforge.net/dist/plib-1.8.5.tar.gz"
sha256 "485b22bf6fdc0da067e34ead5e26f002b76326f6371e2ae006415dea6a380a32"
patch :p1, :DATA
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--disable-sl",
"--disable-pw",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system "false"
end
end
__END__
diff --git a/src/pui/puGLUT.h b/src/pui/puGLUT.h
index bd564a0..980035f 100644
--- a/src/pui/puGLUT.h
+++ b/src/pui/puGLUT.h
@@ -32,6 +32,7 @@
#ifdef UL_MAC_OSX
# include <GLUT/glut.h>
+# define APIENTRY
#else
# ifdef FREEGLUT_IS_PRESENT /* for FreeGLUT like PLIB 1.6.1*/
# include <GL/freeglut.h>
diff --git a/src/ssg/ssgLoadFLT.cxx b/src/ssg/ssgLoadFLT.cxx
index 6990e25..6f9d4d2 100644
--- a/src/ssg/ssgLoadFLT.cxx
+++ b/src/ssg/ssgLoadFLT.cxx
@@ -142,7 +142,7 @@
typedef unsigned char ubyte;
-#ifdef UL_WIN32
+#if defined(UL_WIN32) || defined(__APPLE__)
typedef unsigned short ushort;
typedef unsigned int uint;
#endif