ports/cad/calculix-ccx/files/patch-CalculiX.h
Pedro F. Giffuni 9644971a59 cad/calculix-ccx: Update to version 2.15.
- Update to the latest version.
  Changelog: http://www.dhondt.de/new_calc.htm

- Attempt to make the build reproducible concerning the date in the executable.

- Drop temporarily) the taucs dependency. It brings a secondary dependency
  on metis4 which we are not packaging. We will bring taucs back when it
  depends on metis5

- Pet portlint.

PR:	234146
Approved by:	thierry (mentor)
2019-04-18 15:33:29 +00:00

28 lines
538 B
C

--- CalculiX.h.orig 2018-12-15 14:30:31 UTC
+++ CalculiX.h
@@ -18,12 +18,14 @@
#include <pthread.h>
-#define Linux 1
+#include <pthread.h>
+
+#define FreeBSD 1
#define IRIX 2
#define IRIX64 3
#define HP 4
-#if ARCH == Linux
+#if ARCH == FreeBSD
#define FORTRAN(A,B) A##_ B
#elif ARCH == IRIX || ARCH == IRIX64
#define FORTRAN(A,B) A##_##B
@@ -31,7 +33,7 @@
#define FORTRAN(A,B) A##B
#endif
-#if ARCH == Linux
+#if ARCH == FreeBSD
#define CEE(A,B) A##_ B
#elif ARCH == IRIX || ARCH == IRIX64
#define CEE(A,B) A##_##B