updated on Sun Jan 22 20:01:29 UTC 2012
[aur-mirror.git] / seismicunix / seismicunix-43.1-makefile-config.patch
blob5cd5d573e49f2b53ec3170f77276260bc5a53a03
1 diff --git a/Makefile.config b/Makefile.config
2 index cc4f318..dc2fed5 100644
3 --- a/Makefile.config
4 +++ b/Makefile.config
5 @@ -42,7 +42,7 @@ CWP_FLAGS = $(LARGE_FILE_FLAG) $(ENDIANFLAG) $(XDRFLAG) $(LINEHDRFLAG)
6 # system stuff
7 #-----------------------------------------------------------------------
9 -SHELL = /bin/sh
10 +SHELL = /bin/bash
11 ROOT = $(CWPROOT)
13 LN = ln # this needs to be changed to cp for FAT32 filesystems
14 @@ -59,30 +59,14 @@ POSTLFLAGS =
15 # use both X11 path conventions
16 #-----------------------------------------------------------------------
18 -IX11 = /usr/X11/include
19 -LX11 = /usr/X11/lib
20 -IMOTIF = /usr/X11R6/include
21 -LMOTIF = /usr/X11R6/lib
22 +IX11 = /usr/include
23 +LX11 = /usr/lib
24 +IMOTIF = $(shell sh -c 'motif-config --cflags')
25 +LMOTIF = $(shell sh -c 'motif-config --libs')
27 LD_LIBRARY_PATH += $(CWPROOT)/lib:${LX11}:${LMOTIF}
29 #-----------------------------------------------------------------------
30 -# Sun/Oracle compilers comment out the Gnu compiler section to use
31 -#-----------------------------------------------------------------------
33 -CPP = cpp
35 -CC = cc
36 -OPTC = -g -Xc -xc99
37 -CFLAGS = -I$I $(OPTC) $(CWP_FLAGS) -D_BSD_SOURCE -D_POSIX_SOURCE
39 -FC = f90 -f77
40 -OPTF = -g
41 -FFLAGS =
43 -C++FLAGS = -I$I $(OPTC) $(CWP_FLAGS)
45 -#-----------------------------------------------------------------------
46 # Gnu compilers by default just because they are the most common
47 #-----------------------------------------------------------------------