pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
aster: Structures and Thermomechanics Analysis for Studies and Research
Module Name: pkgsrc-wip
Committed By: Paul Ripke <stix%stix.id.au@localhost>
Pushed By: stix
Date: Wed Apr 2 21:26:52 2025 +1100
Changeset: 264d4f239032423f7007c7b36a85e5670be266f1
Added Files:
aster/DESCR
aster/Makefile
aster/Makefile.common
aster/PLIST
aster/TODO
aster/distinfo
aster/patches/patch-setup.py
Log Message:
aster: Structures and Thermomechanics Analysis for Studies and Research
This package is the start of an attempt to compile all aster modules, as
a dependency of FreeCAD - which only needs one module, "med".
aster/Makefile.common exists to hold the common source of the aster
modules, just in case additional modules are ever desired.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=264d4f239032423f7007c7b36a85e5670be266f1
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
aster/DESCR | 6 ++++++
aster/Makefile | 36 ++++++++++++++++++++++++++++++++++++
aster/Makefile.common | 7 +++++++
aster/PLIST | 1 +
aster/TODO | 4 ++++
aster/distinfo | 6 ++++++
aster/patches/patch-setup.py | 25 +++++++++++++++++++++++++
7 files changed, 85 insertions(+)
diffs:
diff --git a/aster/DESCR b/aster/DESCR
new file mode 100644
index 0000000000..8a1c7a1ed8
--- /dev/null
+++ b/aster/DESCR
@@ -0,0 +1,6 @@
+aster: Structures and Thermomechanics Analysis for Studies and Research
+
+This package is the start of an attempt to compile all aster modules, as
+a dependency of FreeCAD - which only needs one module, "med".
+aster/Makefile.common exists to hold the common source of the aster
+modules, just in case additional modules are ever desired.
diff --git a/aster/Makefile b/aster/Makefile
new file mode 100644
index 0000000000..dbb5d95eac
--- /dev/null
+++ b/aster/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD$
+
+PKGVERSION= 14.6.0
+DISTVERSION= ${PKGVERSION}-1
+PKGNAME= aster-${PKGVERSION}
+DISTNAME= aster-full-src-${DISTVERSION}.noarch
+CATEGORIES= science
+MASTER_SITES= http://www.code-aster.org/FICHIERS/
+WRKSRC= ${WRKDIR}/aster-full-src-${PKGVERSION}
+
+MAINTAINER= stix%stix.id.au@localhost
+HOMEPAGE= https://code-aster.org/
+COMMENT= Modelisation et Echanges de Donnees
+LICENSE= GPLv3
+
+USE_LANGUAGES= fortran c c++
+USE_TOOLS+= ar bison flex gmake cmake tk
+NO_BUILD= yes
+NO_INSTALL= yes
+HAS_CONFIGURE= yes
+CONFIG_SHELL= python3.11
+CONFIGURE_SCRIPT= setup.py
+CONFIGURE_ARGS+= --prefix=${PREFIX}
+CONFIGURE_ARGS+= --aster_root=${DESTDIR}/${PREFIX}
+CONFIGURE_ARGS+= --noprompt
+CONFIGURE_ENV+= BUILDLINK_DIR=${BUILDLINK_DIR}
+CONFIGURE_ENV+= LD_LIBRARY_PATH=${BUILDLINK_DIR}/lib
+
+
+.include "../../mk/bsd.prefs.mk"
+
+.include "../../math/blas/buildlink3.mk"
+.include "../../math/lapack/buildlink3.mk"
+.include "../../math/py-numpy/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/aster/Makefile.common b/aster/Makefile.common
new file mode 100644
index 0000000000..740061d9ad
--- /dev/null
+++ b/aster/Makefile.common
@@ -0,0 +1,7 @@
+# $NetBSD$
+
+# used by wip/med/Makefile
+
+DISTVERSION= 14.6.0
+DISTNAME= aster-full-src-${DISTVERSION}-1.noarch
+MASTER_SITES= http://www.code-aster.org/FICHIERS/
diff --git a/aster/PLIST b/aster/PLIST
new file mode 100644
index 0000000000..48d96a5493
--- /dev/null
+++ b/aster/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD$
diff --git a/aster/TODO b/aster/TODO
new file mode 100644
index 0000000000..0c5a27b548
--- /dev/null
+++ b/aster/TODO
@@ -0,0 +1,4 @@
+This package is the start of an attempt to compile all aster modules, as
+a dependency of FreeCAD - which only needs one module, "med".
+aster/Makefile.common exists to hold the common source of the aster
+modules, just in case additional modules are ever desired.
diff --git a/aster/distinfo b/aster/distinfo
new file mode 100644
index 0000000000..e1ea1ee949
--- /dev/null
+++ b/aster/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (aster-full-src-14.6.0-1.noarch.tar.gz) = 5a5069ebe81cce10964c625277f6fa0bc7f67f8232fdca8ff6ed1270ef02066d
+SHA512 (aster-full-src-14.6.0-1.noarch.tar.gz) = 8853e303ed4fe0ae1bff8205f1c5ca2fee8f90c36133dd9f2af3f6976a2e47af7a634c204378f8a2138180bc6649f92b93277a50af1d0190fc2cca185abbaa15
+Size (aster-full-src-14.6.0-1.noarch.tar.gz) = 270695003 bytes
+SHA1 (patch-setup.py) = 291e5d8117d3d0110b2c46dad912595a0eb97b54
diff --git a/aster/patches/patch-setup.py b/aster/patches/patch-setup.py
new file mode 100644
index 0000000000..768e54a21c
--- /dev/null
+++ b/aster/patches/patch-setup.py
@@ -0,0 +1,25 @@
+$NetBSD$
+
+--- setup.py.orig 2020-10-26 15:54:27.000000000 +0000
++++ setup.py
+@@ -322,6 +322,7 @@ def main():
+ libdirs.extend(['/usr/local/lib', '/usr/lib', '/lib',
+ '/usr/lib/x86_64-linux-gnu',
+ '/usr/X11R6/lib', '/usr/lib/X11', '/usr/openwin/lib', ])
++ libdirs.extend([os.path.join(os.environ.get('BUILDLINK_DIR'), 'lib'), ])
+
+ incdirs = [os.path.join(cfg['ASTER_ROOT'], 'public', 'include'),
+ os.path.join(cfg['ASTER_ROOT'], 'public'), ]
+@@ -376,6 +377,12 @@ def main():
+ cfg['ARCH'] = machine
+ else: # force to x86_64
+ cfg['ARCH'] = 'x86_64'
++ elif plt.startswith('netbsd'):
++ cfg['IFDEF'] = 'NETBSD'
++ if machine in ('x86_64', 'ia64', 'ppc64'):
++ cfg['ARCH'] = machine
++ else: # force to x86_64
++ cfg['ARCH'] = 'x86_64'
+ elif plt.startswith('osf1'):
+ cfg['IFDEF'] = 'TRU64'
+ elif plt == 'sunos5':
Home |
Main Index |
Thread Index |
Old Index