updated on Fri Jan 13 20:02:10 UTC 2012
[aur-mirror.git] / cwpsu / cwpsu-42-fix-paths.patch
blob5f541dceccbf256d5825477ee484b303b513d396
1 diff --git a/Makefile.config b/Makefile.config
2 index 3e83b74..607c197 100644
3 --- a/Makefile.config
4 +++ b/Makefile.config
5 @@ -310,7 +310,7 @@ C++FLAGS = -I$I $(OPTC) $(LARGE_FILE_FLAG) $(ENDIANFLAG) $(XDRFLAG)
6 #LD_LIBRARY_PATH = $(CWPROOT)/lib:/usr/X11R6/LessTif/lib
8 # under SUN OS and RedHat (and other) Linux uncomment the next line
9 -LD_LIBRARY_PATH += $(CWPROOT)/lib:/usr/X11R6/LessTif/lib
10 +LD_LIBRARY_PATH += $(CWPROOT)/lib
12 #############################################################################
13 # the archiver
14 @@ -445,10 +445,10 @@ include $(CWPROOT)/src/Rules/abbrev.rules
15 ####
16 # Generic (RS6000, SGI)
17 # X11 include path
18 -IX11 = /usr/local/include
19 +IX11 = /usr/include
21 # X11 library path
22 -LX11 = /usr/local/lib
23 +LX11 = /usr/lib
24 ####
26 ####
27 @@ -466,10 +466,10 @@ LX11 = /usr/local/lib
28 ## The following paths would be used under Linux
29 ## and possibly under SCO Unix installs
30 # X11 include path
31 -IX11 = /usr/X11R6/include
32 +#IX11 = /usr/include
34 # X11 library path
35 -LX11 = /usr/X11R6/lib
36 +#LX11 = /usr/lib
39 ####
40 @@ -488,39 +488,39 @@ LX11 = /usr/X11R6/lib
41 # if you have these include files and libraries.
43 # include path
44 -IMOTIF = /usr/local/include
45 +IMOTIF = $(shell sh -c 'motif-config --cflags')
47 # library path
48 -LMOTIF = /usr/local/lib
49 +LMOTIF = $(shell sh -c 'motif-config --libs')
51 # Example of Lesstif usage:
52 # include path
53 -IMOTIF = /usr/local/lesstif/include
54 +#IMOTIF = /usr/include
56 # library path
57 -LMOTIF = /usr/local/lesstif/lib
58 +#LMOTIF = /usr/lib
60 #### Example of Lesstif usage under RedHat
61 # include path
62 -IMOTIF = /usr/X11R6/LessTif/Motif2.0/include
63 +#IMOTIF = /usr/X11R6/LessTif/Motif2.0/include
65 # library path
66 -LMOTIF = /usr/X11R6/LessTif/Motif2.0/lib
67 +#LMOTIF = /usr/X11R6/LessTif/Motif2.0/lib
70 #### Open GL/Mesa include and library paths (generic example)
71 # Open GL/Mesa include path
72 -IGL = /usr/local/include
73 +IGL = $(shell sh -c 'pkg-config --cflags gl')
75 # Open GL/Mesa library path
76 -LGL = /usr/local/lib
77 +LGL = $(shell sh -c 'pkg-config --libs gl')
79 ## GLUT include and library paths
80 # include path
81 -IGLUT = /usr/local/include
82 +IGLUT = /usr/include
84 # library path
85 -LGLUT = /usr/local/lib
86 +LGLUT = /usr/lib
88 #### examples for SGI with glut installed in /usr/local/glut-3.3
89 ## GLUT include and library paths
90 @@ -540,10 +540,10 @@ LGLUT = /usr/local/lib
92 #### Red Hat 7.2 Linux example
93 ## GLUT include and library paths
94 -IGLUT = /usr/include
95 +#IGLUT = /usr/include
97 # Open GL/Mesa library path
98 -LGLUT = /usr/lib
99 +#LGLUT = /usr/lib
102 ################################################################