From eeca225752381043c596d91cdbc9aa13f150583b Mon Sep 17 00:00:00 2001 From: Phicem Date: Sun, 16 Oct 2022 13:55:37 +0200 Subject: [PATCH 1/7] New package: SPOOLES-2.2 --- srcpkgs/SPOOLES/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/SPOOLES/template diff --git a/srcpkgs/SPOOLES/template b/srcpkgs/SPOOLES/template new file mode 100644 index 000000000000..a533d24a89a8 --- /dev/null +++ b/srcpkgs/SPOOLES/template @@ -0,0 +1,25 @@ +# Template file for 'SPOOLES' +pkgname=SPOOLES +version=2.2 +revision=1 +create_wrksrc=yes +build_style="gnu-makefile" +make_build_target="lib" +hostmakedepends="perl" +short_desc="SParse Object Oriented Linear Equations Solver" +maintainer="Phicem " +license="Public Domain" +homepage="https://netlib.org/linalg/spooles/spooles.2.2.html" +distfiles="https://netlib.org/linalg/spooles/spooles.${version}.tgz" +checksum=a84559a0e987a1e423055ef4fdf3035d55b65bbe4bf915efaa1a35bef7f8c5dd + +do_install() { + vinstall spooles.a 755 usr/lib + HEADERS_DIR=usr/include/SPOOLES-2.2 + for file in $(find -name '*.h') ; do + dir=$(dirname ${file}) + vmkdir ${HEADERS_DIR}/${dir} + vinstall ${file} 644 ${HEADERS_DIR}/${dir} + done + +} From b8056551ead6bd5c181a014b91ef745a1adb678a Mon Sep 17 00:00:00 2001 From: Phicem Date: Sun, 16 Oct 2022 13:56:21 +0200 Subject: [PATCH 2/7] New package: CalculiX-ccx-2.20 --- srcpkgs/CalculiX-ccx/template | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 srcpkgs/CalculiX-ccx/template diff --git a/srcpkgs/CalculiX-ccx/template b/srcpkgs/CalculiX-ccx/template new file mode 100644 index 000000000000..b8728aacc1ff --- /dev/null +++ b/srcpkgs/CalculiX-ccx/template @@ -0,0 +1,35 @@ +# Template file for 'CalculiX-ccx' +pkgname=CalculiX-ccx +version=2.20 +revision=1 +wrksrc=CalculiX +_ccx_dir=ccx_${version} +_LIBS=" ${XBPS_CROSS_BASE}/usr/lib/spooles.a ${XBPS_CROSS_BASE}/usr/lib/libarpack.so ${XBPS_CROSS_BASE}/lib/libopenblas.so -lpthread -lm -lc" +hostmakedepends="perl gcc-fortran" +makedepends="SPOOLES arpack-ng-devel libgomp-devel openblas-devel" +_FFLAGS=" -Wall -O2 -fallow-argument-mismatch" + +if [ "$XBPS_MACHINE" == "x86_64" ] && [ "$XBPS_TARGET_MACHINE" == "i686" ]; then + makedepends+=" libquadmath" + hostmakedepends+=" libgomp-devel-32bit" +fi +short_desc="3D Structural Finite Element Program - Solver part" +maintainer="Phicem " +license="GPL-2.0-or-later" +homepage="http://www.dhondt.de/" +distfiles="http://www.dhondt.de/ccx_${version}.src.tar.bz2" +checksum=63bf6ea09e7edcae93e0145b1bb0579ea7ae82e046f6075a27c8145b72761bcf +CFLAGS=" -Wall -O2 -I ${XBPS_CROSS_BASE}/usr/include/SPOOLES-2.2 -DARCH='Linux' -DSPOOLES -DARPACK -DMATRIXSTORAGE -DNETWORKOUT" +CFLAGS+=" ${XBPS_CROSS_CFLAGS}" +_FFLAGS+=" ${XBPS_CROSS_CFLAGS}" + +do_build() { + if [ "$CROSS_BUILD" ]; then + _xbps_cross_prefix="${XBPS_CROSS_TRIPLET}-" + fi + make -C ${_ccx_dir}/src CC="${_xbps_cross_prefix}gcc" FC="${_xbps_cross_prefix}gfortran" LIBS="$_LIBS" FFLAGS="$_FFLAGS" CFLAGS="$CFLAGS" +} + +do_install() { + vbin ${_ccx_dir}/src/ccx_${version} ccx +} From 0bba3acc3b82eb93124065e4b53ac77a74a85803 Mon Sep 17 00:00:00 2001 From: Phicem Date: Sun, 16 Oct 2022 13:56:28 +0200 Subject: [PATCH 3/7] New package: tetgen-1.5.1 --- srcpkgs/tetgen/template | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 srcpkgs/tetgen/template diff --git a/srcpkgs/tetgen/template b/srcpkgs/tetgen/template new file mode 100644 index 000000000000..c7e68d4cd672 --- /dev/null +++ b/srcpkgs/tetgen/template @@ -0,0 +1,26 @@ +# Template file for 'tetgen' +pkgname=tetgen +version=1.5.1 +revision=1 +build_style="gnu-makefile" +make_cmd="make -C ${pkgname}${version} -f makefile" +hostmakedepends="tar" +short_desc="Quality Tetrahedral Mesh Generator and 3D Delaunay Triangulator" +maintainer="Phicem " +license="AGPL-3.0-or-later" +homepage="https://www.wias-berlin.de/software/index.jsp?id=TetGen" +distfiles="http://www.dhondt.de/cgx_2.20.all.tar.bz2" +checksum=f4c840c3633718547e33f86b2d7bc6b35608dd8d6cbf9fa192cecef34f2dc908 +make_check="no" # No tests provided + +do_extract() { + local srcdir="$XBPS_SRCDISTDIR/$pkgname-$version" + tar -xvjf $srcdir/"$(basename ${distfiles})" + pwd + tar -xvf ${pkgname}${version}.tar +} + +do_install() { + vbin ${pkgname}${version}/tetgen + vlicense ${pkgname}${version}/LICENSE +} From e8fc686e26f2b8ecf33b896b50648136505c4e3d Mon Sep 17 00:00:00 2001 From: Phicem Date: Sun, 16 Oct 2022 13:56:43 +0200 Subject: [PATCH 4/7] New package: CalculiX-cgx-2.20 --- srcpkgs/CalculiX-cgx/files/README_LICENSES | 5 ++++ srcpkgs/CalculiX-cgx/patches/Makefile.patch | 16 ++++++++++++ srcpkgs/CalculiX-cgx/template | 27 +++++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 srcpkgs/CalculiX-cgx/files/README_LICENSES create mode 100644 srcpkgs/CalculiX-cgx/patches/Makefile.patch create mode 100644 srcpkgs/CalculiX-cgx/template diff --git a/srcpkgs/CalculiX-cgx/files/README_LICENSES b/srcpkgs/CalculiX-cgx/files/README_LICENSES new file mode 100644 index 000000000000..7b4d6ea22898 --- /dev/null +++ b/srcpkgs/CalculiX-cgx/files/README_LICENSES @@ -0,0 +1,5 @@ +cgx program is released under GNU GPL v2 or later (except for a few functions, see CGX_LICENSE) + +To be compiled, this program makes use of other programs released under different licenses: +* glut is released under a custom license (see GLUT_LICENSE) +* libSN is released under GNU GPL v2 or later diff --git a/srcpkgs/CalculiX-cgx/patches/Makefile.patch b/srcpkgs/CalculiX-cgx/patches/Makefile.patch new file mode 100644 index 000000000000..2b9bd1b60462 --- /dev/null +++ b/srcpkgs/CalculiX-cgx/patches/Makefile.patch @@ -0,0 +1,16 @@ +--- CalculiX/cgx_2.20/src/Makefile.orig 2022-07-29 11:41:00.438531485 +0200 ++++ CalculiX/cgx_2.20/src/Makefile 2022-10-15 13:34:33.978116884 +0200 +@@ -1,3 +1,4 @@ ++CXX=g++ + # on MacOS it might be necessary to remove -DSEMINIT + CFLAGS = -O2 -Wall -Wno-narrowing -DSEMINIT \ + -I./ \ +@@ -67,7 +68,7 @@ + OUTIL = $(SUTIL:.c=.o) + + cgx: $(OLIB) $(OUTIL) $(OULIB) +- g++ $(OULIB) $(OLIB) $(OUTIL) $(CFLAGS) $(LFLAGS) -o $@ ++ ${CXX} $(OULIB) $(OLIB) $(OUTIL) $(CFLAGS) $(LFLAGS) -o $@ + + + diff --git a/srcpkgs/CalculiX-cgx/template b/srcpkgs/CalculiX-cgx/template new file mode 100644 index 000000000000..8f5d5d48cd5a --- /dev/null +++ b/srcpkgs/CalculiX-cgx/template @@ -0,0 +1,27 @@ +# Template file for 'CalculiX-cgx' +pkgname=CalculiX-cgx +version=2.20 +revision=1 +wrksrc=CalculiX +_cgx_dir=cgx_${version} +build_style="gnu-makefile" +make_build_args="-C ${_cgx_dir}/src" +makedepends="glu-devel libglvnd-devel libXmu-devel libXi-devel" +depends="tetgen" +short_desc="3D Structural Finite Element Program - Graphical interface" +maintainer="Phicem " +license="GPL-2.0-or-later, custom:GLUT" +homepage="http://www.dhondt.de/" +distfiles="http://www.dhondt.de/cgx_${version}.all.tar.bz2" +checksum=f4c840c3633718547e33f86b2d7bc6b35608dd8d6cbf9fa192cecef34f2dc908 +if [ "$XBPS_MACHINE" == "x86_64" ] ; then + hostmakedepends+="glibc-devel-32bit" +fi +CFLAGS=" -O2 -Wall -Wno-narrowing -I./ -I/usr/include/ -I/usr/include/GL -I../../libSNL/src -I../../glut-3.5/src -I/usr/X11/include" + +do_install() { + vbin ${_cgx_dir}/src/cgx + vlicense ${_cgx_dir}/README CGX_LICENSE + vlicense glut-3.5/NOTICE GLUT_LICENSE + vlicense ${FILESDIR}/README_LICENSES +} From d4fb2376653ab809c44208e70d05096c5fa9a4c5 Mon Sep 17 00:00:00 2001 From: Phicem Date: Sun, 16 Oct 2022 13:56:56 +0200 Subject: [PATCH 5/7] New package: CalculiX-2.20 --- srcpkgs/CalculiX/template | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 srcpkgs/CalculiX/template diff --git a/srcpkgs/CalculiX/template b/srcpkgs/CalculiX/template new file mode 100644 index 000000000000..b807d972e945 --- /dev/null +++ b/srcpkgs/CalculiX/template @@ -0,0 +1,10 @@ +# Template file for 'CalculiX' +pkgname=CalculiX +version=2.20 +revision=1 +build_style=meta +depends="CalculiX-cgx-${version}_${revision} CalculiX-ccx-${version}_${revision}" +short_desc="3D Structural Finite Element Program" +maintainer="Phicem " +license="GPL-2.0-only" +homepage="http://www.dhondt.de/" From 200c4ede685606972d177b58a311feafc0078f5f Mon Sep 17 00:00:00 2001 From: Phicem <82261758+Phicem@users.noreply.github.com> Date: Sat, 22 Oct 2022 10:50:09 +0200 Subject: [PATCH 6/7] Changed ccx description Co-authored-by: classabbyamp <5366828+classabbyamp@users.noreply.github.com> --- srcpkgs/CalculiX-ccx/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/CalculiX-ccx/template b/srcpkgs/CalculiX-ccx/template index b8728aacc1ff..dc58a9aec3d8 100644 --- a/srcpkgs/CalculiX-ccx/template +++ b/srcpkgs/CalculiX-ccx/template @@ -13,7 +13,7 @@ if [ "$XBPS_MACHINE" == "x86_64" ] && [ "$XBPS_TARGET_MACHINE" == "i686" ]; the makedepends+=" libquadmath" hostmakedepends+=" libgomp-devel-32bit" fi -short_desc="3D Structural Finite Element Program - Solver part" +short_desc="3D Structural Finite Element Program - Solver" maintainer="Phicem " license="GPL-2.0-or-later" homepage="http://www.dhondt.de/" From 16e2e045dad00492aa68e4e3adee055d51502b7e Mon Sep 17 00:00:00 2001 From: Phicem <82261758+Phicem@users.noreply.github.com> Date: Sun, 23 Oct 2022 11:35:51 +0200 Subject: [PATCH 7/7] Remove lines added during cross-compilation attemps Co-authored-by: classabbyamp <5366828+classabbyamp@users.noreply.github.com> --- srcpkgs/CalculiX-cgx/template | 3 --- 1 file changed, 3 deletions(-) diff --git a/srcpkgs/CalculiX-cgx/template b/srcpkgs/CalculiX-cgx/template index 8f5d5d48cd5a..b5534017a9d5 100644 --- a/srcpkgs/CalculiX-cgx/template +++ b/srcpkgs/CalculiX-cgx/template @@ -14,9 +14,6 @@ license="GPL-2.0-or-later, custom:GLUT" homepage="http://www.dhondt.de/" distfiles="http://www.dhondt.de/cgx_${version}.all.tar.bz2" checksum=f4c840c3633718547e33f86b2d7bc6b35608dd8d6cbf9fa192cecef34f2dc908 -if [ "$XBPS_MACHINE" == "x86_64" ] ; then - hostmakedepends+="glibc-devel-32bit" -fi CFLAGS=" -O2 -Wall -Wno-narrowing -I./ -I/usr/include/ -I/usr/include/GL -I../../libSNL/src -I../../glut-3.5/src -I/usr/X11/include" do_install() {