summaryrefslogtreecommitdiff
path: root/graphics/ocaml-lablgl/files/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/ocaml-lablgl/files/patch-ab')
-rw-r--r--graphics/ocaml-lablgl/files/patch-ab39
1 files changed, 39 insertions, 0 deletions
diff --git a/graphics/ocaml-lablgl/files/patch-ab b/graphics/ocaml-lablgl/files/patch-ab
new file mode 100644
index 000000000000..26bc4cd5fa57
--- /dev/null
+++ b/graphics/ocaml-lablgl/files/patch-ab
@@ -0,0 +1,39 @@
+--- Makefile.config.orig Sun Jan 13 19:30:59 2002
++++ Makefile.config Sun Jan 13 19:44:33 2002
+@@ -7,22 +7,22 @@
+ ##### Adjust these always
+
+ # Where to put the lablgl script
+-BINDIR = /usr/local/bin
++BINDIR = ${PREFIX}/bin
+
+ # Where to find X headers
+-XINCLUDES = -I/usr/X11R6/include
++XINCLUDES = -I${X11BASE}/include
+ # X libs (for broken RTLD_GLOBAL: e.g. FreeBSD 4.0)
+ #XLIBS = -L/usr/X11R6/lib -lXext -lXmu -lX11
+
+ # Where to find Tcl/Tk headers
+ # This must the same version as for LablTk
+-TKINCLUDES = -I/usr/local/include
++TKINCLUDES = -I${LOCALBASE}/include/tcl8.3 -I${LOCALBASE}/include/tk8.3
+ # Tcl/Tk libs (for broken RTLD_GLOBAL: e.g. FreeBSD 4.0)
+-#TKLIBS = -L/usr/local/lib -ltk83 -ltcl83
++TKLIBS = -L${LOCALBASE}/lib -ltk83 -ltcl83
+
+ # Where to find OpenGL/Mesa headers and libraries
+ GLINCLUDES =
+-GLLIBS = -lGL -lGLU
++GLLIBS = -L${X11BASE}/lib -R${X11BASE}/lib -lGL -lGLU -lXmu -lXext
+ # The following libraries may be required (try to add them one at a time)
+ # GLLIBS = -lGL -lGLU -lXmu -lXext -lpthread
+
+@@ -45,7 +45,7 @@
+ TOGLDIR = Togl
+
+ # C Compiler options
+-COPTS = -c -O
++COPTS = -c ${CFLAGS}
+
+ ###### No need to change these
+