View | Details | Raw Unified | Return to bug 63875
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" && ${ARCH} != "alpha"
30
BROKEN=		"Does not compile on !i386 and !alpha"
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 (-3 / +3 lines)
Lines 1-7 Link Here
1
--- src/Main.cpp.orig	Sun Mar 24 17:49:09 2002
1
--- src/Main.cpp.orig	Sun Mar 24 17:49:09 2002
2
+++ src/Main.cpp	Mon Mar  1 19:51:09 2004
2
+++ src/Main.cpp	Mon Mar  1 19:51:09 2004
3
@@ -1,3 +1,7 @@
3
@@ -1,3 +1,7 @@
4
+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) )
4
+#if defined(__FreeBSD__) && defined(__i386__)
5
+#include <floatingpoint.h>
5
+#include <floatingpoint.h>
6
+#endif
6
+#endif
7
+
7
+
Lines 12-18 Link Here
12
 	my_argv = argv;
12
 	my_argv = argv;
13
 	if (checkCommandLine()) return 0;
13
 	if (checkCommandLine()) return 0;
14
 	
14
 	
15
+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) )
15
+#if defined(__FreeBSD__) && defined(__i386__)
16
+	fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV));	
16
+	fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV));	
17
+#endif
17
+#endif
18
 	gApplication = new CApplication();
18
 	gApplication = new CApplication();
Lines 22-28 Link Here
22
 	gApplication->Quit();
22
 	gApplication->Quit();
23
 	delete gApplication;
23
 	delete gApplication;
24
 
24
 
25
+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) )
25
+#if defined(__FreeBSD__) && defined(__i386__)
26
+	fpresetsticky(FP_X_DZ|FP_X_INV);
26
+	fpresetsticky(FP_X_DZ|FP_X_INV);
27
+	fpsetmask(FP_X_DZ|FP_X_INV);
27
+	fpsetmask(FP_X_DZ|FP_X_INV);
28
+#endif
28
+#endif

Return to bug 63875