diff options
author | ade <ade@FreeBSD.org> | 2000-10-14 04:20:36 +0800 |
---|---|---|
committer | ade <ade@FreeBSD.org> | 2000-10-14 04:20:36 +0800 |
commit | 3e545005695c054ddf213f5cfaed524b5e68d1a3 (patch) | |
tree | d35c088033eb7af19499b3afdb21f439483c3cf8 /graphics/togl | |
parent | 9d9919d2c66e28a748a4609f0e9dcd0997354688 (diff) | |
download | freebsd-ports-gnome-3e545005695c054ddf213f5cfaed524b5e68d1a3.tar.gz freebsd-ports-gnome-3e545005695c054ddf213f5cfaed524b5e68d1a3.tar.zst freebsd-ports-gnome-3e545005695c054ddf213f5cfaed524b5e68d1a3.zip |
Support CC/CFLAGS/LOCALBASE/X11BASE properly
Contacted maintainer with 'User unknown' error.
PR: 21577
Submitted by: Ports Fury
Diffstat (limited to 'graphics/togl')
-rw-r--r-- | graphics/togl/files/patch-aa | 40 |
1 files changed, 26 insertions, 14 deletions
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 |