Browse Source

science/hdf5: Convert to USES= cmake:testing

Only build unit test(s) when requested

Approved by:	portmgr (blanket, enhancement)
overlay
Daniel Engberg 5 months ago
parent
commit
c18ce60110
  1. 3
      science/hdf5/Makefile

3
science/hdf5/Makefile

@ -14,13 +14,14 @@ WWW= https://www.hdfgroup.org/ \
LICENSE= BSD4CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cmake compiler:c11 localbase perl5
USES= cmake:testing compiler:c11 localbase perl5
USE_PERL5= build
CFLAGS+= -D__LONG_LONG_SUPPORTED
CMAKE_ARGS= -DDEFAULT_API_VERSION=v112 \
-DHDF5_INSTALL_CMAKE_DIR=lib/cmake/hdf5 \
-DHDF5_INSTALL_INCLUDE_DIR=${PREFIX}/include
CMAKE_OFF= BUILD_TESTING
CMAKE_ON= HDF5_BUILD_HL_LIB HDF5_BUILD_TOOLS HDF5_ENABLE_INSTRUMENT HDF5_ENABLE_Z_LIB_SUPPORT HDF5_STRICT_FORMAT_CHECKS
TEST_TARGET= test
USE_LDCONFIG= yes

Loading…
Cancel
Save