summaryrefslogtreecommitdiff
path: root/graphics/f90gl/files/patch-mf8lim7
blob: 8e673a9044546a41011932d86a99e414bd3c9b06 (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
45
46
47
--- mf8lim7.orig	Wed Sep 14 23:41:20 2005
+++ mf8lim7	Sun Jul 22 06:24:02 2007
@@ -15,13 +15,16 @@
 #  LOWERCASE  - convert to lower case
 #  UNDERSCORE - convert to lower case and append underscore
 #  UPPERCASE  - convert to upper case
-FNAME = UNDERSCORE
+FNAME = %%FNAME%%
+
+#
+MESAHOME= %%LOCALBASE%%
 
 # the include directory(ies) for OpenGL (GL is a subdirectory of it) and GLUT
 OGLINC = -I$(MESAHOME)/include
 
 # the include directory for X11
-X11INC = -I/usr/X11R6/include
+X11INC = -I%%LOCALBASE%%/include
 
 # the library directory(ies) for OpenGL and GLUT
 OGLLIBDIR = -L$(MESAHOME)/lib
@@ -30,7 +33,7 @@
 OGLLIB = -lglut -lGLU -lGL
 
 # the library directory for X11
-X11LIBDIR = -L/usr/X11R6/lib
+X11LIBDIR = -L%%LOCALBASE%%/lib
 
 # the X11 libraries
 X11LIB = -lXaw -lXt -lXmu -lXi -lXext -lX11 -lm
@@ -45,12 +48,12 @@
 RANLIB = ranlib
 
 # fortran 90 compiler and compiler flags
-F90 = ifort
-F90FLAGS = -O
+F90 = %%FC%%
+F90FLAGS = -O %%FFLAGS%%
 
 # C compiler and compiler flags
-CC = gcc
-CFLAGS = -O -DFNAME=$(FNAME)
+CC = %%CC%%
+CFLAGS = -O -DFNAME=$(FNAME) %%CFLAGS%%
  
 # The suffix for module files generated by the compiler.  If none are
 # generated, then use 'junk' or something (do not leave it blank).