Ticket #38053: molmol-build.diff
File molmol-build.diff, 5.4 KB (added by howarth@…, 12 years ago) |
---|
-
makedef
old new 1 TIFFDIR = @PREFIX@/lib 2 MESADIR = 3 JPEGDIR = @PREFIX@/lib 4 5 PNGDIR = @PREFIX@/lib 6 ZLIBDIR = /usr/lib 7 8 # If you configured any of the above three image formats, uncomment 9 # the following four lines, and delete the non-relevant parts if 10 # necessary, i. e. if you did not configure all three formats. 11 # 12 IMGDEF = -DTIFF_SUPPORT -DJPEG_SUPPORT -DPNG_SUPPORT 13 IMGINCL = -I$(TIFFDIR) -I$(JPEGDIR) -I$(PNGDIR) -I$(ZLIBDIR) 14 IMGLIB = $(TIFFDIR)/libtiff.dylib $(JPEGDIR)/libjpeg.dylib \ 15 $(PNGDIR)/libpng.dylib $(ZLIBDIR)/libz.dylib 16 17 # Some systems do not have the float versions of various math functions, 18 # uncomment the following lines if this is the case 19 20 MISSFUNC = -Dsqrtf=sqrt -Dexpf=exp -Dlogf=log \ 21 -Dsinf=sin -Dcosf=cos \ 22 -Dfabsf=fabs -DMAXINT=INT_MAX 23 24 # -Dceilf=ceil 25 26 CPP = /usr/bin/cpp 27 28 MCPPFLAGS = -DMAXINT=INT_MAX -I@PREFIX@/include -I$(TOP) 29 30 CC = @CC@ 31 32 MCFLAGS = -O -Wall 33 34 RANLIB = /usr/bin/ranlib 35 36 WAIT = /bin/sleep 2 37 38 SHELL = /bin/sh 39 40 SGDEVDIR = ogl x11 no pov rib vrml1 vrml2 ps fm 41 42 SGDEVDEF = -DSG_DEV_OGL -DSG_DEV_X11 -DSG_DEV_NO -DSG_DEV_POV -DSG_DEV_RIB -DSG_DEV_VRML1 -DSG_DEV_VRML2 -DSG_DEV_PS -DSG_DEV_CPS -DSG_DEV_FM3 -DSG_DEV_FM4 43 44 PUDEVDIR = motif tty 45 46 PUDEVDEF = -DPU_DEV_MOTIF -DPU_DEV_TTY 47 48 IODEVDIR = motx11 motogl ttyno 49 50 IODEVDEF = -DIO_DEV_MOTIF_X11 -DIO_DEV_MOTIF_OGL -DIO_DEV_TTY_NO 51 52 53 MOTIFDEF = -DFUNCPROTO 54 55 SYSLIB = -L/usr/lib -L@PREFIX@/lib \ 56 -lX11 -lXm -lGLU -lGL /System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib @PREFIX@/lib/libGLw.dylib \ 57 -lXmu -lXt -lXp -lXpm -lX11 -lXext -lSM -lICE -lm -lc -lmx 58 59 TOOLSDIR = $(TOP)/tools 60 SGDIR = $(TOP)/sg -
molmol
old new 1 #!/bin/ ksh1 #!/bin/zsh -f 2 2 # 3 3 # startup script for MOLMOL 4 4 # 5 5 6 MOLMOLHOME= /opt/group/MOLMOL6 MOLMOLHOME=@PREFIX@/share/molmol;MOLMOLDEV="Motif/OpenGL" 7 7 export MOLMOLHOME 8 8 export MOLMOLDEV 9 9 … … 11 11 osrel=`uname -r` 12 12 osmaj=`echo $osrel | awk -F. '{print $1}'` 13 13 osmin=`echo $osrel | awk -F. '{print $2}'` 14 localdev= 15 glxdev= 16 17 if [ $ostype = "IRIX" -o $ostype = "IRIX64" ]; then 18 if [ $osmaj -eq 6 -a $osmin -ge 2 -o $osmaj -gt 6 ]; then 19 arch=sgi6 20 localdev=Motif/OpenGL 21 glxdev=Motif/OpenGL 22 elif [ $osmaj -eq 5 -a $osmin -ge 3 -o $osmaj -gt 5 ]; then 23 arch=sgi5 24 localdev=Motif/OpenGL 25 glxdev=Motif/OpenGL 26 else 27 arch=sgi4 28 localdev=Motif/GL 29 fi 30 MONITOR=72HZ; export MONITOR 31 elif [ $ostype = "AIX" ]; then 32 arch=aix 33 localdev=Motif/OpenGL 34 elif [ $ostype = "HP-UX" ]; then 35 arch=hp 36 localdev=Motif/OpenGL 37 glxdev=Motif/OpenGL 38 elif [ $ostype = "OSF1" ]; then 39 arch=dec 40 localdev=Motif/OpenGL 41 elif [ $ostype = "Linux" ]; then 42 arch=lnx 43 localdev=Motif/OpenGL 44 elif [ $ostype = "SunOS" ]; then 45 if [ $osmaj -eq 5 -a $osmin -ge 4 -o $osmaj -gt 5 ]; then 46 arch=sol 47 localdev=Motif/OpenGL 48 else 49 arch=sun 50 fi 51 else 52 arch=unknown 53 fi 54 55 if [ $ostype = "SunOS" ]; then 56 xdpy=/usr/openwin/bin/xdpyinfo 57 elif [ $ostype = "HP-UX" ]; then 58 xdpy=/usr/contrib/bin/X11/xdpyinfo 59 else 60 xdpy=/usr/bin/X11/xdpyinfo 61 fi 62 14 localdev=Motif/OpenGL 15 glxdev=Motif/OpenGL 63 16 printUsage () { 64 17 echo "Usage: molmol -ht2as [-o dev] [-r range] [-f macro] files" 65 18 echo "" … … 209 162 fi 210 163 211 164 if [ "$input" = "-" -o -n "$nograph" ]; then 212 $MOLMOLHOME/molmol.$arch$xopt165 echo "LineBond solid 1 " >>| $startmacro ; @PREFIX@/share/molmol/src/main/molmol $xopt 213 166 else 214 $MOLMOLHOME/molmol.$arch $xopt < /dev/null167 echo "LineBond solid 1 " >>| $startmacro ; @PREFIX@/share/molmol/src/main/molmol $xopt 215 168 fi -
src/iodev/IODev.c
old new 44 44 #endif 45 45 #ifdef IO_DEV_MOTIF_OGL 46 46 extern void IOMotifOGLSetDev(void); 47 extern void IOMotifOGLDSetDev(void);48 47 #endif 49 48 #ifdef IO_DEV_MOTIF_XGL 50 49 extern void IOMotifXGLSetDev(void); … … 76 75 #endif 77 76 #ifdef IO_DEV_MOTIF_OGL 78 77 {"Motif/OpenGL", IOMotifOGLSetDev}, 79 {"Motif/OpenGLD", IOMotifOGLDSetDev},80 78 #endif 81 79 #ifdef IO_DEV_MOTIF_XGL 82 80 {"Motif/XGL", IOMotifXGLSetDev}, -
src/motogl/MotOGL.c
old new 31 31 #include <Xm/XmStrDefs.h> 32 32 33 33 #define BOOL MOTIF_BOOL /* hack to avoid naming conflict */ 34 #include < X11/GLw/GLwMDrawA.h>34 #include <GL/GLwMDrawA.h> 35 35 #undef BOOL 36 36 37 37 #include <sg.h> -
src/os/GFile.c
old new 38 38 const INT32 GFMagic = 0x3b7a12f9; 39 39 40 40 #ifndef __linux__ 41 extern char *sys_errlist[];42 41 #endif 43 42 extern int errno; 44 43 -
tools/include/values.h
old new 1 #include <math.h> 2 #include <limits.h> -
src/data/DataDist.c
old new 89 89 { 90 90 TabEntryInter *entryP = p; 91 91 92 return ((unsigned) entryP->atom1P + (unsigned) entryP->atom2P) % size;92 return ((unsigned)(uintptr_t) entryP->atom1P + (unsigned)(uintptr_t) entryP->atom2P) % size; 93 93 } 94 94 95 95 static int