freebsd-ports/graphics/ocaml-lablgl/files/patch-ab
Mark Linimon c99ca03f1b The change of the lang/ocaml port to use tcl/tk 8.4.x broke
graphics/ocaml-lablgl. This patch updates lablgl to 1.00 and
changes it to also use tcl/tk 8.4.x.  Summary of changes
from CHANGES:

  split togl, move examples to Togl/examples; add mingw support;
  reorganized directories and Makefiles; merge ijtrotts' LablGlut;
  add glArray support.

PR:		ports/63246
Submitted by:	Ronald Kuehn <rk@ronald.org> (maintainer)
2004-03-04 07:49:12 +00:00

43 lines
1.3 KiB
Text

--- Makefile.config.orig Sun Feb 22 23:03:48 2004
+++ Makefile.config Sun Feb 22 23:06:44 2004
@@ -9,18 +9,18 @@
##### 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
+XLIBS = -L${X11BASE}/lib -lXext -lXmu -lX11
# Where to find Tcl/Tk headers
# This must the same version as for LablTk
-TKINCLUDES = -I/usr/local/include/tcl8.3 -I/usr/local/include/tk8.3
+TKINCLUDES = -I${LOCALBASE}/include/tcl8.4 -I${LOCALBASE}/include/tk8.4
# Tcl/Tk libs (for broken RTLD_GLOBAL: e.g. FreeBSD 4.0)
-TKLIBS = -L/usr/local/lib -ltk83 -ltcl83
+TKLIBS = -L${LOCALBASE}/lib -ltk84 -ltcl84
# Where to find OpenGL/Mesa headers and libraries
GLINCLUDES =
@@ -29,8 +29,8 @@
# The following libraries may be required (try to add them one at a time)
# How to index a library after installing (required on MacOSX)
-RANLIB = :
-#RANLIB = ranlib
+#RANLIB = :
+RANLIB = ranlib
##### Uncomment these for windows
#TKLIBS = tk83.lib tcl83.lib gdi32.lib user32.lib
@@ -57,4 +57,4 @@
#TOGLDIR = Togl
# C Compiler options
-#COPTS = -c -O
+COPTS = -c ${CFLAGS}