calculix: init at 2.15
This commit is contained in:
parent
a736d87393
commit
f91904a889
|
@ -0,0 +1,31 @@
|
|||
diff --git a/ccx_2.15/src/Makefile b/ccx_2.15/src/Makefile
|
||||
index 9cab2fc..6e977b8 100755
|
||||
--- a/ccx_2.15/src/Makefile
|
||||
+++ b/ccx_2.15/src/Makefile
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
CFLAGS = -Wall -O3 -I ../../../SPOOLES.2.2 -DARCH="Linux" -DSPOOLES -DARPACK -DMATRIXSTORAGE -DNETWORKOUT
|
||||
-FFLAGS = -Wall -O3
|
||||
+FFLAGS = -Wall -O3
|
||||
|
||||
CC=cc
|
||||
FC=gfortran
|
||||
@@ -18,15 +18,10 @@ OCCXF = $(SCCXF:.f=.o)
|
||||
OCCXC = $(SCCXC:.c=.o)
|
||||
OCCXMAIN = $(SCCXMAIN:.c=.o)
|
||||
|
||||
-DIR=../../../SPOOLES.2.2
|
||||
+LIBS = -lpthread -lm -lc -lspooles -larpack -lopenblas
|
||||
|
||||
-LIBS = \
|
||||
- $(DIR)/spooles.a \
|
||||
- ../../../ARPACK/libarpack_INTEL.a \
|
||||
- -lpthread -lm -lc
|
||||
-
|
||||
-ccx_2.15: $(OCCXMAIN) ccx_2.15.a $(LIBS)
|
||||
- ./date.pl; $(CC) $(CFLAGS) -c ccx_2.15.c; $(FC) -Wall -O3 -o $@ $(OCCXMAIN) ccx_2.15.a $(LIBS)
|
||||
+ccx_2.15: $(OCCXMAIN) ccx_2.15.a
|
||||
+ $(CC) $(CFLAGS) -c ccx_2.15.c; $(FC) -Wall -O3 -o $@ $(OCCXMAIN) ccx_2.15.a $(LIBS)
|
||||
|
||||
ccx_2.15.a: $(OCCXF) $(OCCXC)
|
||||
ar vr $@ $?
|
|
@ -0,0 +1,39 @@
|
|||
{ stdenv, fetchurl, gfortran, arpack, spooles, openblas }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "calculix";
|
||||
version = "2.15";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.dhondt.de/ccx_${version}.src.tar.bz2";
|
||||
sha256 = "0d4axfxgm3ag4p2vx9rjcky7c122k99a2nhv1jv53brm35rblzdw";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gfortran ];
|
||||
|
||||
buildInputs = [ arpack spooles openblas ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = [
|
||||
"-I${spooles}/include/spooles"
|
||||
];
|
||||
|
||||
patches = [
|
||||
./calculix.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
cd ccx*/src
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -Dm0755 ccx_${version} $out/bin/ccx
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://www.calculix.de/";
|
||||
description = "Three-dimensional structural finite element program";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ gebner ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -17390,6 +17390,8 @@ in
|
|||
|
||||
calcurse = callPackage ../applications/misc/calcurse { };
|
||||
|
||||
calculix = callPackage ../applications/science/math/calculix {};
|
||||
|
||||
calibre = libsForQt5.callPackage ../applications/misc/calibre { };
|
||||
|
||||
calligra = libsForQt5.callPackage ../applications/office/calligra {
|
||||
|
|
Loading…
Reference in New Issue