Ticket #28276: patch-ARB-makefile.3.diff
File patch-ARB-makefile.3.diff, 2.5 KB (added by matt.cottrell@…, 14 years ago) |
---|
-
Makefile
old new 31 31 # configurable in config.makefile 32 32 # 33 33 # ----------------------------------------------------- 34 34 35 # Read configuration 35 36 include config.makefile 36 37 37 38 ifeq ($(LD_LIBRARY_PATH),'') 38 LD_LIBRARY_PATH:=${ARBHOME}/lib39 LD_LIBRARY_PATH:=${ARBHOME}/lib 39 40 endif 40 41 41 42 FORCEMASK = umask 002 … … 46 47 GPP:=g++ 47 48 CPPreal:=cpp 48 49 49 50 51 50 # ---------------------- compiler version detection 52 51 53 52 # supported compiler versions: … … 71 70 #---------------------- define special directories for non standard builds 72 71 73 72 ifdef DARWIN 74 OSX_SDK:= /Developer/SDKs/MacOSX10.5.sdk73 OSX_SDK:= 75 74 OSX_FW:=/System/Library/Frameworks 76 75 OSX_FW_OPENGL:=$(OSX_FW)/OpenGL.framework/Versions/A/Libraries 77 76 OSX_FW_IMAGEIO:=$(OSX_FW)/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources … … 200 199 #---------------------- X11 location 201 200 202 201 XHOME:=/usr/X11R6 203 XINCLUDES:=-I$(XHOME)/include204 202 205 203 ifdef DARWIN 206 XINCLUDES := -I/sw/include -I$(OSX_SDK)/usr/X11/include -I$(OSX_SDK)/usr/include/krb5 -I/usr/OpenMotif/include #Snow Leopard couldn't find OpenMotif 204 XINCLUDES := -I$(PREFIX)/include -I$(OSX_FW)/OpenGL.framework/Headers -I$(OSX_SDK)/usr/X11/include -I$(OSX_SDK)/usr/include/krb5 -I$(OSX_FW)/GLUT.framework/Headers 205 else 206 XINCLUDES:=-I$(XHOME)/include 207 207 endif 208 208 209 209 ifdef DARWIN 210 XLIBS := -L /usr/OpenMotif/lib -lXm -L$(XHOME)/lib -lpng -lXt -lX11 -lXext -lXp -lc-lXmu -lXi210 XLIBS := -L$(PREFIX)/lib -lXm -lpng -lz -lXt -lX11 -lXext -lXp -lXmu -lXi 211 211 XLIBS += -lGLU -lGL -Wl,-dylib_file,$(OSX_FW_OPENGL)/libGL.dylib:$(OSX_FW_OPENGL)/libGL.dylib 212 212 else 213 213 XLIBS:=-L$(XHOME)/$(CROSS_LIB) -lXm -lXpm -lXp -lXt -lXext -lX11 … … 226 226 227 227 GL_PNGLIBS := -L$(ARBHOME)/GL/glpng -lglpng_arb -lpng 228 228 229 ifdef DARWIN 230 GLEWLIB := -L/usr/lib -lGLEW -L$(OSX_SDK)/usr/X11/lib -lGLw 231 GLUTLIB := -L$(XHOME)/lib -lglut 232 else 233 GLEWLIB := -lGLEW -lGLw 234 GLUTLIB := -lglut 235 endif 236 229 GLEWLIB := -lGLEW -lGLw 230 GLUTLIB := -lglut 231 237 232 GL_LIBS := $(GL_LIB) $(GLEWLIB) $(GLUTLIB) $(GL_PNGLIBS) 238 233 239 234 #XLIBS += $(GL_LIB) … … 248 243 249 244 #---------------------- tiff lib: 250 245 251 ifdef DARWIN 252 TIFFLIBS := -L/usr/local/lib -ltiff -L$(OSX_FW_IMAGEIO) -lTIFF 253 else 254 TIFFLIBS := -ltiff 255 endif 246 TIFFLIBS := -ltiff 256 247 257 248 #---------------------- basic libs: 258 249 … … 319 310 320 311 CTAGS := etags 321 312 ifdef DARWIN 322 XMKMF := /usr/X11/bin/xmkmf313 XMKMF := $(PREFIX)/bin/xmkmf 323 314 else 324 315 XMKMF := /usr/bin/X11/xmkmf 325 316 endif