diff options
author | Maho Nakata <maho@FreeBSD.org> | 2007-03-24 22:16:05 +0000 |
---|---|---|
committer | Maho Nakata <maho@FreeBSD.org> | 2007-03-24 22:16:05 +0000 |
commit | a542225cc628896ce40ebbf54060b73a990d06f5 (patch) | |
tree | f527aba97c03b69257dac5250bbfe4f16814b1b5 /graphics/inventor | |
parent | 4b85a44a4af0d50fa69b017fe83144b909dca2ae (diff) | |
download | ports-a542225cc628896ce40ebbf54060b73a990d06f5.tar.gz ports-a542225cc628896ce40ebbf54060b73a990d06f5.zip |
Notes
Diffstat (limited to 'graphics/inventor')
-rw-r--r-- | graphics/inventor/Makefile | 2 | ||||
-rw-r--r-- | graphics/inventor/files/patch-open.c | 29 |
2 files changed, 30 insertions, 1 deletions
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 <stdlib.h> + #include "image.h" + ++#ifdef __FreeBSD__ ++ #include <machine/endian.h> ++ #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); |