git: 6d244f048cc5 - main - cad/pcb: fix build on non-x86
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 25 Oct 2021 19:36:20 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=6d244f048cc5dd91c48697d901b6fc8e95a56894 commit 6d244f048cc5dd91c48697d901b6fc8e95a56894 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2021-10-25 19:28:40 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2021-10-25 19:28:40 +0000 cad/pcb: fix build on non-x86 Same patch as the one used for graphics/gts, which this port bundles. --- cad/pcb/Makefile | 3 --- cad/pcb/files/patch-gts_rounding.h | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/cad/pcb/Makefile b/cad/pcb/Makefile index dbd157bad0c4..b040cb13ce69 100644 --- a/cad/pcb/Makefile +++ b/cad/pcb/Makefile @@ -64,9 +64,6 @@ NONE_DESC= No GUI support NONE_CONFIGURE_ON= --without-gui NONE_CONFIGURE_ENV= WISH=/usr/bin/true -ONLY_FOR_ARCHS= i386 amd64 -ONLY_FOR_ARCHS_REASON= uses x86-specific libc functions, has not been ported - DOCS_INFO= pcb .include <bsd.port.mk> diff --git a/cad/pcb/files/patch-gts_rounding.h b/cad/pcb/files/patch-gts_rounding.h new file mode 100644 index 000000000000..bb16d8e83a34 --- /dev/null +++ b/cad/pcb/files/patch-gts_rounding.h @@ -0,0 +1,16 @@ +--- gts/rounding.h.orig Mon Jun 17 12:05:45 2002 ++++ gts/rounding.h Wed Sep 24 12:57:41 2003 +@@ -28,11 +28,11 @@ + _FPU_SETCW(fpu_round_double); } + # define FPU_RESTORE {_FPU_SETCW(fpu_init);} + #else /* not HAVE_FPU_CONTROL_H */ +-# ifdef __FreeBSD__ ++# ifdef HAVE_FROATINGPOINT_H + # include <floatingpoint.h> + # define FPU_ROUND_DOUBLE (fpsetprec(FP_PD)) + # define FPU_RESTORE (fpsetprec(FP_PE)) +-# else /* not __FreeBSD__ */ ++# else /* not HAVE_FROATINGPOINT_H */ + # ifdef WIN32 + # ifdef _MSC_VER + # include <float.h>