Ticket #28276: patch-ARB-makefile.diff
File patch-ARB-makefile.diff, 2.2 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: … … 203 202 XINCLUDES:=-I$(XHOME)/include 204 203 205 204 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 OpenMotif205 XINCLUDES := -I$(OSX_FW)/OpenGL.framework/Headers -I$(OSX_SDK)/usr/X11/include -I$(OSX_SDK)/usr/include/krb5 -I$(OSX_FW)/GLUT.framework/Headers -I$(PREFIX)/include 207 206 endif 208 207 209 208 ifdef DARWIN 210 XLIBS := -L/usr/OpenMotif/lib -lXm -L$(XHOME)/lib -lpng -lXt -lX11 -lXext -lXp -lc -lXmu -lXi 209 #Explicit use of png12 because ARB breaks with png14 (http://www.libpng.org/pub/png/src/libpng-1.2.x-to-1.4.x-summary.txt) 210 XLIBS := -L$(PREFIX)/lib -lXm -lpng12 -lz -L$(XHOME)/lib -lXt -lX11 -lXext -lXp -lc -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