summaryrefslogtreecommitdiff
path: root/graphics/ocaml-lablgl/files/patch-ab
blob: d6a7f3b34c4102024be6dd0e88f6cd127cf76dcf (plain) (blame)
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
--- Makefile.config.orig	Sun Aug 17 09:16:13 2003
+++ Makefile.config	Sun Aug 17 09:15:43 2003
@@ -11,28 +11,28 @@
 #CAMLOPT = ocamlopt.opt
 
 # 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
 
 # How to index a library after installing (ranlib required on MacOSX)
-RANLIB = :
-#RANLIB = ranlib
+#RANLIB = :
+RANLIB = ranlib
 
 ##### Uncomment these for windows
 #TKLIBS = tk83.lib tcl83.lib gdi32.lib user32.lib
@@ -59,4 +59,4 @@
 #TOGLDIR = Togl
 
 # C Compiler options
-#COPTS = -c -O
+COPTS = -c ${CFLAGS}