summarylogtreecommitdiffstats
path: root/calculix_cgx_2.22_archlinux.patch
blob: ad4903b1ab5a2a7c6b92adf8be00efd4e90a658a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
diff -ur CalculiX_orig/cgx_2.22/src/Makefile CalculiX/cgx_2.22/src/Makefile
--- CalculiX_orig/cgx_2.22/src/Makefile
+++ CalculiX/cgx_2.22/src/Makefile
@@ -59,1 +53,1 @@
- ../../libSNL/src/*.cpp
+# ../../libSNL/src/*.cpp
diff -ur CalculiX_orig/cgx_2.22/src/cgx.h CalculiX/cgx_2.22/src/cgx.h
--- CalculiX_orig/cgx_2.22/src/cgx.h
+++ CalculiX/cgx_2.22/src/cgx.h
@@ -98,12 +98,12 @@
 #elif defined AFLIB
-  #define     HELPFILE        {"/usr/local/CalculiX/cgx_2.22/doc/cgx/cgx.html",\
-    "/usr/local/CalculiX/ccx_2.22/doc/ccx/ccx.html",\
-    "/usr/local/CalculiX/cgx_2.16/doc/aflib/aflib.pdf"}
+  #define     HELPFILE        {"/usr/share/doc/cgx/cgx.html",\
+    "/usr/share/doc/doc/ccx/ccx.html",\
+    "/usr/share/doc/doc/aflib/aflib.pdf"}
   /* default tet mesher, 0:Netgen ng_vol, 1:tetgen */
   #define     TETMESHER  1
 #else
-  #define     HELPFILE        {"/usr/local/CalculiX/cgx_2.22/doc/cgx/cgx.html",\
-    "/usr/local/CalculiX/ccx_2.22/doc/ccx/ccx.html"}
+  #define     HELPFILE        {"/usr/share/doc/cgx/cgx.html",\
+    "/usr/share/doc/ccx/ccx.html"}
   /* default tet mesher, 0:Netgen ng_vol, 1:tetgen */
   #define     TETMESHER  1
 #endif
diff -ur CalculiX_orig/cgx_2.22/src/uselibSNL.h CalculiX/cgx_2.22/src/uselibSNL.h
--- CalculiX_orig/cgx_2.22/src/uselibSNL.h
+++ CalculiX/cgx_2.22/src/uselibSNL.h
@@ -8,1 +8,3 @@
 #include <cgx.h>
+#undef max
+#undef min