ports/misc/sdformat/Makefile
Yasuhiro Kimura da2a4bdd21 Mk/bsd.default-versions.mk: Change default version of Ruby to 3.3
With the release of 3.2.8 Ruby 3.2 series switched to security fix
only phase and will be reach its EoL on March 2026. So change defult
version of Ruby to 3.3.

Following changes are made to pass exp-run.

* Fix build of audio/rubygem-ruby-shout by adding
  '--with-cflags="-Wno-error=int-conversion"' to CONFIGURE_ARGS.
* Build of devel/rubygem-mmap2 fails with Ruby 3.3 and later because
  of internal API change of Ruby. So mark BROKEN with them.
* devel/rubygem-xdg7, sysutils/vagrant and www/redmine51 don't support
  Ruby 3.3 and later. So mark BROKEN with them.
* misc/sdformat and textproc/ruby-rdtool are already marked BROKEN
  with Ruby 3.2 and build with all other Ruby versions also fails with
  same error. So mark just BROKEN.
* Fix plist error of sysutils/puppet8.
* Fix RUN_DEPENDS of textproc/quarto.

PR:		286217
Approved by:	self (with hat of ruby)
Exp-run by:	antoine
2025-05-09 19:06:38 +09:00

44 lines
1.4 KiB
Makefile

PORTNAME= sdformat
DISTVERSION= 8.0.0
PORTREVISION= 7
CATEGORIES= misc
MASTER_SITES= https://bitbucket.org/${BB_ACCOUNT}/${BB_PROJECT}/get/${BB_COMMIT}.tar.gz?dummy=/
MAINTAINER= yuri@FreeBSD.org
COMMENT= Simulation Description Format (SDF) parser and description files
WWW= https://bitbucket.org/osrf/sdformat/src/default/
LICENSE= APACHE20
BROKEN= tools/xmlschema.rb:268:in `<main>': undefined method `exists?' for File:Class (NoMethodError)
BUILD_DEPENDS= ignition-cmake==2:devel/ignition-cmake \
ignition-tools>0:devel/ignition-tools \
rubygem-rexml>0:textproc/rubygem-rexml
LIB_DEPENDS= libignition-math6.so:math/ignition-math \
libconsole_bridge.so:devel/ros-console_bridge \
libtinyxml2.so:textproc/tinyxml2 \
liburdfdom_world.so:devel/ros-urdfdom
RUN_DEPENDS= ignition-tools>0:devel/ignition-tools
USES= cmake compiler:c++17-lang pkgconfig ruby:build
USE_LDCONFIG= yes
CMAKE_OFF= BUILD_TESTING
BB_ACCOUNT= osrf
BB_PROJECT= ${PORTNAME}
BB_COMMIT= f555f9a69f8f
WRKSRC= ${WRKDIR}/${BB_ACCOUNT}-${BB_PROJECT}-${BB_COMMIT}
PLIST_SUB+= INCSUBDIR=${PORTNAME}-${DISTVERSION:R}
do-test:
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
.include <bsd.port.mk>