7ecd176f65
Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. Because devel/kyua's Makefile does not explicitly set its C++ standard, this leads to several errors: In file included from cli/cmd_about.cpp:29: In file included from ./cli/cmd_about.hpp:35: ./cli/common.hpp:71:14: error: no template named 'auto_ptr' in namespace 'std' typedef std::auto_ptr< cli_command > cli_command_ptr; ~~~~~^ In file included from cli/cmd_db_exec.cpp:29: In file included from ./cli/cmd_db_exec.hpp:37: ./cli/common.hpp:71:14: error: no template named 'auto_ptr' in namespace 'std' typedef std::auto_ptr< cli_command > cli_command_ptr; ~~~~~^ In file included from cli/cmd_db_migrate.cpp:29: In file included from ./cli/cmd_db_migrate.hpp:35: ./cli/common.hpp:71:14: error: no template named 'auto_ptr' in namespace 'std' typedef std::auto_ptr< cli_command > cli_command_ptr; ~~~~~^ In file included from cli/cmd_config.cpp:29: In file included from ./cli/cmd_config.hpp:35: ./cli/common.hpp:71:14: error: no template named 'auto_ptr' in namespace 'std' typedef std::auto_ptr< cli_command > cli_command_ptr; ~~~~~^ Add USE_CXXSTD=gnu++98 to avoid these errors. PR: 271054 Approved by: maintainer timeout (2 weeks) MFH: 2023Q2
51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
PORTNAME= kyua
|
|
PORTVERSION= 0.13
|
|
PORTREVISION= 6
|
|
PORTEPOCH= 3
|
|
CATEGORIES= devel
|
|
MASTER_SITES= https://github.com/jmmv/kyua/releases/download/${PORTNAME}-${PORTVERSION}/ \
|
|
LOCAL/jmmv
|
|
|
|
MAINTAINER= jmmv@FreeBSD.org
|
|
COMMENT= Testing framework for infrastructure software
|
|
WWW= https://github.com/jmmv/kyua/
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
LIB_DEPENDS= liblutok.so:devel/lutok
|
|
|
|
USES= lua pkgconfig sqlite
|
|
USE_CXXSTD= gnu++11
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --docdir=${DOCSDIR} \
|
|
--without-doxygen
|
|
MAKE_ARGS= examplesdir=${EXAMPLESDIR} \
|
|
pkgdatadir=${DATADIR}
|
|
|
|
CONFLICTS= kyua-atf-compat kyua-cli kyua-testers
|
|
|
|
SUB_FILES= kyua.conf
|
|
_TESTS_USER= tests
|
|
SUB_LIST= TESTS_USER=${_TESTS_USER}
|
|
USERS= ${_TESTS_USER}
|
|
GROUPS= tests
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES TEST
|
|
OPTIONS_DEFAULT= TEST
|
|
OPTIONS_SUB= yes
|
|
|
|
DOCS_MAKE_ARGS_OFF= doc_DATA=
|
|
EXAMPLES_MAKE_ARGS_OFF= dist_examples_DATA=
|
|
TEST_BUILD_DEPENDS= atf>=0.21:devel/atf
|
|
TEST_RUN_DEPENDS= atf>=0.21:devel/atf
|
|
TEST_CONFIGURE_WITH= atf
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/kyua
|
|
${INSTALL_DATA} ${WRKDIR}/kyua.conf \
|
|
${STAGEDIR}${PREFIX}/etc/kyua/kyua.conf.sample
|
|
${INSTALL_DATA} ${WRKSRC}/examples/Kyuafile.top \
|
|
${STAGEDIR}${PREFIX}/tests/Kyuafile
|
|
|
|
.include <bsd.port.mk>
|