aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/irit
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/irit')
-rw-r--r--graphics/irit/Makefile8
-rw-r--r--graphics/irit/distinfo1
-rw-r--r--graphics/irit/files/patch-irender_main.c38
3 files changed, 30 insertions, 17 deletions
diff --git a/graphics/irit/Makefile b/graphics/irit/Makefile
index 0cdc9575f2b5..beb0c373ad74 100644
--- a/graphics/irit/Makefile
+++ b/graphics/irit/Makefile
@@ -52,12 +52,6 @@ PLIST_SUB= WITH_MOTIF=""
PKGMESSAGE= ${WRKDIR}/pkg-message
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} != "i386"
-BROKEN= "Does not compile on !i386"
-.endif
-
.ifndef (WITH_MOTIF)
pre-everything::
@${ECHO_CMD} ""
@@ -99,4 +93,4 @@ post-install:
@(${SED} -e 's|%%DATADIR%%|${DATADIR}|' \
<pkg-message >${PKGMESSAGE} && ${CAT} ${PKGMESSAGE})
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/irit/distinfo b/graphics/irit/distinfo
index cb69c9a06e1b..8d52a2d83698 100644
--- a/graphics/irit/distinfo
+++ b/graphics/irit/distinfo
@@ -1 +1,2 @@
MD5 (irit-sm.zip) = e57cfb11aec94f1e592fc57b4bbdc7e2
+SIZE (irit-sm.zip) = 3128944
diff --git a/graphics/irit/files/patch-irender_main.c b/graphics/irit/files/patch-irender_main.c
index a1fb7ad05815..f247ad4fcb92 100644
--- a/graphics/irit/files/patch-irender_main.c
+++ b/graphics/irit/files/patch-irender_main.c
@@ -1,15 +1,19 @@
---- irender/main.c.orig Mon Feb 2 13:53:42 2004
-+++ irender/main.c Mon Feb 2 14:05:03 2004
-@@ -13,7 +13,7 @@
+--- irender/main.c.orig Thu Dec 25 18:34:39 2003
++++ irender/main.c Fri Mar 26 08:51:39 2004
+@@ -12,9 +12,9 @@
+ #include "parser.h"
#include "config.h"
- #ifdef __FreeBSD__
+-#ifdef __FreeBSD__
-#include <floatingpoint.h>
+-#endif
++#if (defined(__FreeBSD__) && defined(__i386__))
+#include <ieeefp.h>
- #endif
++#endif /* __FreeBSD__ && __i386__ */
/* Contains all configuration options. Subject to change by config file and */
-@@ -48,15 +48,15 @@
+ /* and command line parameters. */
+@@ -48,16 +48,16 @@
*****************************************************************************/
int main(int argc, char *argv[])
{
@@ -22,10 +26,24 @@
*MatrixFiles[] = {NULL, NULL};
IRndrPtrType Rend;
BoolType DoClipping;
-+
-+#ifdef __FreeBSD__
-+ fpsetmask(FP_X_INV | FP_X_DZ);
-+#endif /* __FreeBSD__ */
++#if (defined(__FreeBSD__) && defined(__i386__))
++ fpsetmask(FP_X_INV | FP_X_DZ);
++#endif /* __FreeBSD__ && __i386__ */
++
DoClipping = TRUE;
GlblLastTime = IritCPUTime(FALSE);
+ InitOptions();
+@@ -129,10 +129,10 @@
+ IRndrDestroy(Rend);
+ TakeTime("Z-Buffer dump");
+
+-#ifdef __FreeBSD__
++#if (defined(__FreeBSD__) && defined(__i386__))
+ fpresetsticky(FP_X_INV | FP_X_OFL | FP_X_UFL |
+ FP_X_DZ | FP_X_IMP | FP_X_DNML);
+-#endif /* __FreeBSD__ */
++#endif /* __FreeBSD__ && __i386__ */
+
+ return 0;
+ }