diff options
Diffstat (limited to 'patches')
| -rw-r--r-- | patches/OpenCSG-1.3.2-MacOSX-port.patch | 70 | 
1 files changed, 70 insertions, 0 deletions
diff --git a/patches/OpenCSG-1.3.2-MacOSX-port.patch b/patches/OpenCSG-1.3.2-MacOSX-port.patch new file mode 100644 index 0000000..3d81dc4 --- /dev/null +++ b/patches/OpenCSG-1.3.2-MacOSX-port.patch @@ -0,0 +1,70 @@ +diff --git a/example/example.pro b/example/example.pro +index 8891a28..5cb5e81 100644 +--- a/example/example.pro ++++ b/example/example.pro +@@ -2,9 +2,16 @@ TEMPLATE	= app + TARGET		= opencsgexample +  + CONFIG	 	+= opengl warn_on release +-INCLUDEPATH += ../glew/include ../include +- +-LIBS        += -L../lib -lopencsg -lglut -L../glew/lib -lGLEW ++INCLUDEPATH     += ../include ++LIBS            += -L../lib -lopencsg -lGLEW ++macx { ++  INCLUDEPATH   += /opt/local/include ++  LIBS          += -framework GLUT -L/opt/local/lib ++} ++else { ++  INCLUDEPATH   += ../glew/include ++  LIBS          += -lglut -L../glew/lib ++} +  + HEADERS		= displaylistPrimitive.h + SOURCES		= displaylistPrimitive.cpp main.cpp +diff --git a/opencsg.pro b/opencsg.pro +index b56e622..5cf2d6d 100644 +--- a/opencsg.pro ++++ b/opencsg.pro +@@ -1,2 +1,2 @@ + TEMPLATE = subdirs +-SUBDIRS  = src example ++SUBDIRS  = src +diff --git a/src/src.pro b/src/src.pro +index 4843a12..04d3f4d 100644 +--- a/src/src.pro ++++ b/src/src.pro +@@ -1,10 +1,31 @@ + TEMPLATE	= lib + TARGET		= opencsg + VERSION     = 1.3.2 +-DESTDIR     = ../lib +  + CONFIG		+= opengl warn_on release +-INCLUDEPATH += ../include ../glew/include ../ ++INCLUDEPATH += ../include ../ ++ ++# Optionally specify deployment location using the  ++# MACOSX_DEPLOY_DIR env. variable ++DEPLOYDIR = $$(MACOSX_DEPLOY_DIR) ++ ++!isEmpty(DEPLOYDIR) { ++  message("Deploy") ++  INSTALLDIR     = $$(MACOSX_DEPLOY_DIR) ++  INCLUDEPATH += $$(MACOSX_DEPLOY_DIR)/include ++  LIBS += -L$$(MACOSX_DEPLOY_DIR)/lib -lGLEW ++  CONFIG += absolute_library_soname ++  headers.files = ../include/opencsg.h ++  headers.path = $$INSTALLDIR/include ++  INSTALLS += target headers ++  target.path = $$INSTALLDIR/lib ++} ++else { ++  DESTDIR = ../lib ++  INCLUDEPATH += ../glew/include ++  INSTALLS += target ++  target.path = $$DESTDIR ++} +  + HEADERS		= ../include/opencsg.h \ + 		  opencsgConfig.h \  | 
