View | Details | Raw Unified | Return to bug 63591
Collapse All | Expand All

(-)games/amphetamine/Makefile (-7 / +1 lines)
Lines 24-37 Link Here
24
24
25
DATAVERSION=	0.8.6
25
DATAVERSION=	0.8.6
26
26
27
.include <bsd.port.pre.mk>
28
29
.if ${ARCH} != "i386"
30
BROKEN=		"Does not compile on !i386"
31
.endif
32
33
post-install:
27
post-install:
34
	@cd ${WRKDIR}/amph && ${FIND} . | \
28
	@cd ${WRKDIR}/amph && ${FIND} . | \
35
		${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/amph
29
		${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/amph
36
30
37
.include <bsd.port.post.mk>
31
.include <bsd.port.mk>
(-)games/amphetamine/files/patch-ab (-10 / +14 lines)
Lines 1-27 Link Here
1
--- src/Main.cpp.orig	Mon Jun  5 14:34:38 2000
1
--- src/Main.cpp.orig	Sun Mar 24 17:49:09 2002
2
+++ src/Main.cpp	Mon Jun  5 14:34:30 2000
2
+++ src/Main.cpp	Mon Mar  1 19:51:09 2004
3
@@ -1,3 +1,5 @@
3
@@ -1,3 +1,7 @@
4
+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) )
4
+#include <floatingpoint.h>
5
+#include <floatingpoint.h>
6
+#endif
5
+
7
+
6
 #include "System.hpp"
8
 #include "System.hpp"
7
 #include "Appl.hpp"
9
 #include "Appl.hpp"
8
 #include "Clut.hpp"
10
 #include "Clut.hpp"
9
@@ -74,7 +76,7 @@
11
@@ -75,6 +79,9 @@
10
 	my_argc = argc;
11
 	my_argv = argv;
12
 	my_argv = argv;
12
 	if (checkCommandLine()) return 0;
13
 	if (checkCommandLine()) return 0;
13
-	
14
 	
15
+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) )
14
+	fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV));	
16
+	fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV));	
17
+#endif
15
 	gApplication = new CApplication();
18
 	gApplication = new CApplication();
16
 	gApplication->InitGraphics();
19
 	gApplication->InitGraphics();
17
 	gApplication->LoadData();
20
 	gApplication->LoadData();
18
@@ -82,6 +84,9 @@
21
@@ -83,5 +90,10 @@
19
 	gApplication->UnloadData();
20
 	gApplication->Quit();
22
 	gApplication->Quit();
21
 	delete gApplication;
23
 	delete gApplication;
22
+
24
 
25
+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) )
23
+	fpresetsticky(FP_X_DZ|FP_X_INV);
26
+	fpresetsticky(FP_X_DZ|FP_X_INV);
24
+	fpsetmask(FP_X_DZ|FP_X_INV);
27
+	fpsetmask(FP_X_DZ|FP_X_INV);
25
 
28
+#endif
29
+	
26
 	return 0;
30
 	return 0;
27
 }
31
 }

Return to bug 63591