diff options
Diffstat (limited to 'x11-clocks/glclock/files/patch-aa')
-rw-r--r-- | x11-clocks/glclock/files/patch-aa | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/x11-clocks/glclock/files/patch-aa b/x11-clocks/glclock/files/patch-aa new file mode 100644 index 000000000000..31d788e7cecf --- /dev/null +++ b/x11-clocks/glclock/files/patch-aa @@ -0,0 +1,37 @@ +--- makefile.orig Sat Jun 12 08:37:05 1999 ++++ makefile Sat Sep 25 15:23:49 1999 +@@ -3,22 +3,27 @@ + # June 1998 by Masaki Kawase (g93088@isc.chubu.ac.jp) + # + +- CC = g++ +- LN = g++ +- OPT = -O2 ++ CC = ${CXX} ++ LN = ${CC} ++ OPT = ${CFLAGS} -fexpensive-optimizations -ffast-math \ ++ -fomit-frame-pointer -fforce-mem -fforce-addr + +- INCLUDE_PATH = -I/usr/local/X11R6/include +- LIB_PATH = -L/usr/local/X11R6/lib ++ GLCLOCK_DIR = ${PREFIX}/lib/X11/glclock/ + ++ INCLUDE_PATH = -I${X11BASE}/include ++ LIB_PATH = -L${X11BASE}/lib -Wl,-rpath,/usr/X11R6/lib ++ ++# Link with -lGL on FreeBSD so we use hardware-accelerated GL, when installed. ++# (see http://www.freebsd.org/~3d) + LIBS = -lglut -lGLU -lGL -lXext -lXmu -lX11 -lm + + # for Mesa + # LIBS = -lglut -lMesatk -lMesaGLU -lMesaGL -lXi -lXext -lXmu -lX11 -lm + +- CFLAGS = -c ++ CFLAGS += -w -DGLCLOCK_DIR=\"${GLCLOCK_DIR}\" + LFLAGS = + +-COMPILE = $(CC) $(CFLAGS) $(OPT) $(INCLUDE_PATH) ++COMPILE = $(CC) $(CFLAGS) $(OPT) -c $(INCLUDE_PATH) + LINK = $(LN) $(LFLAGS) $(OPT) $(LIB_PATH) + + MAIN = glclock |