diff options
Diffstat (limited to 'graphics/inventor/files/patch-ivcommondefs')
| -rw-r--r-- | graphics/inventor/files/patch-ivcommondefs | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/graphics/inventor/files/patch-ivcommondefs b/graphics/inventor/files/patch-ivcommondefs new file mode 100644 index 000000000000..bda11238ef45 --- /dev/null +++ b/graphics/inventor/files/patch-ivcommondefs @@ -0,0 +1,82 @@ +--- make/ivcommondefs.orig Sat Jul 12 07:40:54 2003 ++++ make/ivcommondefs Sun Aug 3 15:10:28 2003 +@@ -49,9 +49,9 @@ + + ifeq ($(usingLinux), 1) + +-CC = /usr/bin/gcc +-C++ = /usr/bin/g++ +-LD = /usr/bin/g++ ++CC = %%CC%% ++C++ = %%CXX%% ++LD = %%CXX%% + + INSTALL = /usr/bin/install + +@@ -74,7 +74,7 @@ + LCXXOPTS += $(LINUXOPTS) + LCOPTS += $(LINUXOPTS) + +-X11DIR = /usr/X11R6 ++X11DIR = ${X11BASE} + X11INCDIR = $(X11DIR)/include + X11LIBDIR = $(X11DIR)/lib + +@@ -86,6 +86,10 @@ + + endif + ++ifeq ($(usingFreeBSD), 1) ++LCINCS += -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2 ++LCXXINCS += -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2 ++endif + + + # +@@ -131,9 +135,9 @@ + # Determine optimization from LIBTYPE. + # + +-OPTIMIZER = -O -DNDEBUG ++OPTIMIZER = %%CXXFLAGS%% -DNDEBUG + ifneq (, $(findstring debug, $(LIBTYPE))) +-OPTIMIZER = -g ++OPTIMIZER = %%CXXFLAGS%% -g -DDEBUG + endif + + +@@ -158,6 +162,10 @@ + # Font library directories. + # + ++ifeq ($(usingFreeBSD), 1) ++FREETYPE=1 ++endif ++ + FLDIR = $(IVDEPTH)/libFL/src + FLLIB = -lFL + ifdef FREETYPE +@@ -183,7 +191,12 @@ + # Inventor install directories. + # + ++ifeq ($(usingFreeBSD), 1) ++IVPREFIX = ${X11BASE} ++else + IVPREFIX = /usr ++endif ++ + LCXXOPTS += -DIVPREFIX=\"$(IVPREFIX)\" + LCOPTS += -DIVPREFIX=\"$(IVPREFIX)\" + +@@ -213,5 +226,10 @@ + else + LLDDSOOPTS += -L$(IVLIBDIR) + LLDOPTS += -L$(IVLIBDIR) ++endif ++ ++ifeq ($(usingFreeBSD), 1) ++LLDOPTS += -L$(IVDEPTH)/lib -L$(IVDEPTH)/libSoXt ++LLDDSOOPTS += -L$(IVDEPTH)/lib -L$(IVDEPTH)/libSoXt -L$(LOCALBASE)/lib + CXXDSOOPTS += -L$(IVLIBDIR) + endif |
