From 3e545005695c054ddf213f5cfaed524b5e68d1a3 Mon Sep 17 00:00:00 2001 From: ade Date: Fri, 13 Oct 2000 20:20:36 +0000 Subject: Support CC/CFLAGS/LOCALBASE/X11BASE properly Contacted maintainer with 'User unknown' error. PR: 21577 Submitted by: Ports Fury --- graphics/togl/files/patch-aa | 40 ++++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 14 deletions(-) (limited to 'graphics/togl') diff --git a/graphics/togl/files/patch-aa b/graphics/togl/files/patch-aa index f822268bc903..1d1d262e8f5b 100644 --- a/graphics/togl/files/patch-aa +++ b/graphics/togl/files/patch-aa @@ -1,15 +1,19 @@ ---- ORIG/Makefile Wed Mar 11 23:11:26 1998 -+++ Makefile Wed Aug 18 18:57:46 1999 -@@ -61,23 +61,28 @@ - CC = cc +--- Makefile.orig Thu Mar 12 13:11:26 1998 ++++ Makefile Thu Aug 10 21:13:42 2000 +@@ -58,26 +58,30 @@ + + + # The C compiler: +-CC = cc ++CC ?= cc # Compiler options: -COPTS = -c -O -+COPTS = -c -O -w ++COPTS = -c -w # Shared library linker command: -SHLINK = cc -G -+SHLINK = cc -shared ++SHLINK = ${CC} -shared # Name for the shared lib: -#SH_LIB = libtogl.so.1.3 @@ -20,16 +24,15 @@ -# Where to find tcl.h, tk.h, OpenGL/Mesa headers, etc: -INCLUDES = -I/usr/local/include -I/usr/include/tcl +# Where to find tc.hl, tk.h, OpenGL/Mesa headers, etc: -+INCLUDES = -I/usr/local/include/tcl8.2 \ -+ -I/usr/local/include/tk8.2 \ -+ -I/usr/local/include/tk8.2/generic \ -+ -I/usr/X11R6/include \ -+ -I/usr/include/tcl ++INCLUDES = -I${LOCALBASE}/include/tcl8.2 \ ++ -I${LOCALBASE}/include/tk8.2 \ ++ -I${LOCALBASE}/include/tk8.2/generic \ ++ -I${X11BASE}/include # Where to find libtcl.a, libtk.a, OpenGL/Mesa libraries: -LIBDIRS = -L/usr/local/lib -+LIBDIRS = -L/usr/local/lib \ -+ -L/usr/X11R6/lib ++LIBDIRS = -L${LOCALBASE}/lib \ ++ -L${X11BASE}/lib # Libraries to link with (-ldl for Linux only?): -LIBS = -ltk -ltcl -lGLU -lGL -L/usr/X11/lib -lX11 -lXmu -lXext -lXt -lm -ldl @@ -37,7 +40,16 @@ TK_FLAGS = -@@ -144,8 +149,8 @@ +@@ -85,7 +89,7 @@ + #### Shouldn't have to change anything beyond this point #### + + +-CFLAGS = $(COPTS) $(INCLUDES) $(TK_FLAGS) ++CFLAGS += $(COPTS) $(INCLUDES) $(TK_FLAGS) + + LFLAGS = $(LIBDIRS) + +@@ -144,8 +148,8 @@ $(CC) $(CFLAGS) togl.c -- cgit