diff options
Diffstat (limited to 'graphics/xrml/files')
-rw-r--r-- | graphics/xrml/files/patch-Config.site | 88 | ||||
-rw-r--r-- | graphics/xrml/files/patch-FILTERS-cso-importer.C | 11 | ||||
-rw-r--r-- | graphics/xrml/files/patch-PROGS-Makefile | 11 |
3 files changed, 110 insertions, 0 deletions
diff --git a/graphics/xrml/files/patch-Config.site b/graphics/xrml/files/patch-Config.site new file mode 100644 index 000000000000..9c1cd76a67a7 --- /dev/null +++ b/graphics/xrml/files/patch-Config.site @@ -0,0 +1,88 @@ +--- Config.site.orig Fri Jan 31 19:45:18 2003 ++++ Config.site Fri Jan 31 19:46:38 2003 +@@ -1,8 +1,8 @@ +-# Configuration data for Linux ++# Configuration data for FreeBSD + + # with GCC: +-CC = gcc +-CXX = g++ ++CC = %%CC%% ++CXX = %%CXX%% + MAKEDEPEND = gcc -M + PROFLAGS = # -pg # for profiling + DEBUGFLAGS = -g # for debugging +@@ -10,19 +10,19 @@ + # If you have a processor of a type prior to a Pentium PRO or + # Pentium II, omit the -march=i686 flag or you'll get an invalid operation + # exception when you start RenderPark. +-OPTFLAGS = -O3 -Wall -pedantic -Wno-long-long -mieee-fp -malign-double -march=i686 ++OPTFLAGS = %%CXXFLAGS%% #-O3 -Wall -pedantic -Wno-long-long -mieee-fp -malign-double -march=i686 + CXXFLAGS = # C++ specific flags + + # no ranlib command on Linux. Use 'touch' instead. +-RANLIB = touch ++RANLIB = ranlib + + # See 0COMPILATIONFLAGS to see what flags you can set if you care. + EXTRAFLAGS = -DDEFAULT_GAMMA=2.2 -DNOPOOLS + + ################################################################ + # uncomment the following definitions in order to make shared libraries +-#MKLIB = mklib.linux +-#MKLIBFLAGS = -fPIC ++MKLIB = mklib.freebsd ++MKLIBFLAGS = -fPIC + #LIBEXT = so + + ################################################################ +@@ -48,8 +48,8 @@ + + # OpenGL include files and library appear to be in /usr/include + # and /usr/lib normally on recent Linux systems +-DRIVERFLAGS = -I/usr/include $(HWFLAGS) +-DRIVERLIBS = -L/usr/lib -lGLU -lGL ++DRIVERFLAGS = -I${X11BASE}/include $(HWFLAGS) ++DRIVERLIBS = -L${X11BASE}/lib -lGLU -lGL + + # Mesa (free OpenGL-like library: www.mesa3d.org) + # On recent systems, 'MesaGL' is installed as 'GL' and 'MesaGLU' as 'GLU' and +@@ -75,14 +75,14 @@ + ################################################################ + # X window system flags and files: + +-X11HOME = /usr/X11R6 ++X11HOME = ${X11BASE} + XINCLUDES = -I$(X11HOME)/include + XLIBS = -L$(X11HOME)/lib -lXt -lXmu -lX11 $(CCMALLOCLIB) + # CCMALLOCLIB = -lccmalloc -ldl + +-# MOTIFHOME = /usr/X11R6 ++MOTIFHOME = ${X11BASE} + # lesstif: +-MOTIFHOME = /usr/X11R6/LessTif/Motif1.2 ++#MOTIFHOME = /usr/X11R6/LessTif/Motif1.2 + # MOTIFHOME = /usr/local/Motif + MOTIFINCLUDES = -I$(MOTIFHOME)/include + # -lXpm library necessary for Motif >=2.0, not for Motif <2.0 +@@ -93,7 +93,7 @@ + # TIFF support + # if you don't want/need TIFF support, uncomment all the following lines + #TIFFHOME = /usr/local/graphics +-TIFFHOME = /usr ++TIFFHOME = ${LOCALBASE} + + # flags: -DNO_TIFF if you have no TIFF library, + # -DOLD_TIFF if you have an old TIFF library without the high dynamic +@@ -111,9 +111,9 @@ + + # Some tiff installation require that you also link with the jpeg and + # zlib libraries. +-TIFFLIB = -L$(TIFFHOME)/lib -ltiff -ljpeg -lz ++TIFFLIB = -L$(TIFFHOME)/lib -ltiff + + + ################################################################ + # C++/so import filter +-DLLIB = -ldl ++#DLLIB = -ldl diff --git a/graphics/xrml/files/patch-FILTERS-cso-importer.C b/graphics/xrml/files/patch-FILTERS-cso-importer.C new file mode 100644 index 000000000000..c57215c632f6 --- /dev/null +++ b/graphics/xrml/files/patch-FILTERS-cso-importer.C @@ -0,0 +1,11 @@ +--- FILTERS/cso/importer.C.orig Wed Mar 14 20:30:21 2001 ++++ FILTERS/cso/importer.C Fri Jan 31 20:11:34 2003 +@@ -26,7 +26,7 @@ + // find the address of the routine called "import" + void (*import)(void*, char**) = (void (*)(void*, char**))dlsym(handle, "import"); + // void (*import)(xrml::world*, char**) = (void (*)(xrml::world*, char**))dlsym(handle, "import__FPQ24xrml5worldPPc"); +- char *error = dlerror(); ++ const char *error = dlerror(); + if (error) { + Error(NULL, "%s", error); + return false; diff --git a/graphics/xrml/files/patch-PROGS-Makefile b/graphics/xrml/files/patch-PROGS-Makefile new file mode 100644 index 000000000000..6e54843052f9 --- /dev/null +++ b/graphics/xrml/files/patch-PROGS-Makefile @@ -0,0 +1,11 @@ +--- PROGS/Makefile~ Thu Feb 22 23:55:52 2001 ++++ PROGS/Makefile Tue Jul 23 18:37:32 2002 +@@ -15,7 +15,7 @@ + # the toy subdirectory contains a sample program using the toy + # import and export filter. + +-SUBDIRS = vrmlint vrmlconv vrmlview ++SUBDIRS = vrmldump vrmlint vrmlconv vrmlview + + #default target: compile + all: progs |