mirror of
https://git.freebsd.org/ports.git
synced 2025-05-31 10:26:28 -04:00
CalculiX has alwasy been comoposed of two independent packages: ccx and cgx. Ccx, the main tool for doing FEA, depends on fortran and currently has to be built with GCC. Cgx, on the other hand, uses OpenGL and the C++ libraries it depends on are built with our native clang so buuilding it with GCC causes C++ library conflicts. By making ccx an independent port we can better focus on the specific requirements of each tool and avoid compiler-related conflicts. This also helps the port work again with newer versions GCC. PR: 219290. 22043, 220434 Approved by: gerald
34 lines
1 KiB
Text
34 lines
1 KiB
Text
--- Makefile.orig 2017-04-02 12:59:26 UTC
|
|
+++ Makefile
|
|
@@ -1,9 +1,9 @@
|
|
|
|
-CFLAGS = -Wall -O3 -fopenmp -I ../../../SPOOLES.2.2 -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE -DNETWORKOUT
|
|
-FFLAGS = -Wall -O3 -fopenmp
|
|
+CFLAGS += -O3 -fopenmp -I%%LOCALBASE%%/include -I%%LOCALBASE%%/include/spooles -DARCH="FreeBSD" -DSPOOLES -DARPACK -DMATRIXSTORAGE -DNETWORKOUT
|
|
+FFLAGS += -O3 -fopenmp
|
|
|
|
-CC=cc
|
|
-FC=gfortran
|
|
+CC=%%CC%%
|
|
+FC=%%FC%%
|
|
|
|
.c.o :
|
|
$(CC) $(CFLAGS) -c $<
|
|
@@ -18,15 +18,10 @@ OCCXF = $(SCCXF:.f=.o)
|
|
OCCXC = $(SCCXC:.c=.o)
|
|
OCCXMAIN = $(SCCXMAIN:.c=.o)
|
|
|
|
-DIR=../../../SPOOLES.2.2
|
|
-
|
|
-LIBS = \
|
|
- $(DIR)/spooles.a \
|
|
- ../../../ARPACK/libarpack_INTEL.a \
|
|
- -lpthread -lm -lc
|
|
+LIBS = -lspooles -larpack %%BLAS_LIBS%% %%LAPACK_LIBS%% -lm
|
|
|
|
ccx_2.12: $(OCCXMAIN) ccx_2.12.a $(LIBS)
|
|
- ./date.pl; $(CC) $(CFLAGS) -c ccx_2.12.c; $(FC) -fopenmp -Wall -O3 -o $@ $(OCCXMAIN) ccx_2.12.a $(LIBS)
|
|
+ ./date.pl; $(CC) $(CFLAGS) -c ccx_2.12.c; $(FC) -fopenmp -Wall -O3 -o $@ $(OCCXMAIN) ccx_2.12.a -lpthread $(LIBS)
|
|
|
|
ccx_2.12.a: $(OCCXF) $(OCCXC)
|
|
ar vr $@ $?
|