From: Kirill A. Korinsky Subject: Re: [new] geant4 package, feedback needed To: ports@openbsd.org Date: Thu, 13 Nov 2025 20:12:02 +0100 On Thu, 13 Nov 2025 19:53:50 +0100, Sebastian Benoit wrote: > > Hi, > > i'm trying to make a package for geant4, https://geant4.web.cern.ch/ > > I have a couple of things where i need some guidance: > > (1) its in essence a library that allows one to build ones own applications. > But unfortunatly many user-applications out there do not compile against > the latest version of geant4, for various reasons. > Its basically common that an user-application lags behind, and it should be possible to > install multiple versions in parallel. I use two myseld, one needs > geant4-10.7.4 and the other is ahppy with 11.x. > > It installs into /bin, include, lib, and share. > For now i picked /usr/local/geant4-10.7.4 as prefix for trying it out. > Maybe use /usr/local/libexec/geant4/ ? But tricky part is how to supply the path for cmake/pkg_config. > (2) The system needs datasets that describe physical processes. These > are static files, the original installer tries to download these. > Obviously i want to download them earlier, during the fetch phase? And > then install them later. How do we typically hand such situations? Is > there an exmaple in ports? > > https://geant4.web.cern.ch/download/11.3.2.html > https://geant4.web.cern.ch/download/10.7.4.html > Datasets looks "independed" from library version. Maybe approach similar with pari-data is that you're looking for? > WANTLIB = > WANTLIB += ${COMPILER_LIBCXX} GL ICE SM X11 Xext Xm > WANTLIB += Xmu Xt expat m xerces-c z > Just read, not tried: any reason to has first WANTLIB? -- wbr, Kirill