Ticket #30342: patch-ARB-makefile.diff
File patch-ARB-makefile.diff, 2.9 KB (added by matt.cottrell@…, 13 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 42 43 43 44 # ---------------------- [unconditionally used options] 44 45 45 GCC:=gcc 46 GPP:=g++ 47 CPPreal:=cpp 48 49 46 #GCC:=gcc <Now set in the Portfile> 47 #GPP:=g++ <Now set in the Portfile> 48 #CPPreal:=cpp <Now set in the Portfile> 50 49 51 50 # ---------------------- compiler version detection 52 51 … … 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 … … 186 185 dflags += -D$(MACH) # define machine 187 186 188 187 ifdef DARWIN 189 cflags += -no-cpp-precomp190 188 shared_cflags += -fno-common 191 189 else 192 190 dflags += $(shell getconf LFS_CFLAGS) … … 199 197 200 198 #---------------------- X11 location 201 199 202 XHOME:= /usr/X11R6200 XHOME:=$(PREFIX) 203 201 XINCLUDES:=-I$(XHOME)/include 204 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 OpenMotif204 XINCLUDES += -I$(OSX_FW)/OpenGL.framework/Headers -I$(OSX_SDK)/usr/include/krb5 -I$(OSX_FW)/GLUT.framework/Headers 207 205 endif 208 206 209 207 ifdef DARWIN 210 XLIBS := -L /usr/OpenMotif/lib -lXm -L$(XHOME)/lib -lpng -lXt -lX11 -lXext -lXp -lc-lXmu -lXi208 XLIBS := -L$(XHOME)/lib -lXm -lpng -lz -lXt -lX11 -lXext -lXp -lXmu -lXi 211 209 XLIBS += -lGLU -lGL -Wl,-dylib_file,$(OSX_FW_OPENGL)/libGL.dylib:$(OSX_FW_OPENGL)/libGL.dylib 212 210 else 213 211 XLIBS:=-L$(XHOME)/$(CROSS_LIB) -lXm -lXpm -lXp -lXt -lXext -lX11 … … 226 224 227 225 GL_PNGLIBS := -L$(ARBHOME)/GL/glpng -lglpng_arb -lpng 228 226 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 227 GLEWLIB := -lGLEW -lGLw 228 GLUTLIB := -lglut 229 237 230 GL_LIBS := $(GL_LIB) $(GLEWLIB) $(GLUTLIB) $(GL_PNGLIBS) 238 231 239 232 #XLIBS += $(GL_LIB) … … 248 241 249 242 #---------------------- tiff lib: 250 243 251 ifdef DARWIN 252 TIFFLIBS := -L/usr/local/lib -ltiff -L$(OSX_FW_IMAGEIO) -lTIFF 253 else 254 TIFFLIBS := -ltiff 255 endif 244 TIFFLIBS := -ltiff 256 245 257 246 #---------------------- basic libs: 258 247 … … 318 307 # other used tools 319 308 320 309 CTAGS := etags 321 ifdef DARWIN 322 XMKMF := /usr/X11/bin/xmkmf 323 else 324 XMKMF := /usr/bin/X11/xmkmf 325 endif 310 XMKMF := $(PREFIX)/bin/xmkmf 326 311 MAKEDEPEND_PLAIN = makedepend 327 312 328 313 MAKEDEPEND = $(FORCEMASK);$(MAKEDEPEND_PLAIN)