Ticket #21155: patch-ARB-makefile.diff

File patch-ARB-makefile.diff, 1.6 KB (added by matt.cottrell@…, 15 years ago)

Revised patch-ARB-Makefile.diff

  • Makefile

     
    202202XINCLUDES:=-I$(XHOME)/include
    203203
    204204ifdef DARWIN
    205         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
     205        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
    206206endif
    207207
    208208ifdef DARWIN
    209         XLIBS := -L/usr/OpenMotif/lib -lXm -L$(XHOME)/lib -lpng -lXt -lX11 -lXext -lXp -lc -lXmu -lXi
     209        XLIBS := -L$(PREFIX)/lib -lXm -L$(XHOME)/lib -lpng -lXt -lX11 -lXext -lXp -lc -lXmu -lXi
    210210        XLIBS += -lGLU -lGL -Wl,-dylib_file,$(OSX_FW_OPENGL)/libGL.dylib:$(OSX_FW_OPENGL)/libGL.dylib
    211211else
    212212        XLIBS:=-L$(XHOME)/$(CROSS_LIB) -lXm -lXpm -lXp -lXt -lXext -lX11
     
    225225
    226226GL_PNGLIBS := -L$(ARBHOME)/GL/glpng -lglpng_arb -lpng
    227227
    228  ifdef DARWIN
    229         GLEWLIB := -L/usr/lib -lGLEW -L$(OSX_SDK)/usr/X11/lib -lGLw
    230         GLUTLIB := -L$(XHOME)/lib -lglut
    231  else
    232         GLEWLIB := -lGLEW -lGLw
    233         GLUTLIB := -lglut
    234  endif
    235 
     228GLEWLIB := -lGLEW -lGLw
     229GLUTLIB := -lglut
     230 
    236231GL_LIBS := $(GL_LIB) $(GLEWLIB) $(GLUTLIB) $(GL_PNGLIBS)
    237232
    238233#XLIBS += $(GL_LIB)
     
    247242
    248243#---------------------- tiff lib:
    249244
    250 ifdef DARWIN
    251         TIFFLIBS := -L/usr/local/lib -ltiff -L$(OSX_FW_IMAGEIO) -lTIFF 
    252 else
    253         TIFFLIBS := -ltiff
    254 endif
     245TIFFLIBS := -ltiff
    255246
    256247#---------------------- basic libs:
    257248
     
    318309
    319310CTAGS := etags
    320311ifdef DARWIN
    321         XMKMF := /usr/X11/bin/xmkmf
     312        XMKMF := $(PREFIX)/bin/xmkmf
    322313else
    323314        XMKMF := /usr/bin/X11/xmkmf
    324315endif