Ticket #33756: patch-ARB-makefile.2.diff
File patch-ARB-makefile.2.diff, 3.4 KB (added by matt.cottrell@…, 13 years ago) |
---|
-
Makefile
old new 42 42 43 43 # ---------------------- [unconditionally used options] 44 44 45 GCC:=gcc 46 GPP:=g++ 47 CPPreal:=cpp 48 45 ifdef DARWIN 46 #GCC:=gccÊ Ê Ê <Now set in the Portfile> 47 #GPP:=g++Ê Ê Ê <Now set in the Portfile> 48 #CPPreal:=cppÊ <Now set in the Portfile> 49 else 50 GCC:=gcc 51 GPP:=g++ 52 CPPreal:=cpp 53 endif 49 54 50 55 51 56 # ---------------------- compiler version detection … … 71 76 #---------------------- define special directories for non standard builds 72 77 73 78 ifdef DARWIN 74 OSX_SDK:=/Developer/SDKs/MacOSX10.5.sdk 75 OSX_FW:=/System/Library/Frameworks76 OSX_FW_OPENGL:=$(OSX_FW)/OpenGL.framework/Versions/A/Libraries77 OSX_FW_IMAGEIO:=$(OSX_FW)/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources79 OSX_FW:=/System/Library/Frameworks 80 OSX_FW_OPENGL:=$(OSX_FW)/OpenGL.framework/Versions/A/Libraries 81 OSX_FW_GLUT:=$(OSX_FW)/GLUT.framework/Versions/A/Libraries 82 OSX_FW_IMAGEIO:=$(OSX_FW)/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources 78 83 endif 79 84 80 85 #---------------------- … … 186 191 dflags += -D$(MACH) # define machine 187 192 188 193 ifdef DARWIN 189 cflags += -no-cpp-precomp190 194 shared_cflags += -fno-common 191 195 else 192 196 dflags += $(shell getconf LFS_CFLAGS) … … 199 203 200 204 #---------------------- X11 location 201 205 202 XHOME:=/usr/X11R6 206 ifdef DARWIN 207 XHOME:=$(PREFIX) 208 else 209 XHOME:=/usr/X11R6 210 endif 211 212 203 213 XINCLUDES:=-I$(XHOME)/include 204 214 205 215 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 OpenMotif216 XINCLUDES += -I$(OSX_FW)/GLUT.framework/Headers -I$(OSX_FW)/OpenGL.framework/Headers -I$(OSX_SDK)/usr/include/krb5 207 217 endif 208 218 209 219 ifdef DARWIN 210 XLIBS := -L/usr/OpenMotif/lib -lXm -L$(XHOME)/lib -lpng -lXt -lX11 -lXext -lc -lXmu -lXi 211 XLIBS += -lGLU -lGL -Wl,-dylib_file,$(OSX_FW_OPENGL)/libGL.dylib:$(OSX_FW_OPENGL)/libGL.dylib 220 XLIBS := -L$(XHOME)/lib -lXm -lpng -lz -lXt -lX11 -lXext -lXp -lXmu -lXi 221 XLIBS += -Wl,-dylib_file,$(OSX_FW_OPENGL)/libGL.dylib:$(OSX_FW_OPENGL)/libGL.dylib 222 XLIBS += -Wl,-dylib_file,$(OSX_FW_OPENGL)/libGLU.dylib:$(OSX_FW_OPENGL)/libGLU.dylib 212 223 else 213 224 XLIBS:=-L$(XHOME)/$(CROSS_LIB) -lXm -lXpm -lXt -lXext -lX11 214 225 endif … … 226 237 227 238 GL_PNGLIBS := -L$(ARBHOME)/GL/glpng -lglpng_arb -lpng 228 239 229 ifdef DARWIN230 GLEWLIB := -L/usr/lib -lGLEW -L$(OSX_SDK)/usr/X11/lib -lGLw231 GLUTLIB := -L$(XHOME)/lib -lglut232 else233 240 GLEWLIB := -lGLEW -lGLw 234 GLUTLIB := -lglut 235 endif 241 GLUTLIB := -glut 236 242 237 243 GL_LIBS := $(GL_LIB) $(GLEWLIB) $(GLUTLIB) $(GL_PNGLIBS) 238 244 … … 248 254 249 255 #---------------------- tiff lib: 250 256 251 ifdef DARWIN 252 TIFFLIBS := -L/usr/local/lib -ltiff -L$(OSX_FW_IMAGEIO) -lTIFF 253 else 254 TIFFLIBS := -ltiff 255 endif 257 TIFFLIBS := -ltiff 256 258 257 259 #---------------------- basic libs: 258 260 … … 318 320 # other used tools 319 321 320 322 CTAGS := etags 323 321 324 ifdef DARWIN 322 XMKMF := /usr/X11/bin/xmkmf325 XMKMF := $(PREFIX)/bin/xmkmf 323 326 else 324 327 XMKMF := /usr/bin/X11/xmkmf 325 328 endif 329 326 330 MAKEDEPEND_PLAIN = makedepend 327 331 328 332 MAKEDEPEND = $(FORCEMASK);$(MAKEDEPEND_PLAIN) … … 532 536 ARBDBPP_LIB=-lARBDBPP 533 537 534 538 LIBS = $(ARBDB_LIB) $(SYSLIBS) 535 GUI_LIBS = $(LIBS) -lAW -lAWT $(XLIBS) 539 540 ifdef DARWIN 541 GUI_LIBS = -framework GLUT -framework OpenGL $(LIBS) -lAW -lAWT $(XLIBS) 542 else 543 GUI_LIBS = $(LIBS) -lAW -lAWT $(XLIBS) 544 endif 536 545 537 546 LIBPATH = -L$(ARBHOME)/LIBLINK 538 547