Skip to content

Commit

Permalink
*/*: Limit BROKEN statement for missing ieee_arithmetic.mod feature o…
Browse files Browse the repository at this point in the history
…n powerpc64*

... to only systems where it isn't yet enabled.

Reported by:	pkubaj@
  • Loading branch information
yurivict committed Dec 21, 2022
1 parent 062cceb commit 931a26d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
8 changes: 6 additions & 2 deletions science/dftd4/Makefile
Expand Up @@ -11,8 +11,6 @@ LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING

BROKEN_aarch64= Cannot open module file 'ieee_arithmetic.mod' for reading at (1): No such file or directory
BROKEN_powerpc64= Cannot open module file 'ieee_arithmetic.mod' for reading at (1): No such file or directory
BROKEN_powerpc64le= Cannot open module file 'ieee_arithmetic.mod' for reading at (1): No such file or directory

BUILD_DEPENDS= mstore>0:science/mstore
LIB_DEPENDS= libmctc-lib.so:science/mctc-lib \
Expand All @@ -25,6 +23,12 @@ USE_LDCONFIG= yes

CMAKE_ON= BUILD_SHARED_LIBS

.include <bsd.port.options.mk>
.if (${ARCH} == powerpc64le || ${ARCH} == powerpc64 || ${ARCH} == powerpc) && ${OSVERSION} < 1301510 # support added in e09d209d1a74a3caca95dea303db9bc605fce1a7
BROKEN_powerpc64= Cannot open module file 'ieee_arithmetic.mod' for reading at (1): No such file or directory
BROKEN_powerpc64le= Cannot open module file 'ieee_arithmetic.mod' for reading at (1): No such file or directory
.endif

post-patch: # see https://github.com/toml-f/toml-f/issues/51
@${REINPLACE_CMD} -e 's|$${CMAKE_Fortran_COMPILER_ID}-$${CMAKE_Fortran_COMPILER_VERSION}||' ${WRKSRC}/config/CMakeLists.txt

Expand Down
7 changes: 6 additions & 1 deletion science/dynare/Makefile
Expand Up @@ -12,7 +12,6 @@ LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING

BROKEN_aarch64= cannot open module file 'ieee_arithmetic.mod' for reading at (1): No such file or directory
BROKEN_powerpc64= cannot open module file 'ieee_arithmetic.mod' for reading at (1): No such file or directory

BUILD_DEPENDS= ${LOCALBASE}/include/boost/tokenizer.hpp:devel/boost-libs
LIB_DEPENDS= libhdf5.so:science/hdf5 \
Expand Down Expand Up @@ -49,6 +48,12 @@ OCTAVE_LIB_DEPENDS= libfftw3.so:math/fftw3 \
libumfpack.so:math/suitesparse-umfpack
OCTAVE_RUN_DEPENDS= octave:math/octave

.include <bsd.port.options.mk>
.if (${ARCH} == powerpc64le || ${ARCH} == powerpc64 || ${ARCH} == powerpc) && ${OSVERSION} < 1301510 # support added in e09d209d1a74a3caca95dea303db9bc605fce1a7
BROKEN_powerpc64= Cannot open module file 'ieee_arithmetic.mod' for reading at (1): No such file or directory
BROKEN_powerpc64le= Cannot open module file 'ieee_arithmetic.mod' for reading at (1): No such file or directory
.endif

post-install:
# remove empty directories, see https://git.dynare.org/Dynare/dynare/-/issues/1835
@${FIND} ${STAGEDIR}${PREFIX} -type d -empty -delete
Expand Down

0 comments on commit 931a26d

Please sign in to comment.