mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-04 11:23:46 +00:00
- Fix build on non-i386 arch
PR: ports/63875 Submitted by: Ports Fury
This commit is contained in:
parent
fa77fb4d88
commit
c64d835b37
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=103210
@ -24,14 +24,8 @@ USE_GMAKE= yes
|
||||
|
||||
DATAVERSION= 0.8.6
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} != "i386" && ${ARCH} != "alpha"
|
||||
BROKEN= "Does not compile on !i386 and !alpha"
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@cd ${WRKDIR}/amph && ${FIND} . | \
|
||||
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/amph
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,7 +1,7 @@
|
||||
--- src/Main.cpp.orig Sun Mar 24 17:49:09 2002
|
||||
+++ src/Main.cpp Mon Mar 1 19:51:09 2004
|
||||
@@ -1,3 +1,7 @@
|
||||
+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) )
|
||||
+#if defined(__FreeBSD__) && defined(__i386__)
|
||||
+#include <floatingpoint.h>
|
||||
+#endif
|
||||
+
|
||||
@ -12,7 +12,7 @@
|
||||
my_argv = argv;
|
||||
if (checkCommandLine()) return 0;
|
||||
|
||||
+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) )
|
||||
+#if defined(__FreeBSD__) && defined(__i386__)
|
||||
+ fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV));
|
||||
+#endif
|
||||
gApplication = new CApplication();
|
||||
@ -22,7 +22,7 @@
|
||||
gApplication->Quit();
|
||||
delete gApplication;
|
||||
|
||||
+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) )
|
||||
+#if defined(__FreeBSD__) && defined(__i386__)
|
||||
+ fpresetsticky(FP_X_DZ|FP_X_INV);
|
||||
+ fpsetmask(FP_X_DZ|FP_X_INV);
|
||||
+#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user