diff --git a/graphics/inventor/Makefile b/graphics/inventor/Makefile index b6727edff14f..f7ccd2c63d4a 100644 --- a/graphics/inventor/Makefile +++ b/graphics/inventor/Makefile @@ -7,7 +7,7 @@ PORTNAME= inventor PORTVERSION= 2.1.5.p10 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics MASTER_SITES= ftp://oss.sgi.com/projects/inventor/download/ DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p/-/} diff --git a/graphics/inventor/files/patch-open.c b/graphics/inventor/files/patch-open.c new file mode 100644 index 000000000000..a9a735a84e55 --- /dev/null +++ b/graphics/inventor/files/patch-open.c @@ -0,0 +1,29 @@ +--- libimage/open.c.orig Sat Oct 14 12:46:09 2000 ++++ libimage/open.c Sat Mar 24 20:27:50 2007 +@@ -8,6 +8,17 @@ + #include + #include "image.h" + ++#ifdef __FreeBSD__ ++ #include ++ #if BYTE_ORDER == LITTLE_ENDIAN ++ #define DOREV 1 ++ #else ++ #define DOREV 0 ++ #endif ++#else ++ #define DOREV 0 ++#endif ++ + void cvtlongs(int buffer[],int n); + void cvtimage(int buffer[]); + void i_seterror(void (*func)()); +@@ -80,7 +91,7 @@ + image->max = 0; + isetname(image,"no name"); + image->wastebytes = 0; +- image->dorev = 0; ++ image->dorev = DOREV; + if (write(f,image,sizeof(IMAGE)) != sizeof(IMAGE)) { + free(image); + close(f);